Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Fixed Display Window Size?

Author
Message
Ravenal
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 19th Sep 2007 01:51
How can I tell my game to have a fixed Window Size ie, 800x600 so that it cannot be resized at all???

i've looked at almost all the display commands and found nothing.
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 19th Sep 2007 05:19 Edited at: 19th Sep 2007 05:27
well you can use this..

dbSetDisplayMode : void dbSetDisplayMode ( int iWidth, int iHeight, int iDepth )//set for 800 x 600

and this..

dbSetWindowOff ( void )

to kill the windowed mode so they can double click on the bar. If that wont get it you can easily use windows API calls. Works fine.. If you need to get the HWND you do

#include "globstruct.h" // Naturally!
then you can access is like this:

HWND WindowHandle = g_pGlob->hWnd;
Ravenal
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 19th Sep 2007 08:38
HWND WindowHandle = g_pGlob->hWnd;

Has been something I have been fighting to look for ALL dang day ROFL.... Thanks.......

was using DBP for a bit too haha
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 19th Sep 2007 16:22
Ah indeed its a nice trick.
Ravenal
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 19th Sep 2007 18:52
I am thinking, instead of having to remake a new thread the EULA of GDK is kind of confusing.... Can someone please just simply in easy understanding do points like..

1. You cannot do this.
2. You can do this.
3. You cannot do this... etc. etc. the EULA scared me lol.... I don't know if i want to spend countless hours on my game and go to jail for illegal things. I want to be legal haha...
Ravenal
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 22nd Sep 2007 17:04
For anyone who happens to ever want to have a perfect fixed size window in their program.

Login to post a reply

Server time is: 2024-11-16 20:09:17
Your offset time is: 2024-11-16 20:09:17