MFC
我行我素的小鸭子
改BUG中
展开
-
CChildFrame和CMainFrame关系
1、CMainFrame是主窗口的框架 2、CChildFrame是每个子窗口的框架 3、CMainFrame包含CChildFrame 把所有的Child关闭以后剩下就是CMainframe。而打开的所有窗口都是CChildFrame 补充: CView它也是一个窗口,具体对于CChildFrame的客户区。 其实CChildFrame也是一个框架,不过是个子框架,在它里面就是View. 而在单文档下之所以没有CChildFrame的原因就是View直接就是CMainFrame的客户区 ...原创 2021-05-28 12:03:47 · 784 阅读 · 0 评论 -
extern CBCGPAppWizard1App theApp作用
声明全局外部变量 为了使用CBCGPAppWizard1App实例,一种办法是在项目的需要使用该实例的cpp文件中定义CBCGPAppWizard1App 即CBCGPAppWizard1App theApp 另一种办法是可以在对应的.h文件中使用extern CC…声明 extern CBCGPAppWizard1App theApp;这样在其他文件中如果需要调用theApp对象,不必拘泥于调用:AfxGetApp(),而只需#include “xxx.h” 直接使用 theApp 即可。 例如: CXX原创 2021-05-28 10:36:27 · 219 阅读 · 0 评论 -
SetRegistryKey作用
使用CWinApp类的WriteProfileString 、GetProfileString等函数。 1、如果不调用SetRegistryKey(),CWinApp 会把信息保存系统目录的的tool.ini文件中(C:\Windows\tool.ini) 2、如果调用SetRegistryKey(),CWinApp 会把信息保存系统目录的的注册表中 HKEY_CURRENT_USER\Software<company name>\Test<section name><valu原创 2021-03-10 11:49:05 · 166 阅读 · 0 评论 -
VS2015 各种目录详解
一、VS新建工程后默认值如下: 输出目录: (SolutionDir)(SolutionDir)(SolutionDir)(Platform)$(Configuration) 中间目录: (Platform)(Platform)(Platform)(Configuration)\ 目标文件名: $(ProjectName) 即项目名称hps_mfc_sandbox_v140 其中 $(SolutionDir)为解决方案目录(绝对路径) $(Platform)平台x64 $(Configuration)为原创 2021-03-07 22:24:35 · 1137 阅读 · 0 评论 -
C++/MFC中多线程的知识点
MFC中使用多线程主要有三种方式,分别如下: 1.CreateThread (windows中vc++) HANDLE WINAPI CreateThread( _in LPSECURITY_ATTRIBUTES lpThreadAttributes, _in SIZE_T dwStackSize, _in LPTHREAD_START原创 2021-01-05 17:12:06 · 414 阅读 · 0 评论 -
Ribbon简介示意图
原创 2020-12-13 11:19:59 · 185 阅读 · 0 评论