dia1 *pFrame=new dia1;
pFrame->Create(IDD_DIALOG1);
pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow();
无标题栏的移动的处理方法是,是在OnLButtonDown中加上一句话。如下:
void CTsDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
SendMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(point.x, point.y));
CDialog::OnLButtonDown(nFlags, point);
}
OnCreate ::SetWindowPos(this->GetSafeHwnd(),HWND_TOPMOST,0,0,200,200,SWP_SHOWWINDOW);