上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页
摘要: CHAIN_MSG_MAP_MEMBER BEGIN_MSG_MAP(CMainFrame) MESSAGE_HANDLER(WM_CREATE, OnCreate) COMMAND_ID_HANDLER(ID_APP_EXIT, OnFileExit) COMMAND_ID_HANDLER(ID_VIEW_TOOLBAR, OnViewToolBar) COMMAND_ID_HANDLER(ID... 阅读全文
posted @ 2009-07-26 23:26 Fan Zhang 阅读(1239) 评论(0) 推荐(0)
摘要: #define STRICT#define WIN32_LEAN_AND_MEAN#define _WTL_USE_CSTRING #include <atlbase.h> // base ATL classes#include <atlapp.h> // base WTL classesextern CAppModule _Module; // WTL version o... 阅读全文
posted @ 2009-07-26 22:13 Fan Zhang 阅读(334) 评论(0) 推荐(0)
摘要: 设置EDIT属性为readonly SetSel(0,0);//选中光标位置 ReplaceSel("MyString\r\n");//插入字符 阅读全文
posted @ 2009-07-26 21:41 Fan Zhang 阅读(417) 评论(0) 推荐(0)
摘要: #define _WTL_USE_CSTRING 阅读全文
posted @ 2009-07-26 21:30 Fan Zhang 阅读(221) 评论(0) 推荐(0)
摘要: CWindow封装了Windows的大部分API,且CWindows只有一个变量m_hWnd。 还有一个类是CWindowImpl,它封装了class registration、 window subclassing、 message maps、和 一个基本的WindowProc()。 The WTL classes can be divided into a few major catego... 阅读全文
posted @ 2009-07-26 18:25 Fan Zhang 阅读(300) 评论(0) 推荐(0)
摘要: ListBox control vs ComboBoxListBox可以选择多行ComboBox类似ListBox和Edit的组合,比ComboBox节省大小。ComboBox可以设置成三种状态,Simple(此时类似于ListBox),Drop-down(节省空间的ListBox),Drop-down list(节省空间的ListBox,且不可修改内容)可以发一堆消息,来控制ComboBox,在... 阅读全文
posted @ 2009-07-25 06:54 Fan Zhang 阅读(320) 评论(0) 推荐(0)
摘要: CRegKey key; CString strKey = _T("SYSTEM\\CurrentControlSet\\Control\\StorageDevicePolicies"); if(key.Open(HKEY_LOCAL_MACHINE, strKey, KEY_READ) != ERROR_SUCCESS) { if (ERROR_SUCCESS != key.Create(HKE... 阅读全文
posted @ 2009-07-25 05:47 Fan Zhang 阅读(496) 评论(0) 推荐(0)
摘要: import urllib2req = urllib2.Request("http://localhost:8080")res = urllib2.urlopen( req )headers = str(res.info())print(headers)html=res.read()print(html) 阅读全文
posted @ 2009-07-24 17:53 Fan Zhang 阅读(483) 评论(0) 推荐(0)
摘要: conf\web.xml这里记录着很多<servlet>,servlet的程序可以参看tomcat中的例子。使用这些servlet事通过<servlet-mapping>来指定运行的。可以看出jsp也是通过servlet引擎运行的。WEB-INF\web.xml在每个WEB应用程序都有个WEB-INF目录,在这个目录里同样 有个web.xml文件。conf\server.x... 阅读全文
posted @ 2009-07-23 11:25 Fan Zhang 阅读(156) 评论(0) 推荐(0)
摘要: 1.AT命令AT time /interactive command2.psexecpsexec -s –d –i command 阅读全文
posted @ 2009-07-22 23:00 Fan Zhang 阅读(205) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页