Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionLRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { static HWND hwnd_static; switch(msg) { case WM_CREATE: // static pseudo // 0 : Pas de bords // "Pseudo: Texte du statique // WS_CHILD : controle enfant // 50 : position X // 50 : position Y // 100 : width // 20 : height // hwnd : HWND de la fenetre hwnd_static = CreateWindowEx(0, "STATIC", "Pseudo", WS_CHILD | WS_VISIBLE, 50, 50, 100, 20, hwnd, (HMENU) IDC_STATIC_PSEUDO, GetModuleHandle(NULL), NULL); break; // si on click sur la croix, detruit la fenetre case WM_CLOSE: DestroyWindow(hwnd); break; // si la fenetre est détruite case WM_DESTROY: // on quit PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; }