hey, for like cut / copy / paste, you can usually use ctrl+<key> but i dont know how to handle those cases so does anyone know of a resource or can anyone explain how? thanks
hey, for like cut / copy / paste, you can usually use ctrl+<key> but i dont know how to handle those cases so does anyone know of a resource or can anyone explain how? thanks
Registered Linux User #380033. Be counted: http://counter.li.org
This can be done with accelerators and TranslateAccelerator:
http://msdn.microsoft.com/library/de...ccelerator.asp
Another possible solution is PreTranslateMessage().
Kuphryn
thanks
is PreTranslateMessage MFC?
i just read some on the msdn site so this may be a stupid question but, do you know how it works? like, do i have to have that function process actions before going on to send the message or do i just need to load the accelerator or what? lol
thanks for the help
Registered Linux User #380033. Be counted: http://counter.li.org
Isn't easier like this:
Code:case WM_KEYDOWN: { switch (wParam) { case VK_F1: { if(GetKeyState(VK_SHIFT)) { // you press SHIFT + F1 !!! } break; } } return TRUE; }