CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    5

    how ActiveX control receive WM_MOVE?

    if container moving , how can I receive WM_MOVE In the ActiveX control ?


  2. #2
    Join Date
    Feb 2005
    Location
    MI
    Posts
    4

    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
  •  





Click Here to Expand Forum to Full Width

Featured