#include <windows.h> #include <stdio.h> #include "resource.h" #include <commctrl.h> #pragma comment(lib, "comctl32.lib") HWND hdlg; // ''''''''''''''''' BOOL CALLBACK AppDlgProc(HWND hdlg, UINT mssg, WPARAM wParam, LPARAM lParam) { switch(mssg) { case WM_INITDIALOG: InitCommonControls(); return TRUE; break; case WM_COMMAND: { switch(LOWORD(wParam)) { case IDCANCEL: { EndDialog(hdlg, 0); return TRUE; break; } } } default: break; } return FALSE; } // ''''''''''''''''' int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, PSTR, int) { // ici, on obtien la même chose comme pb DialogBox(hInstance, MAKEINTRESOURCE(IDD_APP), NULL, AppDlgProc); return 0; } // '''''''''''''''''
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question