联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Showing Window Contents While Resizing t - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为19221
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • PoolMan
  • Air Traffic Controller
  • virtualdub-win
  • CppUnit
  • Apache-SSL-Jserv
  • FCK editor
  • Async Professional
  • GLgraph
  • -= 更多 =-

    项目描述:
    The CSplitterWnd class of MFC does not draw panes while resizing. My class allows you to show a window's contents while you are resizing the splitter pane. It supports only one row and two columns per splitter window now, but you can contribute additional code and develop it.

    The CSplitterWnd class does not handle WM_SIZING because the window itself does not resize -- neither do child windows -- because the splitter does not notify them until the sizing finishes. I have used the WM_MOUSEMOVE handler with the MK_LBUTTON flag; this means that the user is dragging the splitter bar while moving the mouse. I have overriden the base class' handler and put in my code to resize and paint panes while the user is dragging. I have also used two values to handle drag's start coordinates; you may use it as POINT or CPoint, instead of two variables.

    CSplitterWnd 这个MFC类没有在调整大小时绘制窗格。我的类可以让你在调整窗格大小时显示一个窗口的内容。它只支持一个一行两列的分割窗口,但你可以增加代码,再次开发它。
    CSplitterWnd 类没有处理WM_SIZING ,因为窗口本身不会重调整大小(子窗体也不会),直到绘制完成后,分割条才通知它们。我使用了带有MK_LBUTTON 标志的WM_MOUSEMOVE 事件,这意味着用户用户在移动鼠标时正在拖动滚动条。我重载了基类的处理器,在我的代码中当用户拖动时进行重调整大小和绘制窗格操作。我也使用了两个值来记录拖动开始时的坐标;你可以将用POINT 或 CPoint来取代这两个变量。
    来源: http://www.codeguru.com/dialog/splitter.html
    类别:
    发布者: cbd002

    最新发布源码包
    没有发布任何的软件包!
    原始下载连接(国外) http://www.codeguru.com/code/legacy/dialog/splitterdemo.exe

      » 合 作 伙 伴