Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnKeyDown()

Status
Not open for further replies.

gavshan

Programmer
Nov 22, 2003
2
IE
i have added the OnKeyDown() function but i dont understand the parameters i have put in VK_SPACE for the first one count and flags for the other two but i get the error &quot;error C2448: '<Unknown>' : function-style initializer appears to be a function definition&quot;
 
Don't use VK_SPACE for an argument, use nChar and all of the other defaults. The OnKeyDown() function already knows what nChar is going to be when the button is pressed, so put in your function body:

switch(nChar)
{
case VK_SHIFT:
// DO SHIFT KEY
}

-Bones
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top