Quote Originally Posted by Ken Fitlike
Or you could just determine which mdi child window a message is for in the window 'class' mdi child window procedure and forward it to another function which would act as the window procedure.
sorry forgot to ask you this:

how can i determine which mdi child window a message is for?
ie:
i have 1 window with a button when clicked displays "hello world" and the other window have a button that displays "bye world" , i can combine both in the same child procedure lik:

Code:
switch(LOWORD(wParam)){
...
case IDB_HELLOW://in child window 1 with button id IDB_HELLOW
...
break;

case IDB_BYEWORLD://in child window 2 with button id IDB_BYEWORLD
...
break;
...
}
can be done that way?
thanks again for help