cs_yves_r
Messages postés21Date d'inscriptionmercredi 27 octobre 2004StatutMembreDernière intervention27 avril 2005
-
26 nov. 2004 à 10:54
cs_yves_r
Messages postés21Date d'inscriptionmercredi 27 octobre 2004StatutMembreDernière intervention27 avril 2005
-
26 nov. 2004 à 12:21
Bonjour,
J'essaie de gérer la touche RETURN dans un prog en Dev-C++ Windows.
J'ai un WinMain ordinaire:
--------------------------------------------------------------------
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
return DialogBox( hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, proc_win);
}
------------------------------------------------------------------
Dans la Callback proc, j'ai intégré dans mon switch le cas WM_KEYDOWN:
------------------------------------------------------------------
.....
case WM_KEYDOWN :
{
if (wParam == VK_RETURN)
MessageBox(hwnd, "Enter RETURN", "Warning", MB_OK);
}
break;
.....
-------------------------------------------------------------------
Mais impossible d'attraper l'évènement touche RETURN.
Quelqu'un a-t-il une idée ?
Merci. :)
Yves R
A voir également:
Gestion touche RETURN dev-c++ avec dialogBox Windows