我现在做一个监控软件,第一个UI,采用什么方式好,第二个能不能帮我实现这样的功能,根据CCD的个数,在主界面上开放几个不同的VIEW,用来实时显示当前CCD的监控画面?谢谢各位!!!
解决方案 »
- OnTimer 怪问题疑惑
- 书上的一个创建非模式对话框的例子,总是有问题,求解释!
- VC编译错误提示 紧急
- 请教一下如何实现像PhotoShop一样的图片裁剪功能.主要是要带一个裁剪框,在裁剪框内的图片显示原来的样子,在裁减框外的图片如附件图所示.请说明一下思路阿
- 大家帮忙啊!
- [疑问]通过EnumServicesStatus得到的列表为什么比控制面板中看到的多?
- 目录加口令,进出文件夹时口令鉴别身份,请指点!
- 大家帮忙!!VC
- 请问哪里有《Dialogic从入门到系统工程师》这本书可以下载???
- 如何在Dos下和通过TCP/IP访问Windows?(通过程序设计)
- 关于MFC项目中与web应用服务器通讯
- 控件变量传递问题
到大恒、海康威视等的网站,可以下到demo,基本上可以实用的。
class CSplitterWnd : public CWnd
Res
A pane is usually an application-specific object derived from CView, but it can be any CWnd object that has the appropriate child window ID.A CSplitterWnd object is usually embedded in a parent CFrameWnd or CMDIChildWnd object. Create a CSplitterWnd object using the following steps: Embed a CSplitterWnd member variable in the parent frame.Override the parent frame's CFrameWnd::OnCreateClient member function.From within the overridden OnCreateClient, call the Create or CreateStatic member function of CSplitterWnd.Call the Create member function to create a dynamic splitter window. A dynamic splitter window typically is used to create and scroll a number of individual panes, or views, of the same document. The framework automatically creates an initial pane for the splitter; then the framework creates, resizes, and disposes of additional panes as the user operates the splitter window's controls.When you call Create, you specify a minimum row height and column width that determine when the panes are too small to be fully displayed. After you call Create, you can adjust these minimums by calling the SetColumnInfo and SetRowInfo member functions.Also use the SetColumnInfo and SetRowInfo member functions to set an "ideal" width for a column and "ideal" height for a row. When the framework displays a splitter window, it first displays the parent frame, then the splitter window. The framework then lays out the panes in columns and rows according to their ideal dimensions, working from the upper-left to the lower-right corner of the splitter window's client area.All panes in a dynamic splitter window must be of the same class. Familiar applications that support dynamic splitter windows include Microsoft Word and Microsoft Excel. Use the CreateStatic member function to create a static splitter window. The user can change only the size of the panes in a static splitter window, not their number or order. You must specifically create all the static splitter's panes when you create the static splitter. Make sure you create all the panes before the parent frame's OnCreateClient member function returns, or the framework will not display the window correctly.The CreateStatic member function automatically initializes a static splitter with a minimum row height and column width of 0. After you call Create, adjust these minimums by calling the SetColumnInfo and SetRowInfo member functions. Also use SetColumnInfo and SetRowInfo after you call CreateStatic to indicate desired ideal pane dimensions.The individual panes of a static splitter often belong to different classes. For examples of static splitter windows, see the graphics editor and the Windows File Manager. A splitter window supports special scroll bars (apart from the scroll bars that panes may have). These scroll bars are children of the CSplitterWnd object and are shared with the panes.You create these special scroll bars when you create the splitter window. For example, a CSplitterWnd that has one row, two columns, and the WS_VSCROLL style will display a vertical scroll bar that is shared by the two panes. When the user moves the scroll bar, WM_VSCROLL messages are sent to both panes. When the panes set the scroll-bar position, the shared scroll bar is set.For further information on splitter windows, see: Technical Note 29 Knowledge Base article Q262024: HOWTO: Use CPropertySheet as a Child of CSplitterWndFor more information on how to create dynamic splitter windows, see: MFC sample ScribbleMFC sample VIEWEX.Requirements
Header: afxext.hSmart Device Developer Notes
This section has been updated for Visual Studio 2005 SP1. Starting in Visual Studio 2005 SP1, this class is supported in Smart Device projects.See Also
Tasks
VIEWEX Sample: Demonstrates Multiple Views, Scroll Views, and Splitter WindowsReference
CWnd Class
Hierarchy Chart
CView Class
CWnd ClassOther Resources
CSplitterWnd Members