|
-
May 4th, 1999, 03:44 PM
#1
MFC, dynamically create a windows control
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
-
May 5th, 1999, 08:42 AM
#2
Re: MFC, dynamically create a windows control
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|