WEB开发网
开发学院软件开发VC Visual C++程序的建立~~5 阅读

Visual C++程序的建立~~5

 2009-06-03 20:04:40 来源:WEB开发网   
核心提示: AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final exec

AfxEnableControlContainer();

// Standard initialization

// If you are not using these features and wish to reduce the size

//  of your final executable, you should remove from the following

//  the specific initialization routines you do not need.

#ifdef _AFXDLL

//以下2条语句是:若用户在MFC AppWizard的第四步中,选中了“3D controls”,则表示所创建的应用程序//支持Windows95版本前的3D控件风格。

Enable3dControls();// Call this when using MFC in a shared DLL//使用动态的3D控件

#else

Enable3dControlsStatic();// Call this when linking to MFC statically//使用静态的3D控件

#endif

// Change the registry key under which our settings are stored.

// TODO: You should modify this string to be something appropriate

// such as the name of your company or organization.

//下面语句是:在Windows系统注册表中登记应用程序的主键值,以便将一些与应用程序相关的参数存放//在该主键值下

SetRegistryKey(_T(“Local AppWizard-Generated Applications”));

//下面语句是:从注册表中调入应用程序的一些标准参数,其中包括最近文件列表的文件名

LoadStdProfileSettings();

// Register the application‘s document templates.  Document templates

//  serve as the connection between documents, frame windows and views.

//以下语句是:若用户在MFC AppWizard的第一步中,选择了“Single document(单文档)”类型,则进行下//列的单文档模板的创建及其初始化操作。

上一页  3 4 5 6 7 8 9 10  下一页

Tags:Visual 程序 建立

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接