Welcome![Sign In][Sign Up]
Location:
Search - CMainFrame

Search list

[Windows DevelopDOCTIME2.zip

Description: 《如何发送命令到文档对象》配套原代码 [代码性质] VC可重用代码段 我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?
Platform: | Size: 46974 | Author: | Hits:

[Windows Develop在动态连接库内封装应用程序框架cool

Description: 实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.-method: a normal DLL file has been created with the program wizard and there is an instance generated from CWinApp in the DLL file.Create another MFC EXE appliaction and copy CAppView,CMainFram,CAppDocument and the resources in RES directory to the normal DLL and add to the projec and compile and generate a DLL. In a Win32 application, start a thread which loads the DLL with codes, get the running thread, ie.CWinThread *pThread=GetCurrentThread(), then,pThread->Run() executes the loading and start the execution of the application framework in the normal DLL file.
Platform: | Size: 69885 | Author: 杨杰 | Hits:

[GUI Developfmvc22

Description: 状态栏的应用(CMainFrame类的应用)-状态栏对象归属于主框架对象-status bar application (CMainFrame kind of application) - status bar object belongs to the main frame object
Platform: | Size: 45391 | Author: 刘东 | Hits:

[ToolBarmfc_general_ctrlbars

Description: Multiple control bars in a frame window, selective hiding and showing of control bars, and dynamic rearrangement of controls along the border of the frame window. The control bars are allocated space in the frame window according to their Z-order, which initially is the order in which they are created (see CMainFrame::OnCreate). CTRLBARS changes the Z-order of the dialog bar with the CWnd::SetWindowPos function. It hides or shows a control bar using CWnd::ShowWindow. Whenever CTRLBARS changes the Z-order or hides or shows a control bar, it calls CFrameWnd::RecalcLayout afterward so that the window real estate is reallocated to the remaining visible control bars.
Platform: | Size: 21412 | Author: srom chen | Hits:

[Process-ThreadDOCTIME

Description: 我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?
Platform: | Size: 44147 | Author: 徐林 | Hits:

[Other resourceFormTest

Description: 在Framework中显示一个View。通过菜单或按钮切换成不同的view。假设有三种view: CViewA, CViewB,CViewC。用三个常数表示他们不显示时的control ID. enum eView {ViewA, ViewB, ViewC} 在CMainFrame 加上下面一个函数就可以实现不同窗口的切换了。很易懂,唯一没有说的就是CCreateContext context,这是每次Create一个view时必须设定的。其实也就是m_pCurrentDoc这个指向当前document class的指针需要设定,其它的取默认值就可以了。
Platform: | Size: 34705 | Author: 孙伟 | Hits:

[Other resourcegetpoint

Description: 在MDI和SDI程序中得到各种活动指针的方法。包括获得CWinApp、CMainFrame、CMainFrame。等的指针。
Platform: | Size: 784 | Author: 赵军 | Hits:

[OS programstealth

Description: 这个由Visual C++ 5.0开发的SDI程序演示如何让程序运行时在Window 95或Windows NT 4.0的任务条上不显示出来,程序重载了CMainFrame中的PreCreateWindow()函数 COOL(29KB)
Platform: | Size: 17719 | Author: lixing | Hits:

[ToolBartoolbar

Description: 一个实用的 CToolBar 扩展类 CToolBarEx。程序中的工具条是在CMainFrame中生成的,采用的类是CToolBar,使用起来很复杂。为此,对CToolBar的常用功能进行封装,生成了它的一个继承类CToolBarEx,大大简化了操作。
Platform: | Size: 1975 | Author: peter shi | Hits:

[Other resourcedraw_picture_software

Description: 1.建立自己的工程:单文档 2.建立程序图标 3.将ColorPane, MyImage, MyToolbar, OptionZone程序加入到工程中 4.建立Toolbar资源:IDR_COLORPANE 5.在MainFrm.h中加入 CColorPane m_wndColorPane 6.在MainFrm.cpp的OnCreate中加入与ColorPane有关的代码。 7.在ResourceView中修改Toolbar中IDR_MAINFRAME的内容,包括各图标的ID。 8.在class CMainFrame中添加 CMyToolBar m_wndToolBar 9.在MainFrm.cpp中添加m_wndToolBar相应的代码。 10.在View中添加绘图功能,注意:不要用它的m_pdcMem。以后将用矢量绘图。 11.实现橡皮筋绘图方法。(用XOR技术)
Platform: | Size: 449835 | Author: coolrainy | Hits:

[File Operatefile_convert

Description: 实现把指定目录下的色谱数据文件全部转换成纯文本文件的功能.首先用MFC AppWizard生成一个SDI风格的应用程序test,生成过程中全部使用缺省设置。   其次,利用资源编辑器,在主菜单“文件”下增加一个菜单项“转换”,属性为:    ID:ID_CONVERT    Caption: 转换    Prompt: 在不同格式文件之间进行转换\\n转换文件   然后用“CTRL-W”热键激活MFC ClassWizard,为CmainFrame类增加响应ID_CONVERT消息的命令函数OnConvert()。
Platform: | Size: 1498 | Author: 蓝德岩 | Hits:

[Windows DevelopSample_Demo

Description: In your application, override OnNotify member function in your CMainFrame to handle the WM_NOTIFY message for painting the AfxControlBar.
Platform: | Size: 21766 | Author: 碧蓝天 | Hits:

[Windows DevelopPOPMENU

Description: C++中加入弹出菜单: 在窗口类中派生Message消息:WM_CONTEXTMENU (右键单击事件) 即在CMainFrame类中实现如下代码即可:
Platform: | Size: 966 | Author: 杨明 | Hits:

[Windows DevelopSingDocRglDll

Description: 实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.
Platform: | Size: 69885 | Author: 段平平 | Hits:

[Dialog_Windowdlgsplashscring

Description: 很多基于对话框的程序都有一个启动画面,那么如何为自己的对话框程序也加一个这样的画面呢?其实VC++开发环境中有一个现成的 Splash Screen 组件,用这个组件很容易实现基于框架类(也就是CMainFrame)的程序的启动画面,那么如果是对话框程序,没有框架类怎么办呢?所以这个组件功能不是想象的那么强。要实现基于对话框应用程序的启动画面必须另辟蹊径。这里提供一个可重用代码例子,一步一步教你实现每一个细节。利用一个定制的C++类:CSplashWnd,增强原来的 Splash Screen 组件功能。它不但可以在用于具有CMainFrame的程序,同时也可以用于基于对话框应用的程序。-many of the procedures based on the dialog has launched a picture for themselves as to how the dialog procedures were also such a picture? In fact, VC environment with a ready-made Splash Screen components, the components used easily framework based category (that is, CMainFrame) of the commencement of proceedings picture, then if the dialog procedure is not like the framework of how to do? Therefore, this component function is not so strong as imagined. To achieve based on the application's dialog screens must choose another road. Here provide a reusable code examples, step by step teach you realize every detail. Using a customized Category C : CSplashWnd, enhance the original Splash Screen functional components. It can be used not only with CMainFrame procedures, and also can be used
Platform: | Size: 124385 | Author: 啊啊啊 | Hits:

[GUI Develop用WTL实现类似flashget的界面

Description: 本程序是利用WTL的 CSplitterWindow 和 CHorSplitterWindow 把 CMainFrame 分隔而成。-this procedure is the use WTL CSplitterWindow and put CMainFrame CHorSplitterWindow partitioned.
Platform: | Size: 37939 | Author: 王明 | Hits:

[Windows DevelopASocket示例

Description: ASocket示例 #include "stdafx.h" #include "s.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code ! ON_WM_CREATE() //}}AFX_MSG_MAP END_MESSAGE_MAP() static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; ///////////////////////////////////////////////////////////////////////////// // CMainFrame construction/destruction CMainFrame::CMainFrame() { // TODO: add member initialization code here } CMainFrame::~CMainFrame() { } int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
Platform: | Size: 64331 | Author: yanghaijun2008 | Hits:

[Windows Develop在动态连接库内封装应用程序框架cool

Description: 实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.-method: a normal DLL file has been created with the program wizard and there is an instance generated from CWinApp in the DLL file.Create another MFC EXE appliaction and copy CAppView,CMainFram,CAppDocument and the resources in RES directory to the normal DLL and add to the projec and compile and generate a DLL. In a Win32 application, start a thread which loads the DLL with codes, get the running thread, ie.CWinThread*pThread=GetCurrentThread(), then,pThread->Run() executes the loading and start the execution of the application framework in the normal DLL file.
Platform: | Size: 69632 | Author: | Hits:

[Picture ViewerFormTest

Description: 在Framework中显示一个View。通过菜单或按钮切换成不同的view。假设有三种view: CViewA, CViewB,CViewC。用三个常数表示他们不显示时的control ID. enum eView {ViewA, ViewB, ViewC} 在CMainFrame 加上下面一个函数就可以实现不同窗口的切换了。很易懂,唯一没有说的就是CCreateContext context,这是每次Create一个view时必须设定的。其实也就是m_pCurrentDoc这个指向当前document class的指针需要设定,其它的取默认值就可以了。-Framework shown in a View. Through the menu or button to switch into a different view. Assuming there are three view: CViewA, CViewB, CViewC. Three constants that they do not show when the control ID.enum eView (ViewA, ViewB, ViewC) to add the following in CMainFrame can realize a function of switching a different window. Very easy to understand, the only did not say is CCreateContext context, it is per-Create a view must be set. In fact, that is, m_pCurrentDoc this point to the current document class needs to set the pointer, the other from the default value of it.
Platform: | Size: 34816 | Author: 孙伟 | Hits:

[ToolBartoolbar

Description: 一个实用的 CToolBar 扩展类 CToolBarEx。程序中的工具条是在CMainFrame中生成的,采用的类是CToolBar,使用起来很复杂。为此,对CToolBar的常用功能进行封装,生成了它的一个继承类CToolBarEx,大大简化了操作。-A practical extension of CToolBar category CToolBarEx. Process tool is in the CMainFrame generated, using the category is CToolBar, very complicated to use. For this reason, the commonly used functions CToolBar package generated one of its type to inherit CToolBarEx, greatly simplifies the operation.
Platform: | Size: 2048 | Author: peter shi | Hits:
« 12 3 »

CodeBus www.codebus.net