Link to home
Start Free TrialLog in
Avatar of motorway
motorway

asked on

Using MoveWindow for a control in a dialog

I've tried to show a rectangle over the selected control in a dialog. But, when I try to move the rectangle using the movewindow() function, the rectangle just disappears. My guess is that I'm not getting the coordinates of the selected control with respect to the dialog containing that control. How can I do it? The rectangle is simply a static control, and I want to show it round the selected text control.
ASKER CERTIFIED SOLUTION
Avatar of scerveza
scerveza

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scerveza
scerveza

sorry that window procedure should be declared
BOOL CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM) lol.