kiki67100
Messages postés
313
Date d'inscription
samedi 6 mai 2006
Statut
Membre
Dernière intervention
10 août 2013
1
1 mai 2007 à 18:54
Jai trouvé un code dans une de tais source
<li>LRESULT CALLBACK AppWndProc(HWND hwnd, UINT mssg, WPARAM wParam, LPARAM lParam)
</li><li>{
</li><li> switch(mssg) {
</li><li> case WM_CREATE:
</li><li> hed1 = CreateWindow(szEDIT, 0, WS_CHILD | WS_VISIBLE | WS_BORDER,
</li><li> 10, 10, 300, 20, hwnd, (HMENU) 1000, hinst, 0);
</li><li> hed2 = CreateWindow(szEDIT, 0, WS_CHILD | WS_VISIBLE | WS_BORDER,
</li><li> 10, 60, 300, 20, hwnd, (HMENU) 1001, hinst, 0);
</li><li> hed3 = CreateWindow(szEDIT, 0, WS_CHILD | WS_VISIBLE | WS_BORDER,
</li><li> 10, 110, 300, 20, hwnd, (HMENU) 1002, hinst, 0);
</li><li> hhk = SetWindowsHookEx(WH_GETMESSAGE, GetMsgProc, 0, GetCurrentThreadId());
</li><li> return 0;
</li><li> case WM_SETFOCUS:
</li><li> SetFocus(hed1); return 0;
</li><li> case WM_DESTROY:
</li><li> if(hhk) UnhookWindowsHookEx(hhk);
</li><li> PostQuitMessage(0);
</li><li> return 0;
</li><li> }
</li><li> return DefWindowProc(hwnd, mssg, wParam, lParam);
</li><li>}
</li>Je suis vraiment debutant jaimerais bien que tu mexplique comment sa marche esque se le bon code?
Kevin