谢谢!我的意思是要把对话框的clientdc变大,以后要在上面做图。 int nFullWidth=GetSystemMetrics(SM_CXFULLSCREEN); int nFullHeight=GetSystemMetrics(SM_CYFULLSCREEN); clientrect.SetRect(CPoint(0,0),CPoint(nFullWidth,nFullHeight)); 为什么显示时候就不是全屏呢?
HWND GetDlgItem( HWND hDlg, // handle of dialog box int nIDDlgItem // identifier of control ) 用此函数即可找到对话框句柄.
MoveWindow(0,0,屏幕宽,屏幕高)
int nFullWidth=GetSystemMetrics(SM_CXFULLSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYFULLSCREEN);
clientrect.SetRect(CPoint(0,0),CPoint(nFullWidth,nFullHeight));
为什么显示时候就不是全屏呢?
HWND hDlg, // handle of dialog box
int nIDDlgItem // identifier of control
)
用此函数即可找到对话框句柄.