|
-
Aug 28th, 2001, 10:17 AM
#1
Thread Starter
New Member
I found a solution to my question: How to make UserControl the top control...
Hello All!
I found a solution for the question in the subject:
I use an API call:
Private Declare Function SetWindowPos Lib "user32" _
(ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
and I call this function in after the resize event:
retval = SetWindowPos(GridList.hwnd, 0, 1, 1, UserControl.Width, UserControl.Height, -1),
where the last (wFlags) parameter is the important one: -1 which means 'WND_TOP' places the window at the top of the Z order.
Bye!
Last edited by nincs; Aug 29th, 2001 at 01:55 AM.
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
|