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 / GUI winapi ( how to make a window on Dark GDK )

Author
Message
Karbonize
16
Years of Service
User Offline
Joined: 7th Mar 2008
Location: Mexico
Posted: 15th Mar 2008 01:08
Hi all...

Im here trying to implement a window on DarK GDK...

as we know...

void DarkGDK ( void )

is how we start or programs but when we do an api we call

int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)

...

i need how to make a window a extra window

cuz i need to implement:
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

to get the MSG of the window to hook with my sockets and make my client using DARK GDK

Gods....! bah im better
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 15th Mar 2008 02:01
Ordinarily, you create that window in WinMain.

The callback is called by Windows. It is the message hook. You create the window, and in the class structure you create the window with is the address of that function. Also, you can create a window, and use SetWindowLong to set the callback address.

Post your cpp file, like I said in your other thread. I will show you how its done.
Sephnroth
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 15th Mar 2008 12:36
i cannot anywhere find the file for the tutorial i wrote which went deep indepth of how to use winapi commands with the darkgdk and explained how to take control of the message handler etc -_- I know several people commented on it so someone out there must still have it!

IanT? If anyone has it please attach it to a forum post so i can re-host it. I'll do the same if i eventually find it.

Fusspawn
16
Years of Service
User Offline
Joined: 19th Feb 2008
Location:
Posted: 15th Mar 2008 21:16
http://forum.thegamecreators.com/?m=forum_view&t=54893&b=22

found the topic .. the download links are invalid tho

shame i wanted these for myself

Stuck in the land of the confused! and loving it!
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 16th Mar 2008 16:35
I have a copy of the tutorial (attached to this post). Nice little tutorial Sephnroth.

I have also added another Win32 API tutorial in the zip file which shows you how to do other stuff.

Much good work is lost for the lack of a little more.

Attachments

Login to view attachments
Sephnroth
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 17th Mar 2008 03:14
excellent, thanks mono! I thought I had lost it xD I'll re-host it on my new server soon.

Don't forget though guys, it was written for use with visual studio 6 - no idea how well it will translate to 2005/2008!

Login to post a reply

Server time is: 2024-09-29 15:25:17
Your offset time is: 2024-09-29 15:25:17