Hi, Im a beginner of MFC(and programmation), Can someone tell me how to create dynamically a window control (like a editbox, or a Button) without using a .rc file. Thanks
Printable View
Hi, Im a beginner of MFC(and programmation), Can someone tell me how to create dynamically a window control (like a editbox, or a Button) without using a .rc file. Thanks
Something along these lines
CButton *pNewButton;
pNewButton = new CButton;
pNewButton->Create( ... ); // insert needed parameters in place of ...
I would recommend making the pNewButton a private member variable of the class you create it in so you may access it later.