void CXXXDlg::MoveToRightBottom()
{
int cx = GetSystemMetrics(SM_CXFULLSCREEN);
int cy = GetSystemMetrics(SM_CYFULLSCREEN);
CRect rect;
GetWindowRect(&rect);
int x = cx - rect.Width();
int y = cy - rect.Height();
SetWindowPos(NULL, x, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
}
在OnInitDialog中調(diào)用該函數(shù)即可
posted on 2009-03-12 10:54
水 閱讀(2126)
評(píng)論(1) 編輯 收藏 引用 所屬分類:
vc