Advertisement

WM_CHAR in NeHe Basecode 2

Started by April 06, 2002 06:38 PM
3 comments, last by Narkster 22 years, 10 months ago
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.]

[twitter]warrenm[/twitter]

Advertisement
This:


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.]

[twitter]warrenm[/twitter]

Exactly.
--------------------------Budha walks up to a hotdog vender and says:"Make me one with everything."L8R

This topic is closed to new replies.

Advertisement