|
-
Jul 4th, 2003, 10:26 AM
#1
Thread Starter
New Member
vb6: Custom Control stay s not in front
I've build an custom control depending on the MSHFlexgrid the control doesnt stay in front of other controls and stops painting when a frame end is reached. How can i solve this?
-
Jul 4th, 2003, 06:35 PM
#2
What do you mean by "stops painting when a frame end is reached". If you mean that the flexgrid is inside a frame and you can't see the whole flexgrid then you'll either need to reposition the flexgrid or make the frame bigger.
-
Jul 4th, 2003, 07:26 PM
#3
And if you can't get it to go in front of other controls, then that means that you probably have it set as Windowless.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 5th, 2003, 03:15 PM
#4
Thread Starter
New Member
The control must go beyond the frame borders just like a combobox (Thats what my control is)
The control is not windowless because it have window child controls.
Last edited by stalk; Jul 5th, 2003 at 03:32 PM.
-
Jul 8th, 2003, 02:11 AM
#5
Thread Starter
New Member
Public Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
did the ZOrder thing but the control still can't paint over frame borders
-
Jul 10th, 2003, 06:30 AM
#6
Thread Starter
New Member
-
Jul 10th, 2003, 06:35 AM
#7
You will probably need to use SetParent to change the parent window to the desktop, then make the window always on top. Theres a bunch of examples floating around in here. Search it up.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 10th, 2003, 07:28 AM
#8
Thread Starter
New Member
How do i find the forms hwnd where the controls frame is placed in code? So i can use setparent.
-
Jul 11th, 2003, 03:28 AM
#9
Thread Starter
New Member
SetParent is not an option because the control must hold the frame as his parent. (When the frame.visible = false is set the control must diappear to) The only thing the control should do is paint over the frames border.
-
Jul 11th, 2003, 04:00 PM
#10
Thread Starter
New Member
it must work on nt 4.0, 2000 and XP.
I'm developing on XP.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|