2014年9月19日
摘要: 树型视图是一种特别的窗口,我们可以使用它一目了然地表示某种层次关系。譬如象在资源管理器中左边窗口中的就是树型视图。您可以调用CreateWindowEx来创建树型视图,传递一个类名“"SysTreeView32"”,或者您也可以把它放到一个对话框中去。不要忘了在您的代码中加入InitCommonCo... 阅读全文
posted @ 2014-09-19 23:08 云之灵 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 演示如何调用系统对话框 (演示语言--delphi):uses ShlObj, Activex;procedure TForm1.Button2Click(Sender: TObject);var BrowseInfo: TBrowseInfo; ItemIDList: PItemIDList;... 阅读全文
posted @ 2014-09-19 23:08 云之灵 阅读(893) 评论(0) 推荐(0) 编辑
摘要: dwExStyle [in] Specifies the extended window style of the window being created. This parameter can be one or more of the following values. WS_EX_ACCEP... 阅读全文
posted @ 2014-09-19 23:07 云之灵 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Window StylesWS_BORDER Creates a window that has a thin-line border.WS_CAPTION Creates a window that has a title bar (includes the WS_BORDER style).WS... 阅读全文
posted @ 2014-09-19 23:01 云之灵 阅读(344) 评论(0) 推荐(0) 编辑
摘要: DrawTextEx( DC: HDC; {设备句柄} lpchText: PChar; {文本} cchText: Integer; {要绘制的字符个数; -1 表示全部} var p4: TRect; ... 阅读全文
posted @ 2014-09-19 22:55 云之灵 阅读(699) 评论(0) 推荐(0) 编辑
摘要: DrawText 函数功能:该函数在指定的矩形里写入格式化文本,根据指定的方法对文本格式化(扩展的制表符,字符对齐、折行等)。 函数原型:int DrawText(HDC hdc, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat... 阅读全文
posted @ 2014-09-19 22:53 云之灵 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: 1.BOOL EqualRect( CONST RECT *lprc1, // first rectangle CONST RECT *lprc2 // second rectangle ); 说明:判断两个矩形结构是否相同。 非零表示成功,零表示失败。会设置GetLas... 阅读全文
posted @ 2014-09-19 22:52 云之灵 阅读(605) 评论(0) 推荐(0) 编辑
摘要: OpenProcessToken 要对一个任意进程(包括系统安全进程和服务进程)进行指定了写相关的访问权的OpenProcess操作,只要当前进程具有SeDeDebug权限就可以了。要是一个用户是Administrator或是被给予了相应的权限,就可以具有该权限。可是,就算我们用Admin... 阅读全文
posted @ 2014-09-19 22:51 云之灵 阅读(560) 评论(0) 推荐(0) 编辑
摘要: The class styles define additional elements of the window class. Two or more styles can be combined by using the bitwise OR (|) operator. To assign a ... 阅读全文
posted @ 2014-09-19 22:50 云之灵 阅读(221) 评论(0) 推荐(0) 编辑
摘要: PolyPolyline( DC: HDC; {设备环境句柄} var Points; {点数组} var nPoints;{数组, 数组元素是每个组的顶点数} p4: Integer {分组数, 也就是 nPoints 的元素数}): BOOL;-------------------... 阅读全文
posted @ 2014-09-19 22:49 云之灵 阅读(1014) 评论(0) 推荐(0) 编辑