MessageBox

Started by
2 comments, last by smally 16 years, 2 months ago
Hi, I'm currently making a game with DirectX. And I've been using MessageBox quite often in it for cases when either a texture file can't be found or a when a HRESULT has FAILED. However I don't know how to make my program respond to whatever the button from the message box the user clicks on. I have only just recently decided to make so if a texture isn't found the user has an option to close the program or continue. How do I go about this?
Advertisement
I think,when ever your program didn't found texture,then If user clicks continue then u should load a texture(default) which specify no texture.
Do you mean, how do you dtect the return value from MessageBox?

If so, then it depends on the type. MB_OK will return IDOK, MB_YESNO can return IDYES or IDNO, MB_YESNOCANCEL can return IDYES, IDNO, IDCANCEL, and so on.
Edit:

Oh right then the message box just simply returns flags, thanks

This topic is closed to new replies.

Advertisement