01 2019 档案

摘要:Edit Control 编辑控件是 MFC 中使用较多的控件之一 1. Edit 的属性 Acccept Files -> True 控件接受拖放文件 Multiline -> True 多行模式(控件初始为单行模式) Read Only -> True 控件设置为只读模式,不予许修改 Want 阅读全文
posted @ 2019-01-09 15:38 snowfox雪狐 阅读(2797) 评论(0) 推荐(0)
摘要:a. 数据类型:control 只能创建关联一次 b). control 用来操控控件 c). 创建 control 变量:控件 -> 右击 -> 添加变量 -> 类别 Control(或 控件) d). 创建后 在 ***Dlg 头文件中自动创建 Control变量,例如:为 Edit 创建 控件 阅读全文
posted @ 2019-01-07 20:02 snowfox雪狐 阅读(481) 评论(0) 推荐(0)
摘要:1. 定时器设置 API:CWnd::SetTimer() 函数原型:UINT SetTimer(UINT nIDEvent, UINT nElapse, void (CALLBACK EXPORT*lpfnTimer) (HWND, UINT, UINT, DWORD) ); 返回值: 如果函数成 阅读全文
posted @ 2019-01-07 14:50 snowfox雪狐 阅读(408) 评论(0) 推荐(0)
摘要:一. 图标的设置 API函数:AfxGetApp()->LoadIconW(); 2. 显示图标 API函数:SetClassLong(); 函数原型:DWORD WINAPI SetClassLong(_In_ HWND hWnd,_In_ int nIndex,_In_ LONG dwNewLo 阅读全文
posted @ 2019-01-07 14:31 snowfox雪狐 阅读(944) 评论(0) 推荐(0)