From the author blog: http:blog.9cbs.netneetrefugee

xiaoxiao2021-03-06  45

Some of the content is:

Windows Application Collaboration: First, the system clipping version allows in different applications (even they have different companies)

Simple data sharing between simple data. The second way involves the component object model (Component Object)

Model, also known as OLE (Object Linking and Embeding, object links and embedded). COM makes the program can be used as other programs

Component, or assist other programs

Application Framework: It is a complete application that can meet your application after customization. The frame itself controls the program flow - you can

Customize it by changing (in the object-oriented domain, called overload) these functions.

A simple Win32 Application

#include

Class CBDWindow: Public CFrameWnd {public: cbdwindow () {create (0, "a brain-dead mfc winodw");}};

Class cbdapp: public cwinapp {public: Virtual Bool InitInstance () {m_pmainwnd = new cbdwindow (); m_pmainwnd-> showwindow (sw_showmaximized); return true;}}

CBDapp theoneandonlybraindeadmfcapp;

CBDWindow represents the top window of the application; CBDApp represents the program itself. CBDwinoDW defines a basic constructor and calls inherited Create () functions. CBDAPP is overloaded with virtual functions initInstance () to constructs the CBDWindow class case, and gives the returned pointer to the inheritance data member M

_pmainwnd. The showWindow () function is then called so that the window is the largest. Finally, returning True means that the success will install the class to run.

转载请注明原文地址:https://www.9cbs.com/read-54137.html

New Post(0)