So no one had tried to do this before? I could use dialog boxes but that is not what I wanted to do. I could also write a separate program for each of the different types of MDIchild windows program that I want. But that is not what I want to do eighter.
Some questions.
Do I need a different windows class or just a separate MDIchild class?
Code:
const char g_szClassName[] = "myWindowClass";
const char g_szChildClassName[] = "myMDIChildWindowClass";
const char mg_szClassName[] = "mmyWindowClass";
const char mg_szChildClassName[] = "mmyMDIChildWindowClass";
how about
Code:
HWND CreateNewMDIChild(HWND hMDIClient)
{
MDICREATESTRUCT mcs;
HWND hChild;
mcs.szTitle = "[Untitled]";
and....
HWND CreateMNewMDIChild(HWND MhMDIClient)
{
MDICREATESTRUCT mmcs;
HWND mhChild;
mmcs.szTitle = "[Muntitled]";
same hChild can be used or not?
And
Code:
// Find window menu where children will be listed
ccs.hWindowMenu = GetSubMenu(GetMenu(hwnd), 2);
ccs.idFirstChild = ID_MDI_FIRSTCHILD;
and ....
// Find window menu where children will be listed
mccs.hWindowMenu = GetSubMenu(GetMenu(hwnd), 2);
mccs.idFirstChild = ID_MDI_FIRSTCHILD;
can the same be used or a different mccs needed? meow.