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 / Getting Window Handle

Author
Message
Mr Awesome Guy
15
Years of Service
User Offline
Joined: 19th May 2009
Location:
Posted: 20th May 2009 00:06
Does anyone know if it is possible to get the handle to the window in a Dark GDK 2D game? I need to set the title of the window, so if nobody knows how to get the handle, does anyone know how to just set the title of the window? Getting the handle would be preferable because there are a lot of others minor things I want to do too. Thanks!
ABXG
15
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Canada
Posted: 20th May 2009 01:45
You could always just use:

dbSetWindowTitle("Window Name");

------------------------------------
Currently 1500+ lines of code into an "over-the-shoulder" action RPG with combat based on rag-doll physics.
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 20th May 2009 21:16
@Guy:

You have to include "Globstruct.h" into your application by adding the line below to the top of your code:

#include "Globstruct.h"

Then you can simply use the line below to access the current window handle.

g_pGlob->hWnd

Regards

Login to post a reply

Server time is: 2024-11-25 10:55:45
Your offset time is: 2024-11-25 10:55:45