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?
Printable View
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?
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.
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.
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.
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
Somebody?
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.
:)
How do i find the forms hwnd where the controls frame is placed in code? So i can use setparent.
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.
it must work on nt 4.0, 2000 and XP.
I'm developing on XP.