[purple]1. i want to make my window maximized when it is first shown in the screen. so my CreateWindow() looks like:[code]
hwnd = CreateWindow(szWinName,
[red]WS_MAXIMIZE[/red] | WS_MINIMIZEBOX |
WS_MAXIMIZEBOX | WS_SYSMENU,
when i run my program from the compiler (Build + Run), it is maximized. but when i run it by double clicking on the .exe icon, it is not maximized! i'm puzzled! what is wrong? i'm using dev c++.
2. what message a window function gets when the window is maximized by clicking on the maximize button, or restored again by clicking the maximize button?
thanks in advance.