
windows 开发
文章平均质量分 69
一只小水鱼
这个作者很懒,什么都没留下…
展开
-
windows应用开发由浅入深(二)有关控件的操作
MFC公共控件基本继承自CWnd类。因此、对于控件有许多通用方法。1、设置控件值XXX.SetWindowText();2、设置控件字体XXX.SetFont();3、动态创建控件XXX.Creat();4、禁用/启动控件XXX.EnableWindow()5、隐藏/显示控件XXX.ShowWindow()6、部分控件可加载图标XXX.SetIc原创 2014-03-05 15:25:30 · 606 阅读 · 0 评论 -
windows应用开发由浅入深(四)创建热键消息
相关API:BOOL RegisterHotKey( HWND hWnd, int id, UINT fsModifiers, UINT vk );MSDN描述:This function defines a system-wide hot key. 定义一个系统级的热键。相关消息:WM_HOTKEYMSDN描述:This message is poste原创 2014-03-06 15:26:58 · 690 阅读 · 0 评论 -
windows应用开发由浅入深(三)有关鼠标事件--设置鼠标点击测试值实现非标题栏拖动窗口
相关消息:WM_NCHITTESTMSDN描述:The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. If the mouse is not captured, the message is sent to the wi原创 2014-03-06 10:49:39 · 1277 阅读 · 0 评论 -
windows应用开发由浅入深(三)利用注册表将程序启动时窗口位置设置为上次关闭的位置
相关结构:WINDOWPLACEMENT原型:typedef struct tagWINDOWPLACEMENT { UINT length; UINT flags; UINT showCmd; POINT ptMinPosition; POINT ptMaxPosition; RECT rcNormalPosition;原创 2014-03-06 11:24:35 · 1625 阅读 · 0 评论 -
windows应用开发由浅入深(三)有关不规则窗口
相关类:1、CRgn:Encapsulates a Windows graphics device interface (GDI) region.即、CRgn表示一个GDI封装区MSDN描述:A region is an elliptical or polygonal area within a window. To use regions, you use the member原创 2014-03-05 17:11:05 · 973 阅读 · 0 评论 -
windows应用开发由浅入深(二)常用控件--进度条、滚动条
进度条MFC类:CProgressCtrlMSDN描述:Provides the functionality of the Windows common progress bar control.常用方法:SetRange(int, int);SetPos(int);SetStep(int);详情请查阅MSDN。滚动条MFC类:CScroll原创 2014-03-05 15:09:27 · 716 阅读 · 0 评论 -
windows应用开发由浅入深(二)常用控件--滑块、标签、树形控件、列表控件
公共控件大同小异,只简单介绍下,具体内容可随时查阅MSDN。目前只记录如何使用,不探究原理。之后再从如何使用的角度,去深入研究如何实现。滑块:MFC类:CSliderCtrl。MSDN描述:Provides the functionality of the Windows common slider control. 此类用于提供windows公共控件滑块。常用方法原创 2014-03-05 12:07:50 · 932 阅读 · 0 评论 -
windows应用开发由浅入深(一)AfxMessageBox消息框
API:int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 );int AFXAPI AfxMessageBox( UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = (UINT) -1 );MSDN原创 2014-03-05 10:29:38 · 799 阅读 · 0 评论 -
windows应用开发由浅入深(一)MessageBox消息框
API: int MessageBox(HWND hWnd, LPCTSTRlpText, LPCTSTRlpCaption, UINTuType);MSDN描述:This function creates, displays, and operates a message box. The message box contains an application-原创 2014-03-05 10:05:25 · 974 阅读 · 0 评论 -
windows应用开发由浅入深 (五) 关于进程和线程--获取当前进程信息
相关API:DWORD GetCurrentProcessId(void);MSDN描述:This function returns the process identifier of the calling process. 返回调用进程的进程ID。相关API:HANDLE WINAPI OpenProcess( __in DWORD dwDesiredAccess, __i原创 2014-03-06 15:54:49 · 922 阅读 · 0 评论