流云の剑舞秋风

吾生也有涯 而知也无涯

博客园 首页 新随笔 联系 订阅 管理
  45 Posts :: 26 Stories :: 29 Comments :: 0 Trackbacks

05 2005 档案

摘要: 要改变对话框的一般颜色,可以在C***App的InitInstance函数里加入如下代码:SetDialogBkColor(RGB(0,255,255),RGB(255,0,0));//背景青蓝、文字红色但是这样不能改变对话框中的图形控件的颜色;每个控件在dialog中都是一个窗口,当要绘制控件时,会发出一个WM_CTLCOLOR消息给它的父窗口(对话框本身).消息映射及响应函数如下:ON_WM_...阅读全文
posted @ 2005-05-29 22:58 流云 阅读(737) | 评论 (1) 编辑

摘要: CWinApp*AfxGetApp()是一个全局函数,在任何地方都可以获得C***App类对象的指针.//在C***App类中:获得CMainFrame类对象的指针:CMainFrame*pMain=(CMainFrame*)CWinThread::m_pMainWnd;获得C***View类对象的指针:(假设只有一个视图,须通过CMainFrame)C***View*pView=(C***Vie...阅读全文
posted @ 2005-05-29 22:36 流云 阅读(1350) | 评论 (3) 编辑

摘要: //设定可用性(当你打开下拉菜单时便会激发UPDATE_COMMAND_UI消息,映射如下函数:voidC***Dlg::OnUpdateMenuLogin(CCmdUI*pCmdUI){//TODO:AddyourcommandupdateUIhandlercodeherepCmdUI->Enable(mMenuActive&0x01);}//手动添加下面函数到你的主DIALOG里...阅读全文
posted @ 2005-05-27 08:14 流云 阅读(1202) | 评论 (1) 编辑

摘要: CStringstrSQLSrvName;//HKEYhKEY;LPCTSTRdata_Set="SOFTWARE\\Microsoft\\MSSQLServer\\MSSQLServer\\CurrentVersion\\";longret0=(::RegOpenKeyEx(HKEY_LOCAL_MACHINE,data_Set,0,KEY_READ,&hKEY));if(ret0==E...阅读全文
posted @ 2005-05-26 16:16 流云 阅读(1794) | 评论 (2) 编辑

posted @ 2005-05-26 15:43 流云 阅读(2013) | 评论 (0) 编辑

posted @ 2005-05-20 15:25 流云 阅读(4965) | 评论 (4) 编辑

posted @ 2005-05-19 09:40 流云 阅读(554) | 评论 (0) 编辑

posted @ 2005-05-18 22:48 流云 阅读(430) | 评论 (0) 编辑

posted @ 2005-05-17 14:32 流云 阅读(1229) | 评论 (0) 编辑

posted @ 2005-05-16 15:03 流云 阅读(954) | 评论 (1) 编辑

posted @ 2005-05-16 14:20 流云 阅读(859) | 评论 (0) 编辑

posted @ 2005-05-16 13:23 流云 阅读(724) | 评论 (0) 编辑

posted @ 2005-05-16 12:49 流云 阅读(454) | 评论 (0) 编辑

posted @ 2005-05-16 11:02 流云 阅读(806) | 评论 (0) 编辑

posted @ 2005-05-15 13:16 流云 阅读(271) | 评论 (0) 编辑

posted @ 2005-05-15 12:00 流云 阅读(304) | 评论 (0) 编辑

posted @ 2005-05-15 09:55 流云 阅读(228) | 评论 (0) 编辑

posted @ 2005-05-14 15:55 流云 阅读(269) | 评论 (0) 编辑

posted @ 2005-05-13 19:56 流云 阅读(1204) | 评论 (1) 编辑

posted @ 2005-05-13 19:54 流云 阅读(395) | 评论 (0) 编辑

posted @ 2005-05-12 16:17 流云 阅读(925) | 评论 (0) 编辑

posted @ 2005-05-12 14:54 流云 阅读(286) | 评论 (0) 编辑

posted @ 2005-05-12 14:48 流云 阅读(311) | 评论 (0) 编辑

posted @ 2005-05-12 09:42 流云 阅读(347) | 评论 (0) 编辑

posted @ 2005-05-08 23:04 流云 阅读(404) | 评论 (0) 编辑

posted @ 2005-05-08 23:00 流云 阅读(264) | 评论 (0) 编辑

posted @ 2005-05-08 22:57 流云 阅读(270) | 评论 (0) 编辑

posted @ 2005-05-08 22:56 流云 阅读(209) | 评论 (0) 编辑

摘要: 类的构造函数 阅读全文
posted @ 2005-05-08 22:54 流云 阅读(199) | 评论 (0) 编辑

摘要: 成员初始化阅读全文
posted @ 2005-05-08 22:54 流云 阅读(197) | 评论 (0) 编辑

摘要: 对话框绘图阅读全文
posted @ 2005-05-08 22:49 流云 阅读(2998) | 评论 (4) 编辑

posted @ 2005-05-08 17:26 流云 阅读(371) | 评论 (0) 编辑

posted @ 2005-05-08 17:00 流云 阅读(477) | 评论 (0) 编辑

摘要: 内存DC 缓存作图阅读全文
posted @ 2005-05-08 14:33 流云 阅读(425) | 评论 (0) 编辑

摘要: 对话框 截获回车键阅读全文
posted @ 2005-05-08 14:27 流云 阅读(280) | 评论 (0) 编辑

摘要: 编辑框 文字背景色阅读全文
posted @ 2005-05-08 14:24 流云 阅读(726) | 评论 (0) 编辑

摘要: CProgressCtrl 对话框阅读全文
posted @ 2005-05-08 14:05 流云 阅读(506) | 评论 (0) 编辑

摘要: CFileDialog阅读全文
posted @ 2005-05-08 14:01 流云 阅读(357) | 评论 (0) 编辑

摘要: WinExec() , CreateProcess() , ShellExecute()阅读全文
posted @ 2005-05-08 13:56 流云 阅读(505) | 评论 (0) 编辑