bonjour a tous,
voila mon code est structuré comme ca:
BOOL CALLBACK Dialog(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_INITDIALOG: xxxxxx break;
case WM_COMMAND: { switch(LOWORD(wParam)) { case Item1: { instruction1 instruction 2 ... return TRUE; }
case Item2: { instruction1 instruction 2 ... return TRUE; } }
case xxx: { instruction 1 instruction 2 default: return FALSE; }
return TRUE; } |
voila en fait je veux envoyer le message Item2 a partir de WM_INITDIALOG. je procede comme ceci:
| SendMessage(hWnd, Item2, NULL, NULL); |
mais rien ne se passe... que dois-je faire?
Bob...
"La chance accorde ses faveur aux esprits avertis..."