void CShow::SetMainCenter()
{
 //主窗口置中心
 extern HWND hDlg;
 //取主窗口矩形
 CRect rect;
 ::GetWindowRect(hDlg,&rect);

 //移动主窗口位置
 CRect screenrect;
 ::GetWindowRect(::GetDesktopWindow(),&screenrect);
 ::SetWindowPos(hDlg,HWND_TOP,(screenrect.Width()-rect.Width())/2,rect.top,rect.Width(),rect.Height(),SWP_NOSIZE);
}