15,979
社区成员
发帖
与我相关
我的任务
分享
对话框类的成员变量:
CButton *m_pMyButton;
按钮响应函数:
m_pMyButton = new CButton();
CRect rcBtn(0, 0, 100, 20);
m_pMyButton->Create(TEXT("Button1"), WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON,
rcBtn, this, 1000);