View Single Post
  #6   Spotlight this post!  
Unread 28-12-2004, 18:00
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Re: win32 dialog help

Quote:
Originally Posted by Chris Bright
Unfortanuly i don't now much of anything about .net. I tried changing and adding the returns and nothing happened. Here is the full project.

whiteboard.zip

Thanks for your help guys
Hmmm... well, the included exe works just fine for me (both XP Professional and linux using wine), as does recompiling (using DevC++ 4.9.8.0), so I'm guessing something strange is happening with your computer. What version of Windows are you running?

Also, if you could add the following code and try running it again, that would be great:

-In WindowProcedure, in the IDI_HELP_ABOUT case, just above the line DialogBox(...):
MessageBox(NULL, "Got menu click", "Test", MB_OK);

-In AboutDialog, in the WM_INITDIALOG case:
MessageBox(NULL, "Got init dialog", "Test", MB_OK);

Then try choosing About from the help menu and see how many message boxes show up.


-Rob

Quote:
Originally Posted by Astronouth7303
I thought you were supposed to use DefWindowProc(), ie:
Maybe... I can't really remember. It's been a long time since I've done any API stuff (I've been doing Qt almost exclusively recently, and it was MFC before that).
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php