|
-
April 14th, 1999, 04:53 AM
#1
how ActiveX control receive WM_MOVE?
if container moving , how can I receive WM_MOVE In the ActiveX control ?
-
March 13th, 2005, 06:38 PM
#2
Re: how ActiveX control receive WM_MOVE?
One way to do this would be to use the RegisterWindowMessage function to register a unique global message to send to all windows (in the container class).
In the WM_MOVE message handler of the container, call the PostMessage or SendMessage function with the 1st parameter being HWND_BROADCAST. THE WPARAM message parameter could be the x coordinate passed into the WM_MOVE message handler and the LPARAM message parameter could be the y coordinate passed into the WM_MOVE message handler.
The ActiveX control would require the custom message to be registered in its message map and a corresponding handler created for that message.
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
|