Home > Software engineering >  How to dynamically added controls in application exe?
How to dynamically added controls in application exe?

Time:11-29

I want to implement in a single document procedure, after pressing a button, generates a new button, click for many times, can generate multiple button, and button can use the mouse to drag,
How to do excuse me?
I will only dynamically generates a button now, other all can't,,,,
 

M_btn. Create (L "DDD", BS_DEFPUSHBUTTON | WS_VISIBLE | WS_CHILD, CRect (0, 0, 100, 100), and this, 123);

On the click the error, strives for the solution,
Bosses give directions, thank you

CodePudding user response:

 
//new controlsCButton * pBtn=new CButton;
PBtn - & gt; Create (_T (" Test "), the WS_CHILD | WS_VISIBLE, CRect,0,100,100 (0), and this, XXXX);
//added to the list of management, so that when not clear
//CArrayM_Btns. Add (pBtn);



CodePudding user response:

Can drag DrawCLI sample to reference
  • Related