Is there a better way to do this?
What I was trying to do. Open multiple types of mdiclient child windows with different attributes. It is just two right now but may be as many as 14 later. Started with winforge2 app4 source code as base. Then duplicated the mdichild stuff. Part of the problem is in the message loop. I can replace mg with g and vice a versa and open the window on the first program like this I did. This is the second program working out some bugs that started with the winforge2 source code. A restart from scratch using the base code from the tut. It will not take the || or and since I am just using two different types of mdichild types now I see a problem adding more types. If I put a switch case in the middle of the if I am not sure that will work. Suggestions for a better way? Or know of other code that already does this? Meow. Stuck. Was considering using a different Msg and a second loop that would require more changes to the code. Both mdichild types are the same now but when I can call both of them and have both or more of different types on screen then I will change the attributes.Code:
while(GetMessage(&Msg, NULL, 0, 0) > 0)
if (!TranslateMDISysAccel(g_hMDIClient || mg_hMDIClient , &Msg))