• Advertisement
Sign in to follow this  

SDL window question

This topic is 4257 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Say i want to use the WinApi function
int MessageBox(
     HWND hWnd,          // handle of owner window
     LPCTSTR lpText,     // address of text in message box
     LPCTSTR lpCaption,  // address of title of message box
     UINT uType          // style of message box 
in an sdl program. The only problem is, how do i find out what the handle of my window is? SDL handles all that automaticly. -Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
did you even bother to use google?
http://www.gamedev.net/community/forums/topic.asp?topic_id=320096

Share this post


Link to post
Share on other sites
Try using NULL:


MessageBox( NULL, "Message", "Caption", MB_XXXX );


Best wishes,
JJ (GeoMX).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement