这个问题困扰很久了,该如何解决啊?
就是我分割一个窗口,上下两部分,下面的固定为100高度,然后试图为formview,但是,由于对话框资源模版太大了, 总是显示滚动条,如果在资源视图中手动改大小,又不知道到底有多大,而且看上去很小了,可是出来还是很大,如果改成几个像素倒是不显示滚动条了,但是,我还想往上放控件,那怎么看啊,所以动态如何做啊?

解决方案 »

  1.   

    这里有个示例,
    Building a dialog template at run-time
    http://blogs.msdn.com/oldnewthing/archive/2005/04/29/412577.aspx
      

  2.   

    You can use CDialogTemplate member functions GetSizeInDialogUnits and GetSizeInPixels.Here is a note from MS on this class' parent file (afxpriv.h)...// Note: This header file contains useful classes that are documented only
    // in the MFC Technical Notes.  These classes may change from version to
    // version, so be prepared to change your code accordingly if you utilize
    // this header.  In the future, commonly used portions of this header
    // may be moved and officially documented.
      

  3.   

    OnSize里面处理,然让FormView填满下面那个视图区域就可以了
      

  4.   

    http://www.codeproject.com/KB/dialog/resizablelib.aspx
    正是你需要的