dynamic button ...
-
Helllllo people .. i'm new in vc++ but i want to learn ... now i have a mfc mdi wizard with base class CFormView and i want to put on a new document something but in dynamic mode with Create function ... something like a button or a static text ... the problem is that i don't know where and how to do this .. i have tryed and the best result is that the button was there for a moment just and then gone .. i don't know where ... my last tryings are CMDIChildWnd * bb=((CMDIFrameWnd*)AfxGetMainWnd())->MDIGetActive(); CButton info1; CRect rct(50,50,200,200); info1.Create("Info1",WS_CHILD,rct,bb,130); info1.SetWindowText("Pleease !!!"); please help me ... and forgive my english :)
-
Helllllo people .. i'm new in vc++ but i want to learn ... now i have a mfc mdi wizard with base class CFormView and i want to put on a new document something but in dynamic mode with Create function ... something like a button or a static text ... the problem is that i don't know where and how to do this .. i have tryed and the best result is that the button was there for a moment just and then gone .. i don't know where ... my last tryings are CMDIChildWnd * bb=((CMDIFrameWnd*)AfxGetMainWnd())->MDIGetActive(); CButton info1; CRect rct(50,50,200,200); info1.Create("Info1",WS_CHILD,rct,bb,130); info1.SetWindowText("Pleease !!!"); please help me ... and forgive my english :)