   (Solved) Win32 Unmaximize
  I'm using Win32 for windowing of a Direct3D graphics application and want to handle resizing the window. It's really slow to handle whenever the user is dragging the window around so I only want to handle when the user quits resizing it, maximizes the window or restores the window from maximize. I have the user moving and maximize working correctly, but can't figure out what message to catch for the user unmaximizing a window. I thought WM_SIZE with SIZE_RESTORED would work but that is sent for every movement of the mouse while the user is resizing to which bogs down the system.Thanks in advance for any help.-- Matthew Sorenson[Edited by - ender_341 on May 4, 2009 11:40:10 PM]
  You should be able to get what you need by handling WM_SYSCOMMAND and looking at the wParam value to see if the command corresponds to SC_RESTORE ("restore" being the official Windows term for unmaximizing a window).   ;  WM_SYSCOMMAND works when pressing the restore button, but still doesn't work when the user double clicks on the title bar, is another that captures that or am I out of luck?-- Matthew Sorenson   ;  I think WM_NCLBUTTONDBLCK should handle that case.   ;  Awesome that was it. Thanks for the help.-- Matthew Sorenson   