keyboard constants
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
what are the values for the enter adn delete keys? and how would i map them for a tree control?
-
what are the values for the enter adn delete keys? and how would i map them for a tree control?
VK_RETURN and VK_DELETE (as defined in WinUser.h) I would handle them in the TVN_KEYDOWN notification handler
void CMyDialog::OnKeyDownTree(NMHDR* pNMHDR, LRESULT* pResult)
{
NMTVKEYDOWN* pTVKeyDown = (NMTVKEYDOWN*)pNMHDR;
if (pTVKeyDown->wVKey == VK_RETURN)
{
// Enter Key
}
else if (pTVKeyDown->wVKey == VK_DELETE)
{
// Delete Key
}
*pResult = 0;
}
[
](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!