![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
WIN32 Creating a full screen window
How do you create a window such that when u run the project it should the window in maximized state.
I tried ShowWindow(hwnd,SW_SHOWMAXIMIZED) & ShowWindow(hwnd,SW_MAXIMIZE) , but it used to cover the windows taskbar also. I dont want that to happen but the window should be of that of the screen width and screen height - taskbar. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2005
Posts: 17
Rep Power: 0
![]() |
I always use SW_MAXIMIZE it works for me but I also have the taskbar property "keep task bar on top .. " enabled as well so it doesnt cover the taskbar.
One way you could do it is to call SHAppBarMessage with ABM_GETTASKBARPOS to get the taskbar position then adjust your windows size from there . |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|