15,979
社区成员
发帖
与我相关
我的任务
分享
void CMy11View::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
CButton *pButton;
pButton = new CButton;
pButton->Create(_T( "Button" ), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
CRect( 0, 0, 100, 100 ), this, 999 ); //999 is the ID
pButton->ShowWindow(SW_SHOW);
}