WM_CHAR in NeHe Basecode 2
Does WM_CHAR work when you switch(uMSG) in Nehe''s basecode?
I can''t seem to get it to respond, I have also tried to put it first in the switch function, and I have try to add the winuser.h header, but neither one of these work. Anyone have any clue as to whats going on?
Thanx,
-Nark
--------------------------
Budha walks up to a hotdog vender and says:
"Make me one with everything."
L8R
--------------------------Budha walks up to a hotdog vender and says:"Make me one with everything."L8R
What exactly is your problem?
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[if you have a link proposal, email me.]
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[if you have a link proposal, email me.]
[twitter]warrenm[/twitter]
This:
The above does nothing no matter what functions I use.....
--------------------------
Budha walks up to a hotdog vender and says:
"Make me one with everything."
L8R
[edited by - narkster on April 6, 2002 8:14:16 PM]
case WM_CHAR:
KillApp;
break;
The above does nothing no matter what functions I use.....
--------------------------
Budha walks up to a hotdog vender and says:
"Make me one with everything."
L8R
[edited by - narkster on April 6, 2002 8:14:16 PM]
--------------------------Budha walks up to a hotdog vender and says:"Make me one with everything."L8R
switch(msg)
{
...
case WM_CHAR:
if(wParam == VK_ESCAPE)
PostQuitMessage(0);
return 0;
else
break;
...
}
//DefWindowProc and so on...
You''re telling me the app won''t exit if you put that in your WndProc?
Later,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[if you have a link proposal, email me.]
{
...
case WM_CHAR:
if(wParam == VK_ESCAPE)
PostQuitMessage(0);
return 0;
else
break;
...
}
//DefWindowProc and so on...
You''re telling me the app won''t exit if you put that in your WndProc?
Later,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[if you have a link proposal, email me.]
[twitter]warrenm[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement