class CTrempDlg : public CDialog
{
// Construction
public:
CButton button;
CTrempDlg(CWnd* pParent = NULL);
........
}void CTrempDlg::OnOK()
{
button.Create(NULL,WS_VISIBLE|WS_CHILD,
CRect(0,0,20,20),this,10);
button.MoveWindow(100,100,200,200);
}//并没有出现你说的情况
{
// Construction
public:
CButton button;
CTrempDlg(CWnd* pParent = NULL);
........
}void CTrempDlg::OnOK()
{
button.Create(NULL,WS_VISIBLE|WS_CHILD,
CRect(0,0,20,20),this,10);
button.MoveWindow(100,100,200,200);
}//并没有出现你说的情况
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货