我参考CJ60lib上VC project界面的实现代码,现在碰到的问题是我拖动内部的contrlbar(包括StatusBar, workSpaceBar)都无法刷新界面,原因是无法响应OnWindowPosChanged消息,只有移动整个frame或在某个bar上点击时才能刷新,请教一下这是什么原因,如何解决,谢谢!

解决方案 »

  1.   

    CWnd::OnWindowPosChanged
    The framework calls this member function when the size, position, or Z-order has changed as a result of a call to the SetWindowPos member function or another window-management function.Res
     
    The default implementation sends the WM_SIZE and WM_MOVE messages to the window. These messages are not sent if an application handles the OnWindowPosChanged call without calling its base class. It is more efficient to perform any move or size change processing during the call to OnWindowPosChanged without calling its base class.
    这个后面才出发WN_SIZE,所以也是无法响应的
      

  2.   

    >>如果要刷新界面,可以响应WM_SIZE消息,在此消息里刷新新界面?