"The WM_ENTERSIZEMOVE message is sent once to a window when it enters the
moving or sizing mode. The window enters the moving or sizing mode when the
user clicks the window’s title bar or sizing border, or when the window
passes the WM_SYSCOMMAND message to the DefWindowProc function and the
wParam parameter of the message specifies the SC_MOVE or SC_SIZE value.
Windows sends the WM_ENTERSIZEMOVE message regardless of whether the
dragging of full windows is enabled."
Since CView is doesn't have a titlebar or sizing border and, probably,
doesn't process WM_SYSCOMMAND, it doesn't get this message. The CView's
parent is derived from CFrameWnd (differs slightly depending on whether
you're SDI/MDI). This frame DOES have titlebar and sizing border and is
the one getting the message. If you'll move your ON_MESSAGE handler to the
CView's parent, everything should work.
HTH,
Mike Hel...@EDRTech.com
gle...@livepicture.com (Glenn Nelson) wrote in article
<5j85vp$9...@kane.ico.net>...
> I have a Win32 API app that intercepts WM_EXITSIZEMOVE so that I can
update
> the window only after the user finishes sizing it (releases the mouse).
> It works.
>
> Now I am creating a MFC app to do the same. Since EXITSIZEMOVE is not
> supported by AFX, I used ON_MESSAGE(WM_EXITSIZEMOVE, OnExitSizeMove) in
> my CView derived class. Apparently this message never arrives. I also
> intercept WM_SIZE and this works fine.
>
> Any ideas? E-mail reply is best. Thanks a lot.
>
> ---------------------------------------
> Glenn Nelson at Live Picture
> Scotts Valley, California
> gle...@livepicture.com
> http://www.livepicture.com
> Phone: 408-430-4330
>
>