
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x6309;&#x952E;&#x7CBE;&#x7075;&#x39;&#x63D2;&#x4EF6;&#xFF1A;&#x45;&#x6E;&#x75;&#x6D;&#x43;&#x68;&#x69;&#x6C;&#x64;&#x73;&#x20;&#x904D;&#x5386;&#x7B26;&#x5408;&#x7A97;&#x53E3;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x31;&#x32;&#x2D;&#x30;&#x34;&#x2D;&#x31;&#x33;&#x20;&#x30;&#x35;&#x3A;&#x30;&#x36;&#x20;&#x50;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=16">&#x57;&#x69;&#x6E;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> <br/>&#x5728;&#x4E0A;&#x56FE;&#x6240;&#x793A;&#x7684;&#x8F6F;&#x4EF6;&#x4E2D;&#xFF0C;StandardWindow&#x4E0B;&#x9762;&#x6709;3&#x4E2A;ToolBarPlus&#xFF0C;&#x5F53;&#x8981;&#x83B7;&#x53D6;&#x53E5;&#x67C4;&#x4E3A;10488138&#x7684;ToolBarPlus&#x65F6;&#xFF0C;&#x5C1D;&#x8BD5;&#x4E86;&#x4E0B;&#x9762;&#x51E0;&#x4E2A;&#x547D;&#x4EE4;&#x5747;&#x4E0D;&#x6210;&#x529F;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Plugin.Window.FindEx<br/>Plugin.Window.Search<br/>Plugin.Window.SearchEx<br/>&#x6CA1;&#x529E;&#x6CD5;&#xFF0C;&#x53EA;&#x80FD;&#x5199;&#x63D2;&#x4EF6;&#x6765;&#x8C03;&#x7528;winapi&#x7684;EnumChildWindows&#x4E86;&#x3002;<br/>&#x6309;&#x952E;&#x7CBE;&#x7075;9&#x63D2;&#x4EF6;&#xFF1A;EnumChilds &#x904D;&#x5386;&#x7B26;&#x5408;&#x7A97;&#x53E3;<br/>&#x89E3;&#x538B;&#x5E76;&#x7528;VB6.0&#x6253;&#x5F00;&#x6309;&#x952E;&#x7CBE;&#x7075;9&#x81EA;&#x5E26;&#x7684;QMPlugin&#x63D2;&#x4EF6;&#x5236;&#x4F5C;&#x6A21;&#x7248;(VB 6.0)&#xFF0C;&#x589E;&#x52A0;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Option Explicit<br/>Declare Function EnumChildWindows Lib &#34;user32&#34; (ByVal hWndParent As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long<br/>Declare Function FindWindow Lib &#34;user32&#34; Alias &#34;FindWindowA&#34; (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br/>Declare Function GetClassName Lib &#34;user32&#34; Alias &#34;GetClassNameA&#34; (ByVal hWnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long<br/>Private hWnds As String<br/>&#39;--------------------------------------------------------------------------------<br/>&#39;* &#x679A;&#x4E3E;&#x5B50;&#x7A97;&#x53E3;&#x56DE;&#x8C03;&#x51FD;&#x6570;<br/>&#39;*<br/>&#39;* @param&nbsp;&nbsp;&nbsp;&nbsp;Long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hWnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#x5B50;&#x7A97;&#x53E3;&#x53E5;&#x67C4;<br/>&#39;* @param&nbsp;&nbsp;&nbsp;&nbsp;Integer&nbsp;&nbsp;&nbsp;&nbsp; lParam&nbsp;&nbsp;&nbsp;&nbsp; &#x8C03;&#x7528; EnumChildWindows &#x51FD;&#x6570;&#x65F6;&#x4F20;&#x9012;&#x7684;&#x53C2;&#x6570;<br/>&#39;* @return&nbsp;&nbsp; Boolean<br/>&#39;--------------------------------------------------------------------------------<br/>Private Function EnumFunc(ByVal hWnd As Long, ByVal lParam As Integer) As Boolean<br/>&nbsp;&nbsp;&nbsp;&nbsp;hWnds = hWnds &amp; CStr(hWnd) &amp; &#34;|&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;EnumFunc = True<br/>End Function<br/>&#39;--------------------------------------------------------------------------------<br/>&#39;* &#x83B7;&#x53D6;&#x6307;&#x5B9A;&#x53E5;&#x67C4;&#x7684;&#x7A97;&#x53E3;&#x7C7B;&#x540D;<br/>&#39;*<br/>&#39;* @param&nbsp;&nbsp;&nbsp;&nbsp;Long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hWnd&nbsp;&nbsp;&nbsp;&nbsp;&#x7A97;&#x53E3;&#x53E5;&#x67C4;<br/>&#39;* @return&nbsp;&nbsp; String<br/>&#39;--------------------------------------------------------------------------------<br/>Private Function GetClassNameX(ByVal hWnd As Long) As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim cName As String, nLength As Integer<br/>&nbsp;&nbsp;&nbsp;&nbsp;nLength = 255<br/>&nbsp;&nbsp;&nbsp;&nbsp;cName = Space(nLength)<br/>&nbsp;&nbsp;&nbsp;&nbsp;GetClassName hWnd, cName, nLength<br/>&nbsp;&nbsp;&nbsp;&nbsp;GetClassNameX = cName<br/>End Function<br/>&#39;--------------------------------------------------------------------------------<br/>&#39;* &#x83B7;&#x53D6;&#x5B50;&#x7A97;&#x53E3;&#x53E5;&#x67C4;<br/>&#39;*<br/>&#39;* @param&nbsp;&nbsp;&nbsp;&nbsp;Long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hWnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#x7236;&#x7A97;&#x53E3;&#x53E5;&#x67C4;<br/>&#39;* @param&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;&nbsp;&nbsp;&nbsp;lpClassName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#x5B50;&#x7A97;&#x4F53;&#x7C7B;&#x540D;<br/>&#39;* @return&nbsp;&nbsp; String&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#x7A97;&#x4F53;1&#x53E5;&#x67C4;|&#x7A97;&#x4F53;2&#x53E5;&#x67C4;|&#x7A97;&#x4F53;3&#x53E5;&#x67C4;<br/>&#39;--------------------------------------------------------------------------------<br/>Public Function EnumChildWindowsX(ByVal hWnd As Long, ByVal lpClassName As String) As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim LstHwnd, i<br/>&nbsp;&nbsp;&nbsp;&nbsp;hWnds = &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;EnumChildWindows hWnd, AddressOf EnumFunc, 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#39;&#x6761;&#x4EF6;&#x7B5B;&#x9009;<br/>&nbsp;&nbsp;&nbsp;&nbsp;If Len(hWnds) &gt; 0 And lpClassName &lt;&gt; vbNullString Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LstHwnd = Split(hWnds, &#34;|&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hWnds = &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For i = 0 To UBound(LstHwnd)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If LstHwnd(i) &lt;&gt; &#34;&#34; Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If LCase(Mid(GetClassNameX(CLng(LstHwnd(i))), 1, Len(lpClassName))) = LCase(lpClassName) Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hWnds = hWnds &amp; CStr(LstHwnd(i)) &amp; &#34;|&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#39;&#x51FD;&#x6570;&#x8FD4;&#x56DE;&#x503C;<br/>&nbsp;&nbsp;&nbsp;&nbsp;If Len(hWnds) &gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EnumChildWindowsX = Mid(hWnds, 1, Len(hWnds) - 1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EnumChildWindowsX = &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Function<br/>&#x4FEE;&#x6539;&#x7C7B;&#x6A21;&#x5757;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Public Function EnumChilds(hWnd As Variant, lpClassName As String) As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;EnumChilds = EnumChildWindowsX(CLng(hWnd), lpClassName)<br/>End Function<br/>Public Function Get_Plugin_Description(ItemName As String) As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim Description_Text As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Description_Text = &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Sel&#101;ct Case ItemName<br/>&nbsp;&nbsp;&nbsp;&nbsp;Case &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Description_Text = &#34;&#x7A97;&#x53E3;&#x6269;&#x5C55;&#x63D2;&#x4EF6;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Case &#34;EnumChilds&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Description_Text = &#34;&#x904D;&#x5386;&#x7B26;&#x5408;&#x7A97;&#x53E3;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;End Sel&#101;ct<br/>&nbsp;&nbsp;&nbsp;&nbsp;Get_Plugin_Description = Translate_Description(Description_Text)<br/>End Function<br/>Public Function Get_Plugin_Interpret_Template(ItemName As String) As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim Description_Text As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Description_Text = &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Sel&#101;ct Case ItemName<br/>&nbsp;&nbsp;&nbsp;&nbsp;Case &#34;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Description_Text = &#34;&#x7A97;&#x53E3;&#x6269;&#x5C55;&#x63D2;&#x4EF6;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Case &#34;EnumChilds&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Description_Text = &#34;&#x904D;&#x5386;&#x7B26;&#x5408;&#x7A97;&#x53E3;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;End Sel&#101;ct<br/>&nbsp;&nbsp;&nbsp;&nbsp;Get_Plugin_Interpret_Template = Translate_Description(Description_Text)<br/>End Function<br/>&#x751F;&#x6210;WindowEx.dll&#xFF0C;&#x653E;&#x5230;&#x6309;&#x952E;&#x7CBE;&#x7075;&#x5B89;&#x88C5;&#x76EE;&#x5F55;&#x7684;plugin&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x5C31;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E86;&#xFF1A;<br/>&#x8C03;&#x7528;&#x8BED;&#x6CD5;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Plugin.WindowEx.EnumChilds(hwnd, vbNullString) //&#x83B7;&#x53D6;&#x5168;&#x90E8;&#x5B50;&#x7A97;&#x53E3;&#x53E5;&#x67C4;<br/>Plugin.WindowEx.EnumChilds(hwnd, &#34;ToolBarPlus&#34;) //&#x83B7;&#x53D6;&#x6307;&#x5B9A;&#x7C7B;&#x540D;&#x5B50;&#x7A97;&#x53E3;&#x53E5;&#x67C4;<br/>&#x4E5F;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4E0B;&#x8F7D;&#x7F16;&#x8BD1;&#x597D;&#x7684;WindowEx.dll&#xFF1A;&#x70B9;&#x51FB;&#x4E0B;&#x8F7D;</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x6309;&#x952E;&#x7CBE;&#x7075;&#x39;&#x63D2;&#x4EF6;&#xFF1A;&#x45;&#x6E;&#x75;&#x6D;&#x43;&#x68;&#x69;&#x6C;&#x64;&#x73;&#x20;&#x904D;&#x5386;&#x7B26;&#x5408;&#x7A97;&#x53E3;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
