Click to See Complete Forum and Search --> : Detect parent absoulte position change


blep
May 7th, 1999, 08:28 AM
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.

Safai Ma
May 7th, 1999, 09:18 AM
Subclass the parent window and intercept the WM_WINDOWPOSCHANGED (or WM_MOVE/WM_SIZE)

-Safai