[cpp] view plain copy // 派生自CButton类,主要过滤WM_LBUTTONDOWN 、WM_LBUTTONUP和WM_MOUSEMOVE消息。 BOOL m_bFlag = FALSE; // 成员变量,用来标示鼠标是否按下, 初始化为FALSE CPoint m_pt; Read More
posted @ 2016-10-27 00:05 findumars Views(505) Comments(0) Diggs(0)
在Win32 SDK中创建一些控件的时候需要注意一下(具体是哪些控件请参看MSDN文档中列出来的) [cpp] view plain copy /* MSDN:Carries information used to load common control classes from the * dyn Read More
posted @ 2016-10-26 23:27 findumars Views(617) Comments(1) Diggs(0)
[cpp] view plain copy // 枚举桌面上应用程序的lnk路径 void EnumDesktopLnkPath() { WCHAR szPath[MAX_PATH] = {0}; SHGetSpecialFolderPathW(NULL, szPath, CSIDL_DESKTOP Read More
posted @ 2016-10-26 23:26 findumars Views(509) Comments(0) Diggs(0)
[cpp] view plain copy /* MSDN: Any application that adds or removes fonts from the system font table should notify other windows of the change by send Read More
posted @ 2016-10-26 23:22 findumars Views(1903) Comments(0) Diggs(0)
[cpp] view plain copy [cpp] view plain copy [cpp] view plain copy if(dlg.GetSafeHwnd()) { dlg.ModifyStyle(WS_CAPTION, 0); // 去掉标题栏 dlg.ModifyStyleEx(W Read More
posted @ 2016-10-26 23:21 findumars Views(1034) Comments(0) Diggs(0)