tags:

views:

41

answers:

2

Hi all;

I want to know is there any way or message in MFC by which one can know that a user has finished resizing the dilog box ..??

+1  A: 

Handle the message WM_SIZE

mmonem
+1  A: 

Override your window class' OnSize() function.

Praetorian
But this function is always being called when user is in the process of resizing the dialog box not when the user has finised the resizing..I am looking for a message that should be fired,when the user is releasing the mouse left Btn after dragging the mouse with left button pressed for resizing ..I tried WM_NCLBUTTONUP but it is very irregular does not fire always..
Look at this post: http://stackoverflow.com/questions/2797468/capture-the-last-wm-size. So you could just save the last `OnSize()` parameters, then when you receive `WM_EXITSIZEMOVE` call a resize function that resizes your window based on the last `cx` and `cy` received by `OnSize()`.
Praetorian
Yes, WM_EXITSIZEMOVE is the solution of my problem..Thanks to All...