- 博客(7)
- 收藏
- 关注
原创 位运算
1、让某一位变为0 使用 AND逻辑运算,运算数出了指定位为0,其余位为1, If both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0. 2、让某一位变为1 使用或运算,让指定位变为1,其余为0 If one bit
2004-07-22 15:36:00
722
原创 启用和禁用工具栏按钮!
添加一个用户界面处理函数 1) 按照例1 3关于添加一个菜单命令处理函数所示的步骤,但是这时选用U P D AT E _ C O M M A N D _ U I,而不是C O M M A N D。 2) 添加下面的代码到新的处理函数中,如果要启用菜单项,则m _ b W z d为T R U E。 void CWzdVi e w : : O n U p d a t e
2004-07-20 11:49:00
1719
原创 如何在word文档中编辑复杂数学公式
在word的菜单中选择“插入”->“对象”,然后在“新建”页中选择“Microsoft 公式 3.0”,就可以编辑出合适的公式了!
2004-07-15 11:32:00
3792
2
原创 如何SDI、MDI的ChildFrame初始化为最大化窗口?
有两种方式可以让子窗口最大化,一种是在动态创建CChildFrame的时候,一种是在创建CChildFrame以后,显示CChildFrame的时候: 1、动态创建CChildFrame窗口,代码如下: CCreateContext context; context.m_pCurrentDoc=pDocument; context.m_pNewDocTempla
2004-07-15 09:04:00
2440
3
原创 为CString 类型数据添加回车换行符!
在CString中不能直接访问指定位置的字符,所有要GetBuffer获得字符串指针,然后在字符串末尾添加回车、换行字符(回车的ASCII码是13,换行的ASCII码是10); 例子代码: CString strTemp; LPTSTR pStr; int nLen=strTemp.GetLength(); pStr=strTemp.GetBuffer(nLen+2);
2004-07-14 14:41:00
5069
1
原创 纯资源dll库连接的LNK1120错误!
错误现象: LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12Debug/newres.dll : fatal error LNK1120: 1 unresolved externalsError executing link.exe. 解决方法: 在Setting->Link->Project Opt
2004-07-13 12:32:00
2568
原创 使用CrystalEdit做一个文本编辑器
The package consists of three main classes: CCrystalTextBuffer class is responsible for storing lines, loading and saving text to a file. To simplify Undo/Redo command implementations, every editing
2004-07-07 14:03:00
2021
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人