|
-
Feb 4th, 2001, 04:25 PM
#1
Thread Starter
PowerPoster
Hello guys!
I am making an activex control that uses a window API call to set the form, on which this activex control is, to always be on top or not.
When I work with this window API in standard EXE project then it works fine. That looks like this.
SetWindowPos form1.hwnd, HWND_TOPMOST, 0, 0, 0, _ 0, TOPMOST_FLAGS
In this code I am making the "form1" on top of other windows.
In my activex control. I want to use the form on which this activex control is. I have tried this:
SetWindowPos Me, HWND_TOPMOST, 0, 0, 0, 0, _
TOPMOST_FLAGS
It return an error.
How can it be done??
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
|