Could someone post an example of how to dynamically create command buttons with MFC? All tutorials around are about dialog-based applications. Thank you.
Could someone post an example of how to dynamically create command buttons with MFC? All tutorials around are about dialog-based applications. Thank you.
As you gave no info I can not be more specific.
Code:#define IDB_ABUTTON 40001 CButton AButton; AButton.Create("A Button",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON , CRect(10,10,50,200), this, IDB_ABUTTON);
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Nice, it worked! I can't remember what I was doing wrong.