sorry to continue with this but still wont work
know i have 2 simple mdi childs and the idea is that when u activate one its id is displayed
Code:
LRESULT CALLBACK ChildProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
HWND buttonHellow = NULL;
char cadena[80]="";
switch(Msg)
{
case WM_CREATE:
buttonHellow = CreateWindowEx(NULL,"BUTTON","Hola mundo",
WS_CHILD | WS_VISIBLE,100,20,92,30,
hWnd,(HMENU)ID_BUTTON,GetModuleHandle(NULL),NULL);
break;
case WM_MDIACTIVATE:
sprintf(cadena,"%s",GET_WM_COMMAND_ID(wParam, lParam));
MessageBox(hWnd,cadena,"Mensaje",MB_OK);
break;
}
return DefMDIChildProc(hWnd,Msg,wParam,lParam);
}
the problem is that a random id is displayed like 103 and in my .h file the firstid child window is 5000
any idea?
im completly lost?
thanks for your help