参考函数CRect rc;GetWindowRect(&rc);ClientToScreen(&rc);int nHeight = rc.Height();int nWidth = rc.Width();