博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年4月30日

摘要: 对于对话框类无法直接使用WM_KEYDOWN 需要使用PreTranslateMessage() 例如对↑键 按下进行响应 BOOL CMy12354Dlg::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN) if(pMsg->wParam == VK_UP) { ... 阅读全文

posted @ 2009-04-30 17:27 Tom Wu 阅读(708) 评论(0) 推荐(0)

摘要: 首先,简介一下键盘消息: (1)系统消息:(系统键Alt,F10等),由系统内部... 阅读全文

posted @ 2009-04-30 14:39 Tom Wu 阅读(5531) 评论(0) 推荐(0)

2009年4月7日

摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->"); } out.print("恭喜你!数据库连接成功!"); rs.close(); ... 阅读全文

posted @ 2009-04-07 22:42 Tom Wu 阅读(160) 评论(0) 推荐(0)

2009年3月23日

摘要: (转帖) 绘制图标以及确定图标所传送消息的函数只有一个: WINSHELLAPI BOOL WINAPI Shell_NotifyIcon( DWORD dwMessage, PNOTIFYICONDATA pnid ); 这个函数,负责向系统传递消息,以添加、修改或删除托盘区的图标。 参数dwMessage 是表示这个函数的应用功能是哪一方面,是添加、删除,还是修改图标。如果... 阅读全文

posted @ 2009-03-23 21:06 Tom Wu 阅读(1460) 评论(1) 推荐(0)

2009年3月15日

摘要: 转自http://www.vckbase.com/document/viewdoc/?id=416 如何打开一个应用程序? Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->ShellExecute(this->m_hWnd,"open","X... 阅读全文

posted @ 2009-03-15 20:45 Tom Wu 阅读(174) 评论(0) 推荐(0)

2009年3月12日

摘要: 在MFC中使用string 需要添加头文件 #include #include using namespace std; CString 转 string; Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CSring cs; str... 阅读全文

posted @ 2009-03-12 19:55 Tom Wu 阅读(279) 评论(0) 推荐(0)

2009年3月11日

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; string& replace_all(str... 阅读全文

posted @ 2009-03-11 22:08 Tom Wu 阅读(149) 评论(0) 推荐(0)

2009年3月2日

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->void CNetDlg::OnButton1() { UpdateData(true); //从控件到成员变量 CInternetSession httpSession; CI... 阅读全文

posted @ 2009-03-02 19:39 Tom Wu 阅读(1164) 评论(0) 推荐(0)

2009年2月26日

摘要: 取得主窗口指针 AfxGetMainWnd() Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->AfxGetMainWnd()->m_hWnd;//主窗口句柄 AfxGetMainWnd()->CenterWindow();//使窗口居中 ... 阅读全文

posted @ 2009-02-26 09:22 Tom Wu 阅读(404) 评论(0) 推荐(0)

2009年2月25日

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->static char BASED_CODE szFilter[]="文本文件(*.txt)|*.txt|ALL Files(*.*)|*.*||"; CFileDialog dl... 阅读全文

posted @ 2009-02-25 15:54 Tom Wu 阅读(786) 评论(0) 推荐(0)