Advertisement Jump to content
Sign in to follow this  
Unconquerable

SDL window question

This topic is 4585 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!