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

    Detect parent absoulte position change

    I'm making a control that is like a combo box. The popup listbox is a child of the desktop window and I need to keep it synchronized with the absolute (screen) position of the parent dialog (which change when you are dragging the window).

    How to do this from the control ? An easy way would have to track dialog position change in the dialog but I don't want to have to do anything in the dialog.


  2. #2
    Join Date
    May 1999
    Location
    Toronto, Ontario, Canada
    Posts
    155

    Re: Detect parent absoulte position change

    Subclass the parent window and intercept the WM_WINDOWPOSCHANGED (or WM_MOVE/WM_SIZE)

    -Safai


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