Skip to main content
GameDev.net gamedev.net
🔒 Locked

SetWindowPlacement()

Started by ga Apr 23, 2000 at 1:16 PM 4 replies 3k views
Original Post
ga
ga
I want to use SetWindowPlacement() to maximize my application window and I tried it with following WINDOWPLACEMENT structure: WINDOWPLACEMENT wndpl = { sizeof(WINDOWPLACEMENT), WPF_RESTORETOMAXIMIZED, SW_SHOWMINIMIZED, 0,0,0}; But SetWindowPlacement() fails. Does anyone know why? Visit our homepage: www.rarebyte.de.st GA
Visit our homepage: www.rarebyte.de.stGA
PoesRaven
PoesRaven
im not an api expert, but shouldnt you pass SW_SHOWMAXIMIZED instead of SW_SHOWMINIMIZED
call extended error information to get a better idea of what the problem is
-PoesRaven
ga
ga
I tried SW_SHOWMAXIMIZED first, it didn''t work;
I read that I must write SW_SHOWMINIMIZED if I give WPF_RESTORETOMAXIMIZED as 2nd parameter. But SetWindowPlacement() always returns 0 -> failure.

Visit our homepage: www.rarebyte.de.st

GA
Visit our homepage: www.rarebyte.de.stGA

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.