Salut,
Merci pour votre aide,
j'ai essayé, mais après j'ai 1 erreur :
error C2440: '=' : cannot convert from 'long (__stdcall grapheGDI::*)(struct HWND__ *,unsigned int,unsigned int,long)' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
c'est lors de l'initialisation de la WNDCLASS
int grapheGDI::creerFenetre() { HINSTANCE hInst = /*AfxGetResourceHandle()*/ GetModuleHandle(NULL); int nFunsterStil = SW_SHOWDEFAULT;
init(); MSG Messages; WNDCLASS wc; wc.style = 0; wc.lpfnWndProc = FenetreProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInst; wc.hIcon = LoadIcon(hInst, "A"); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = CreateSolidBrush (0x909090); wc.lpszMenuName = "ID_MENU"; wc.lpszClassName = "AppWnd"; if (!RegisterClass(&wc)) return -1; .... }
LRESULT CALLBACK grapheGDI::FenetreProc(HWND frmhWnd, UINT Msg, WPARAM wParam, LPARAM lParam) {.....}
Il n'arrive pas a convertir parce que "FenetreProc" fait partie de ma classe ??? J'ai essayé de rajouter "grapheGDI::" devant "FenetreProc" mais ça ne marche pas...
Quelqu'un aurait-il une idée ?
Merci,
A+
|