怎样获得窗口客户区的大小?客户区不包括工具栏和状态栏。
在怎样设置客户区大小。

解决方案 »

  1.   

    窗口客户区.Height:=ClientHeight-(工具栏.Height+状态栏.Height)
      

  2.   

    GetClientRect
    The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0). BOOL GetClientRect(
      HWND hWnd,      // handle to window
      LPRECT lpRect   // client coordinates
    );
      

  3.   

    利用窗体的ClientHeight和ClientWidth属性!!!
      

  4.   

    就是ClientHeight客户区高度, ClientWidth客户区宽度。
      

  5.   

    两个星的家伙说了..
    getclientrect
      

  6.   

    一个星的家伙提供的方法是对自己写程序时的窗口用的
    两个星的家伙提供的方法是对所有windows窗口有效