void   Cxxx::OnNcCalcSize(BOOL   bCalcValidRects,   NCALCSIZE_PARAMS   FAR*   lpncsp) lpncsp->rgrc[0]表示移动后的窗口位置   
  lpncsp->rgrc[1]表示移动前的窗口位置   
  lpncsp->rgrc[2]表示移动前的客户位置 //lpncsp->rgrc[0]这个窗口是指含客户区与非客户区的整个窗口么?  

解决方案 »

  1.   

    When the window procedure receives the WM_NCCALCSIZE message, the first rectangle contains the new coordinates of a window that has been moved or resized, that is, it is the proposed new window coordinates. The second contains the coordinates of the window before it was moved or resized. The third contains the coordinates of the window's client area before the window was moved or resized. If the window is a child window, the coordinates are relative to the client area of the parent window. If the window is a top-level window, the coordinates are relative to the screen origin. When the window procedure returns, the first rectangle contains the coordinates of the new client rectangle resulting from the move or resize. The second rectangle contains the valid destination rectangle, and the third rectangle contains the valid source rectangle. The last two rectangles are used in conjunction with the return value of the WM_NCCALCSIZE message to determine the area of the window to be preserved. 
      

  2.   


    这几句英文,我其实也看得不懂,不过仍然不知道是什么意思。谁知道的,用大白话讲一下就好了,这种msdn的帮助我也是查得到的,不过没啥用,看几片也看不明白
      

  3.   

    rgrc[0]指的是移动或改变大小后的窗口坐标.指的是接收这个消息的整个窗口