So far I have used the WS_THICKFRAME style to give a sizing border to the dialogs which I have been using. This works well but when the main dialog contains dozens of child dialogs it looks too fussy. However, when I loose the style, I loose the functionality as well.
I can detect a left click near a border of a child dialog by trapping WM_MOUSEACTIVATE, then the WM_LBUTTONDOWN mouse message from the lparam, but the HIT-TEST value is always HT_CLIENT, reasonably enough.
At this point by converting the mouse pointer coordinates I can detect whether the "hit" is within say 5 units of whichever edge of the child dialog, and use that for sizing by using SetWindowPos in the WM_PAINT handler.
My difficulty is with where to obtain the coordinates used to resize the window while the border is being "moved" by the mouse. WM_MOUSEMOVE doesn't appear to fire while the child dialog is being resized.
I can detect a left click near a border of a child dialog by trapping WM_MOUSEACTIVATE, then the WM_LBUTTONDOWN mouse message from the lparam, but the HIT-TEST value is always HT_CLIENT, reasonably enough.
At this point by converting the mouse pointer coordinates I can detect whether the "hit" is within say 5 units of whichever edge of the child dialog, and use that for sizing by using SetWindowPos in the WM_PAINT handler.
My difficulty is with where to obtain the coordinates used to resize the window while the border is being "moved" by the mouse. WM_MOUSEMOVE doesn't appear to fire while the child dialog is being resized.
Comment