获得的是客户区的RECT,然后自己看着办吧

解决方案 »

  1.   

    BOOL GetClientRect(
      HWND hWnd,      // handle to window
      LPRECT lpRect   // client coordinates
    );
    Parameters
    hWnd 
    [in] Handle to the window whose client coordinates are to be retrieved. 
    lpRect 
    [out] Pointer to a RECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window. 
      

  2.   

    你可以在WM_SIZE消息中得到,
    case WM_SIZE:
    cxClient=LOWORD(lParam);
    cyClient=HIWORD(lParam);
    这样任何时候都可以得到客户区尺寸了
      

  3.   

    得出来的窗口宽、高度,是不是等于CreateWindow所指定的值呢???