Hello
From what I can tell, the thing that sticks out is that you gave both controls the same nID parameter in Create. I think MFC keeps track of CWnd handles by using a map, and each nID item has to be unique. So try something like the following
c_LevelGraph2.Create("", WS_VISIBLE, CRect(0,0,200,200),this, 1001,NULL, FALSE, bstrLic);
c_LevelGraph3.Create("", WS_VISIBLE, CRect(400,400,600,600),this, 1002,NULL, FALSE, bstrLic);
Hope this helps
Bilal Durrani
NI
Bilal Durrani
NI