Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Aug 31st, 2005, 3:31 PM   #1
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 312
Rep Power: 4 Klarre is on a distinguished road
[WIN32] Fixed window size

How do I tell the created window to not be resizeable? (The maximize button should be grey)
Klarre is offline   Reply With Quote
Old Aug 31st, 2005, 3:40 PM   #2
L7Sqr
Hobbyist Programmer
 
Join Date: Jun 2005
Location: here
Posts: 144
Rep Power: 0 L7Sqr is an unknown quantity at this point
What development enviornment are you in?
__________________
"...and though our kids are blessed their parents let them shoulder all the blame."
- The Quiet Things That No One Ever Knows [BrandNew]
L7Sqr is offline   Reply With Quote
Old Aug 31st, 2005, 3:44 PM   #3
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 312
Rep Power: 4 Klarre is on a distinguished road
Quote:
Originally Posted by L7Sqr
What development enviornment are you in?
What do you mean? Notepad and GCC?
Klarre is offline   Reply With Quote
Old Aug 31st, 2005, 4:12 PM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
kinda a broad question... so here is a broad answer....
check this out:

http://msdn.microsoft.com/msdnmag/is...c/default.aspx
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 31st, 2005, 4:28 PM   #5
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 312
Rep Power: 4 Klarre is on a distinguished road
Quote:
Originally Posted by Infinite Recursion
kinda a broad question...
Broad question? Run calc, and you will see a non-resizeable window (you cannot pull the borders). Thanks for the link anyway. It didn't helped though. I had hoped for a simple answear like:
mWindow = CreateWindow(...);
mWindow.SetResizeable(false);
But it seems to me that it is more complicated than that.
Klarre is offline   Reply With Quote
Old Aug 31st, 2005, 4:53 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well, you didn't mention what API you were using. I take it you're using the bog-standard Win32 API?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Aug 31st, 2005, 5:08 PM   #7
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 312
Rep Power: 4 Klarre is on a distinguished road
Quote:
Originally Posted by Ooble
Well, you didn't mention what API you were using. I take it you're using the bog-standard Win32 API?
Yes I am using the WIN32 API. I mentioned it in the title.
Klarre is offline   Reply With Quote
Old Aug 31st, 2005, 5:39 PM   #8
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Ah... I assumed that just meant you were using Windows. In that case, this should help. All constants in that list can be used as part of the dwStyle parameter of CreateWindow, I believe.
__________________
Me :: You :: Them
Ooble 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 11:51 AM.

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