How do i duplicate the maximize button? Like, to duplicates the "X" button, you send the WM_CLOSE message. I tried WM_MAXIMIZE but there is none.
Posted on 2001-07-22 20:21:50 by ChimpFace9000
I think you can use SetWindowPosition with WS_MAXIMIMIZE for that
Posted on 2001-07-22 20:23:29 by Hiroshimator
ShowWindow hWnd,SW_SHOWMAXIMIZED
Posted on 2001-07-22 20:25:33 by jcfuller
SetWindowPos doesnt. ShowWindow does, but, if you use it, then hit the button to un-maximize it, it doesnt go back to the size it was at, it stays the size of the screen, just not maximized. Did that make sense?
Posted on 2001-07-22 21:15:53 by ChimpFace9000
ShowWindow hWnd,SW_RESTORE
Posted on 2001-07-22 21:44:06 by Betrayed
Thats doesnt maximize it. It does the oposite.
Posted on 2001-07-23 02:07:16 by ChimpFace9000
take a look at the SetWindowPlacement function.
there you can deliver also a rect for the restore process.
Posted on 2001-07-23 03:39:22 by beaster