Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 21st, 2005, 5:21 AM   #1
hemanth.balaji
Programmer
 
Join Date: May 2005
Posts: 54
Rep Power: 0 hemanth.balaji is an unknown quantity at this point
Send a message via Yahoo to hemanth.balaji Send a message via Skype™ to hemanth.balaji
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.
hemanth.balaji is offline   Reply With Quote
Old May 21st, 2005, 2:49 PM   #2
hippocrat
Newbie
 
Join Date: Apr 2005
Posts: 17
Rep Power: 0 hippocrat is on a distinguished road
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 .
hippocrat is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC