VisualC bug?! (DialogBox)
It seems that I can''t create normal dialogboxes anymore. Bugs appear like you can''t drag the window, can''t click on the close button and when calling the MessageBox() function inside the Dialogbox, both windows will be disabled, and can''t be activated.
Anyone has experienced these problems?
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Sludge Softwarewww.sludgesoft.comDeveloping a secret of mana style role-playing-game
I doubt it''s a bug. It''s either your installation of MSVC is messed up, or you''ve just messed up some code.
Post the code (snippets of it, please) and we''ll see.
Post the code (snippets of it, please) and we''ll see.
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
Ok, here is the source (all of it ;-))
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
|
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Sludge Softwarewww.sludgesoft.comDeveloping a secret of mana style role-playing-game
And where''s the message pump??? If you start spawning message boxes from your message handlers your message queue will stall without one...
Jans.
Jans.
That particular instance doesn''t need a message pump. But the way you have your message handler set up is wrong. First, it needs to return a BOOL. Second, don''t call DefWindowProc, return FALSE. Return TRUE if you handled a message though. Third, you have to handle WM_CLOSE and such so the dialog WILL close when told to.
Hmm, strange, in another program I written some time ago, that code would work.
I changed it now, and it works. Thanks.
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
I changed it now, and it works. Thanks.
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Sludge Softwarewww.sludgesoft.comDeveloping a secret of mana style role-playing-game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement