mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-06 13:34:05 +08:00
微调
This commit is contained in:
parent
a15fbda8e8
commit
19e43ef897
@ -79,7 +79,7 @@ new Array(<var>arrayLength</var>)
|
||||
<h2 id="描述">描述</h2>
|
||||
<p>数组是一种类列表对象,它的原型中提供了遍历和修改元素的相关操作。JavaScript 数组的长度和元素类型都是非固定的。因为数组的长度可随时改变,并且其数据在内存中也可以不连续,所以 JavaScript 数组不一定是密集型的,这取决于它的使用方式。一般来说,数组的这些特性会给使用带来方便,但如果这些特性不适用于你的特定使用场景的话,可以考虑使用类型数组 <a href="Reference/Global_Objects/TypedArray" title="一个TypedArray 对象描述一个底层的二进制数据缓存区的一个类似数组(array-like)视图。事实上,没有名为 TypedArray的全局对象,也没有一个名为的 TypedArray构造函数。相反,有许多不同的全局对象,下面会列出这些针对特定元素类型的类型化数组的构造函数。在下面的页面中,你会找到一些不管什么类型都公用的属性和方法。"><code>TypedArray</code></a>。</p>
|
||||
<p>只能用整数作为数组元素的索引,而不能用字符串。后者称为<a class="external" href="https://en.wikipedia.org/wiki/Associative_array" rel="noopener">关联数组</a>。使用非整数并通过<a href="https://developer.mozilla.orgGuide/Working_with_Objects#Objects_and_properties">方括号</a>或<a href="https://developer.mozilla.orgReference/Operators/Property_Accessors">点号</a>来访问或设置数组元素时,所操作的并不是数组列表中的元素,而是数组对象的<a href="https://developer.mozilla.orgData_structures#Properties">属性集合</a>上的变量。数组对象的属性和数组元素列表是分开存储的,并且数组的遍历和修改操作也不能作用于这些命名属性。</p>
|
||||
<h3 id="Accessing_array_elements" name="Accessing_array_elements" style="line-height: 24px; font-size: 1.71428571428571rem;">访问数组元素</h3>
|
||||
<h3 id="Accessing_array_elements" name="Accessing_array_elements" style="line-height: 24px; ">访问数组元素</h3>
|
||||
<p>JavaScript 数组的索引是从0开始的,第一个元素的索引为0,最后一个元素的索引等于该数组的长度减1。如果指定的索引是一个无效值,JavaScript 数组并不会报错,而是会返回 <code>undefined</code>。</p>
|
||||
<pre><code class="language-js language-js">var arr = ['this is the first element', 'this is the second element', 'this is the last element'];
|
||||
console.log(arr[0]); // 打印 'this is the first element'
|
||||
@ -125,7 +125,7 @@ console.log(promise['var']);
|
||||
<div class="line-number" style="margin-top: 1em; position: absolute; left: 0px; right: 0px; line-height: inherit; top: 57px; background: 0px 0px;"> </div>
|
||||
<div class="line-number" style="margin-top: 1em; position: absolute; left: 0px; right: 0px; line-height: inherit; top: 76px; background: 0px 0px;"> </div>
|
||||
<div class="line-number" style="margin-top: 1em; position: absolute; left: 0px; right: 0px; line-height: inherit; top: 95px; background: 0px 0px;"> </div>
|
||||
<h3 id="Relationship_between_length_and_numerical_properties" name="Relationship_between_length_and_numerical_properties" style="line-height: 24px; font-size: 1.71428571428571rem;">length 和数字下标之间的关系</h3>
|
||||
<h3 id="Relationship_between_length_and_numerical_properties" name="Relationship_between_length_and_numerical_properties" style="line-height: 24px; ">length 和数字下标之间的关系</h3>
|
||||
<p>JavaScript 数组的 <a href="Reference/Global_Objects/Array/length" title="length 是Array的实例属性。返回或设置一个数组中的元素个数。该值是一个无符号 32-bit 整数,并且总是大于数组最高项的下标。"><code>length</code></a> 属性和其数字下标之间有着紧密的联系。数组内置的几个方法(例如 <a href="Reference/Global_Objects/Array/join" title="join() 方法将一个数组(或一个类数组对象)的所有元素连接成一个字符串并返回这个字符串。如果数组只有一个项目,那么将返回该项目而不使用分隔符。"><code>join</code></a>、<a href="Reference/Global_Objects/Array/slice" title="The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone https://github.com/mdn/interactive-examples and send us a pull request."><code>slice</code></a>、<a href="Reference/Global_Objects/Array/indexOf" title="indexOf()方法返回在数组中可以找到一个给定元素的第一个索引,如果不存在,则返回-1。"><code>indexOf</code></a> 等)都会考虑 <a href="Reference/Global_Objects/Array/length" title="length 是Array的实例属性。返回或设置一个数组中的元素个数。该值是一个无符号 32-bit 整数,并且总是大于数组最高项的下标。"><code>length</code></a> 的值。另外还有一些方法(例如 <a href="Reference/Global_Objects/Array/push" title="push() 方法将一个或多个元素添加到数组的末尾,并返回该数组的新长度。"><code>push</code></a>、<a href="Reference/Global_Objects/Array/splice" title="splice() 方法通过删除或替换现有元素来修改数组,并以数组形式返回被修改的内容。此方法会改变原数组。"><code>splice</code></a> 等)还会改变 <a href="Reference/Global_Objects/Array/length" title="length 是Array的实例属性。返回或设置一个数组中的元素个数。该值是一个无符号 32-bit 整数,并且总是大于数组最高项的下标。"><code>length</code></a> 的值。</p>
|
||||
<pre><code class="language-js language-js">var fruits = [];
|
||||
fruits.push('banana', 'apple', 'peach');
|
||||
|
@ -3,7 +3,7 @@
|
||||
<p><strong><code>slice()</code></strong> 方法提取一个字符串的一部分,并返回一新的字符串。</p>
|
||||
<h2 id="Syntax" name="Syntax" style="margin-bottom: 20px; font-size: 2.14285714285714rem;">语法</h2>
|
||||
<pre class="syntaxbox" style="font-size: 14px; white-space: normal;"><code><var>str</var>.slice(<var>beginSlice</var>[, <var>endSlice</var>])</code></code></pre>
|
||||
<h3 id="Parameters" name="Parameters" style="font-size: 1.71428571428571rem;">参数</h3>
|
||||
<h3 id="Parameters" name="Parameters" style="">参数</h3>
|
||||
<dl>
|
||||
<dt><code>beginSlice</code></dt>
|
||||
<dd>从该索引(以 0 为基数)处开始提取原字符串中的字符。如果值为负数,会被当做 <code>sourceLength + beginSlice</code> 看待,这里的<code>sourceLength 是字符串的长度</code> (例如, 如果<code>beginSlice</code> 是 -3 则看作是: <code>sourceLength - 3</code>)</dd>
|
||||
@ -18,13 +18,13 @@
|
||||
<p>例1:<code>str.slice(1, 4)</code> 提取新字符串从第二个字符到第四个 (字符索引值为 1, 2, 和 3)。</p>
|
||||
<p>例2:<code>str.slice(2, -1)</code> 提取第三个字符到倒数第一个字符。</p>
|
||||
<h2 id="Examples" name="Examples" style="margin-bottom: 20px; font-size: 2.14285714285714rem;">例子</h2>
|
||||
<h3 id="Example:_Using_slice_to_create_a_new_string" name="Example:_Using_slice_to_create_a_new_string" style="font-size: 1.71428571428571rem;">使用 <code>slice()</code> 创建一个新的字符串</h3>
|
||||
<h3 id="Example:_Using_slice_to_create_a_new_string" name="Example:_Using_slice_to_create_a_new_string" style="">使用 <code>slice()</code> 创建一个新的字符串</h3>
|
||||
<p>下面例子使用 <code>slice()</code> 来创建新字符串:</p>
|
||||
<pre><code class="language-js language-js" style="padding: 1em 0px 1em 30px; font-size: 14px; white-space: normal;"><code class="language-js" style="font-family: Consolas, Monaco, 'Andale Mono', monospace; direction: ltr; white-space: pre;"><span class="keyword token" style="color: #0077aa;">var</span> str1 <span class="operator token" style="background: rgba(255, 255, 255, 0.498039); color: #a67f59;">=</span> <span class="string token" style="color: #669900;">'The morning is upon us.'</span><span class="punctuation token" style="color: #999999;">;</span>
|
||||
<span class="keyword token" style="color: #0077aa;">var</span> str2 <span class="operator token" style="background: rgba(255, 255, 255, 0.498039); color: #a67f59;">=</span> str1<span class="punctuation token" style="color: #999999;">.</span><span class="function token" style="color: #dd4a68;">slice<span class="punctuation token" style="color: #999999;">(</span></span><span class="number token" style="color: #990055;">4</span><span class="punctuation token" style="color: #999999;">,</span> <span class="operator token" style="background: rgba(255, 255, 255, 0.498039); color: #a67f59;">-</span><span class="number token" style="color: #990055;">2</span><span class="punctuation token" style="color: #999999;">)</span><span class="punctuation token" style="color: #999999;">;</span>
|
||||
|
||||
console<span class="punctuation token" style="color: #999999;">.</span><span class="function token" style="color: #dd4a68;">log<span class="punctuation token" style="color: #999999;">(</span></span>str2<span class="punctuation token" style="color: #999999;">)</span><span class="punctuation token" style="color: #999999;">;</span><span class="comment token" style="color: #708090;"> // OUTPUT: morning is upon u</span></code></code></pre>
|
||||
<h3 id="Example:_Using_slice_with_negative_indexes" name="Example:_Using_slice_with_negative_indexes" style="font-size: 1.71428571428571rem;">给 <code>slice()</code> 传入负值索引</h3>
|
||||
<h3 id="Example:_Using_slice_with_negative_indexes" name="Example:_Using_slice_with_negative_indexes" style="">给 <code>slice()</code> 传入负值索引</h3>
|
||||
<p>下面的例子在 <code>slice()</code> 使用了负值索引:</p>
|
||||
<pre><code class="language-js language-js" style="padding: 1em 0px 1em 30px; font-size: 14px; white-space: normal;"><code class="language-js" style="font-family: Consolas, Monaco, 'Andale Mono', monospace; direction: ltr; white-space: pre;"><span class="keyword token" style="color: #0077aa;">var</span> str <span class="operator token" style="background: rgba(255, 255, 255, 0.498039); color: #a67f59;">=</span> <span class="string token" style="color: #669900;">'The morning is upon us.'</span><span class="punctuation token" style="color: #999999;">;</span>
|
||||
str<span class="punctuation token" style="color: #999999;">.</span><span class="function token" style="color: #dd4a68;">slice<span class="punctuation token" style="color: #999999;">(</span></span><span class="operator token" style="background: rgba(255, 255, 255, 0.498039); color: #a67f59;">-</span><span class="number token" style="color: #990055;">3</span><span class="punctuation token" style="color: #999999;">)</span><span class="punctuation token" style="color: #999999;">;</span> <span class="comment token" style="color: #708090;"> // returns 'us.'
|
||||
|
@ -9,7 +9,7 @@
|
||||
or
|
||||
typeof (operand)</em>
|
||||
</code></pre>
|
||||
<h3 id="参数" style="line-height: 24px; font-size: 1.71428571428571rem;">参数</h3>
|
||||
<h3 id="参数" style="line-height: 24px; ">参数</h3>
|
||||
<p><code><em>operand</em></code> 是一个表达式,表示对象或<a class="glossaryLink" href="/en-US/docs/Glossary/Primitive" title="原始值: In JavaScript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods. There are 6 primitive data types: string, number, boolean, null, undefined, symbol (new in ECMAScript 2015).">原始值</a>,其类型将被返回。</p>
|
||||
<p>括号是可选的。</p>
|
||||
<h2 id="描述">描述</h2>
|
||||
@ -109,7 +109,7 @@ typeof function(){} === 'function';
|
||||
typeof class C{} === 'function'
|
||||
typeof Math.sin === 'function';
|
||||
typeof new Function() === 'function';</code></pre>
|
||||
<h3 id="null" style="line-height: 24px; font-size: 1.71428571428571rem;"><code>null</code></h3>
|
||||
<h3 id="null" style="line-height: 24px; "><code>null</code></h3>
|
||||
<pre><code class="language-js language-js" style="padding: 1em 0px 1em 30px; font-size: 14px; white-space: normal; color: rgb(77, 78, 83);">typeof null === 'object'; // 从一开始出现JavaScript就是这样的
|
||||
|
||||
</code></pre>
|
||||
|
@ -17,13 +17,13 @@
|
||||
<h4 id="删除,添加或者修改属性">删除,添加或者修改属性</h4>
|
||||
<p><code>for...in</code> 循环以任意序迭代一个对象的属性(请参阅<a href="Reference/Operators/delete" title="delete 操作符用于删除对象的某个属性;如果没有指向这个属性的引用,那它最终会被释放。"><code>delete</code></a>运算符,了解为什么不能依赖于迭代的表面有序性,至少在跨浏览器设置中)。如果一个属性在一次迭代中被修改,在稍后被访问,其在循环中的值是其在稍后时间的值。一个在被访问之前已经被删除的属性将不会在之后被访问。在迭代进行时被添加到对象的属性,可能在之后的迭代被访问,也可能被忽略。</p>
|
||||
<p>通常,在迭代过程中最好不要在对象上进行添加、修改或者删除属性的操作,除非是对当前正在被访问的属性。这里并不保证是否一个被添加的属性在迭代过程中会被访问到,不保证一个修改后的属性(除非是正在被访问的)会在修改前或者修改后被访问,不保证一个被删除的属性将会在它被删除之前被访问。</p>
|
||||
<h3 id="数组迭代和_for...in" style="line-height: 24px; font-size: 1.71428571428571rem;">数组迭代和 <code>for...in</code></h3>
|
||||
<h3 id="数组迭代和_for...in" style="line-height: 24px; ">数组迭代和 <code>for...in</code></h3>
|
||||
<div class="note">
|
||||
<p><strong>提示:</strong><code>for...in</code>不应该用于迭代一个 <a href="Reference/Array" title="REDIRECT Array"><code>Array</code></a>,其中索引顺序很重要。</p>
|
||||
</div>
|
||||
<p>数组索引只是具有整数名称的枚举属性,并且与通用对象属性相同。不能保证<code>for ... in</code>将以任何特定的顺序返回索引。<code>for ... in</code>循环语句将返回所有可枚举属性,包括非整数类型的名称和继承的那些。</p>
|
||||
<p>因为迭代的顺序是依赖于执行环境的,所以数组遍历不一定按次序访问元素。因此当迭代访问顺序很重要的数组时,最好用整数索引去进行<a href="Reference/Statements/for" title="for 语句用于创建一个循环,它包含了三个可选的表达式,三个可选的表达式包围在圆括号中并由分号分隔, 后跟一个在循环中执行的语句(通常是一个块语句)。"><code>for</code></a>循环(或者使用 <a href="Reference/Global_Objects/Array/forEach" title="forEach() 方法对数组的每个元素执行一次提供的函数。"><code>Array.prototype.forEach()</code></a> 或 <a href="Reference/Statements/for...of" title="for...of语句在可迭代对象(包括 Array,Map,Set,String,TypedArray,arguments 对象等等)上创建一个迭代循环,调用自定义迭代钩子,并为每个不同属性的值执行语句"><code>for...of</code></a> 循环)。</p>
|
||||
<h3 id="仅迭代自身的属性" style="line-height: 24px; font-size: 1.71428571428571rem;">仅迭代自身的属性</h3>
|
||||
<h3 id="仅迭代自身的属性" style="line-height: 24px; ">仅迭代自身的属性</h3>
|
||||
<p>如果你只要考虑对象本身的属性,而不是它的原型,那么使用 <a href="Reference/Global_Objects/Object/getOwnPropertyNames" title="Object.getOwnPropertyNames()方法返回一个由指定对象的所有自身属性的属性名(包括不可枚举属性但不包括Symbol值作为名称的属性)组成的数组。"><code>getOwnPropertyNames()</code></a> 或执行 <a href="Reference/Global_Objects/Object/hasOwnProperty" title="hasOwnProperty() 方法会返回一个布尔值,指示对象自身属性中是否具有指定的属性"><code>hasOwnProperty()</code></a> 来确定某属性是否是对象本身的属性(也能使用<a href="Reference/Global_Objects/Object/propertyIsEnumerable" title="propertyIsEnumerable() 方法返回一个布尔值,表示指定的属性是否可枚举。"><code>propertyIsEnumerable</code></a>)。或者,如果你知道不会有任何外部代码干扰,您可以使用检查方法扩展内置原型。</p>
|
||||
<h2 id="Example" name="Example">示例</h2>
|
||||
<p>下面的函数接受一个对象作为参数。被调用时迭代传入对象的所有可枚举属性然后返回一个所有属性名和其对应值的字符串。</p>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<p>函数也可以被表达式创建( <a href="/en/JavaScript/Reference/Operators/function">function expression</a> )</p>
|
||||
<p>函数可以被有条件来声明,这意味着,在一个 if 语句里,函数声明是可以嵌套的。有的浏览器会将这种有条件的声明看成是无条件的声明,无论这里的条件是true还是false,浏览器都会创建函数。因此,它们不应该被使用。</p>
|
||||
<p>默认情况下,函数是返回 undefined 的。想要返回一个其他的值,函数必须通过一个 <a href="/en/JavaScript/Reference/Statements/return">return</a> 语句指定返回值。</p>
|
||||
<h3 id="有条件的创建函数" style="line-height: 24px; font-size: 1.71428571428571rem;">有条件的创建函数</h3>
|
||||
<h3 id="有条件的创建函数" style="line-height: 24px; ">有条件的创建函数</h3>
|
||||
<p>函数可以被有条件来声明,这意味着,函数声明可能出现在一个 if 语句里,但是,这种声明方式在不同的浏览器里可能有不同的效果。因此,不应该在生成环境代码中使用这种声明方式,应该使用函数表达式来代替。</p>
|
||||
<p> </p>
|
||||
<pre><code class="language-javascript"><code>var hoisted = "foo" in this;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数依据所需客户矩形大小,计算需要的窗口矩形的大小。计算出的窗口矩形随后可以传送给CreateWindowEx函数,用于创建一个客户区所需大小的窗口。<br>
|
||||
<h3>函数原型</h3>BOOL AdjustWindowRectEX(LPRECT lpRect,DWORD dwStyte;BOOL bMenu;DWORD dwExStyle);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数依据所需客户矩形的大小,计算需要的窗日矩形的大小。计算出的窗口矩形随后可以传递给CreateWindow函数,用于创建一个客户区所需大小的窗口。<br>
|
||||
<h3>函数原型</h3>BOOL AdjustWindowRect(LPRECT lpRect ,DWORD dwStyle,BOOL bMENU);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数能在显示与隐藏窗口时能产生特殊的效果。有两种类型的动画效果:滚动动画和滑动动画。<br>
|
||||
<h3>函数原型</h3>BOOL AnimateWindow(HWND hWnd,DWORD dwTime,DWORD dwFlags);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数指出一个被属窗口,可见窗口,顶级弹出窗口,或层叠窗日是否在屏幕上存在。这个函数搜索整个屏幕,而不仅仅搜索应用程序的客户区。<br>
|
||||
<h3>函数原型</h3>BOOL AnyPopup(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数安排指定父窗口的各个最小化(图标化)子窗口。<br>
|
||||
<h3>函数原型</h3>UNIT ArrangelconicWindows(HWND hWnd):<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为一个多窗口位置结构分配内存并且返回该结构的句柄。<br>
|
||||
<h3>函数原型</h3>HDWP BeginDeferWindowPos(int nNumWindows);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回一个可被UpdateResource函数使用的句柄以便在一个可执行文件中增加、删除或替换资源。<br>
|
||||
<h3>函数原型</h3>HANDLE BeginUpdateResource(LPCTSTR pFileName,BOOL bDeleteExistingResources);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数发送消息给指定的接受者。接受者可以是一个应用程序、安装驱动器、网络驱动器、系统级设备驱动器或这些系统组件的组合。<br>
|
||||
<h3>函数原型</h3>long BroadcastSystemMessage(DWORD dwFIags,LPDWORD IpdwRecipients,UINT UiMessage,WPARAMwParam,LPARAM IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数将指定的窗口设置到Z序的顶部。如果窗口为顶层窗口,则该窗口被激活;如果窗口为了窗口,则相应的顶级父窗口被激活。<br>
|
||||
<h3>函数原型</h3>B00L BringWindowToTop(HWND,hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数层叠排列指定父窗口的各指定子窗口。<br>
|
||||
<h3>函数原型</h3>WORD WINAPI CascadeWihdows(HWND hWndParent,UNIT wHow,CONST RECT*lpRect,UNIT cKids, Const HWND FA*lpKids);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定属于某一父窗口的哪一个子窗口(如果存在的话)包含一个指定的点。<br>
|
||||
<h3>函数原型</h3>HWND ChildWindowFromaPoint(HWND hWndParent.POINT Point):<br>
|
||||
Parent:父窗口句柄。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定属于父窗口的哪一个子窗口(如果存在的话)包含着指定的点。该函数可以忽略不可见的、禁止的和透明的子窗口。<br>
|
||||
<h3>函数原型</h3>HWND ChidWindowFromaPointEx(HWND hwndParent,POINT pt,UNIT uFlags);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数最小化指定的窗口,但并不销毁该窗口。<br>
|
||||
<h3>函数原型</h3>BOOL CloseWindow(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数创建一个新的图像(图标、光标、位图)并复制该指定图像的属性到新的图像。若有必要,该函数将伸展位值以填满新图像所需要的尺寸。<br>
|
||||
<h3>函数原型</h3>HANDLE CopyImage(HANDLE hlmage,UjNT uTyPe,int cxDesired,int cyDesired,UINT fuFlags)<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数创建一个重叠式窗口、弹出式窗口或子窗口。它指定窗口类,窗口标题,窗口风格,以及窗口的初始位置及大小(可选的)。该函数也指定该窗口的父窗口或所属窗口(如果存在的话),及窗口的菜单。若要使用除CreateWindow函数支持的风格外的扩展风格,则使用CreateWindowEx函数代替CreateWindow函数。<br>
|
||||
<h3>函数原型</h3>HWND CreateWindow(LPCTSTR lpClassName,LPCTSTR lpWindowName,DWORD dwStyle,int x,int y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HANDLE hlnstance,LPVOID lpParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数创建一个多文档接口MDI的子窗口。<br>
|
||||
<h3>函数原型</h3>HWND GreateMDIWindow(LPTSTR IpClassName,LPTSTR IpWindowName,LPTSTR IpWindowName,DWORD dwStyle,int X,int Y,intn Width,int nHeight,HWND hWndParent,HINSTANCE hlnstance,LPARAM IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数创建一个具有扩展风格的重叠式窗口、弹出式窗口或子窗口,其他与
|
||||
CreateWindow函数相同。关于创建窗口和其他参数的内容,请参看CreateWindowEx。<br>
|
||||
<h3>函数原型</h3>HWND CreateWindowEx(DWORD dwExStle,LPCTSTR IpClassName,LPCTSTR lpWindowName,DWORD dwStyle,int x,int y,int nWidth,int nHeight,HWND hWndParent,HMENUhMenu,HANDLE hlnstance,LPVOIDlpParam);<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数对任何多文档接口(MDI)框架窗日的窗口过程不处理的窗口消息提供缺省处理。窗口过程不能明确处理的所有窗口消息必须通过DefFrameProc函数处理,而不是通过DefWindowProc函数。<br>
|
||||
<h3>函数原型</h3>LRESULT DefFrameProc(HWND hWnd,HWND hWnd,HWND hWndMDIClient,UINT uMsg,WPARAM wParam,LPARAM IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数对任何多文档接口(MDI)子窗口的窗口过程不能处理的窗口消息提供缺省处理。窗口过程不能处理的窗口消息必须传递给DefMDIChildProc函数,而不是DefWindowProc函数。<br>
|
||||
<h3>函数原型</h3>LRESULT DDMDIChildProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM IParam)<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为指定的窗口更新指定的多窗口位置结构,然后函数返回该更新结构的句柄。EndDeferWindowPos函数使用该结构内的信息同时改变一些窗口的位置和大小。该结构由BeginDeferWindowPos函数创建。<br>
|
||||
函数原型:HWND DeferWindowPos(HDWP hWinPoslnfo,HWND hWnd,HWND hWndlnsertAffer, int x,int y, int cx, int Cy,UNIT uFags);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>是与函数EnumChilWindows一起使用的由应用程序定义的回调函数。它接收子窗口句柄。类型 WNDENUMOROC定义了指向这个回调函数的指针。EnumChildProc是一个应用程序定义的函数名的位置标志符。<br>
|
||||
<h3>函数原型</h3>BOOL CALLBACK EnumChildProc(HWND hWnd,LPARAM IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数调度一个消息给窗口程序。通常调度从GetMessage取得的消息。<br>
|
||||
<h3>函数原型</h3>LONG DispatchMessage(CONST MSG★lpmsg);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数捕获并跟踪鼠标的移动直到用户松开左键、按下Esc。键或者将鼠标移动到围绕指定点的“拖动矩形”之外。拖动矩形的宽和高由函数GetSystemMetrics返回的SM_CXDRAG或SM_CYDRAG确定。<br>
|
||||
<h3>函数原型</h3>BOOL DragDetect(HWND hwnd,POINT pt);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数可以激活一个或两个滚动条箭头或是使其失效。<br>
|
||||
<h3>函数原型</h3>BOOL EnableScrollBar(HWND hWnd,UINT WSBflags,UINT wArrows);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数允许或禁止指定的窗口或控制接受鼠标输入或键盘输入。当输入被禁止时窗口不能接收鼠标单击和按键等类输入;当输入允许时,窗口接受所有的输入。<br>
|
||||
<h3>函数原型</h3>BOOL EnableWindow(HWND hWnd,BOOL bEndble);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数在一个单一的屏幕刷新周期内同时更新一个或多个窗口的位置和大小。<br>
|
||||
<h3>函数原型</h3>BOOL EndDeferWindowPos( HWND hWinPoslnfo);<br>
|
||||
参数;<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数终止在可执行文件中的资源更新。<br>
|
||||
<h3>函数原型</h3>BOOL EndUpdateResource(HANDLE hUpdate,BOOL fDiscard);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数是由应用程序定义的,与函数EnumChildWindows一起使用的回调函数。它接收子窗口句柄。类型WNDENUMPROC定义了一个指向回调函数的指针。EnumChildProc是一个应用程序定义的函数名的位置标志符。<br>
|
||||
<h3>函数原型</h3>BOOL CALLBACK EnumChildProc(HWND hwnd,LPARAM ItParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
{dwThreadld,WNDENUMROCIpfn,LPARAMIPam};<br>
|
||||
<h3>参数</h3>
|
||||
dwThreadld:标识将被列举窗口的线程。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数是一个用户定义的和EnumResourceLanguages函数一起使用的回调函数。它接收资源语言。ENUMRESLANGPROC类型定义指向该响应函数的指针。EnumResLangProc是用户定义的函数名称的占位符。<br>
|
||||
<h3>函数原型</h3>BOOL CALLBACK EnumResLangProc(HANDLE hModule,LPCTSTR IPszType, LPCTSTR IpszName,WORDwlDLanguage,LONG IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数是一个用户定义的和EnumResourceNames函数一起使用的回调函数。ENUMRESNAMEPROC类型定义一个指向该回调函数的指针。EnumResNameProc是用户定义函数名的占位符。<br>
|
||||
<h3>函数原型</h3>BOOL CALLBACK EnumResNameProc(HANDL hModue.LPCTSTR haszTyPe,LPTSTR IPszName,LONGIParam);<br>
|
||||
参数:<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数是一个用户定义的和EnumResourceTypes函数一起使用的回调函数。它接收资源类型。EnumResTypeProc类型定义一个指向这个回调函数的指针。EnumResTypeProc是这个用户定义函数名称的占位符。<br>
|
||||
<h3>函数原型</h3>BOOL CALLBACK EnumResTyPeProc(HANDLE hModue,LPTSTR lpszType,LONG IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为每个指定类型和名称的资源搜索模块,并且向定义的回调函数传递所搜寻到的每种资源语言。<br>
|
||||
函数原型;BOOL EnumResourceLanguages(HMODULE hModule,LPCTSTR lpType,LPCTSTR IpName,ENUMRESthNGPROC lpEnumFunc,LONG IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为每个指定类型的资源搜寻模块,并将每个查找到的资源名称传递给回调函数。<br>
|
||||
<h3>函数原型</h3> BOOL EnumResourceNames(HINSTANCE hModue,LPCTSTR lpszType,ENUMRESNAMEPROC lpEnumFunc,LONG IParam);<h3>参数</h3>
|
||||
hModule:处理包含被列举资源名称的可执行文件的模块。如果这个参数为NULL,那么函数将在模块中列举出创建当前过程的资源名称。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为资源搜寻模块并且将它找到的每个资源类型传递给用户定义的回调函数。<br>
|
||||
<h3>函数原型</h3>BOOL EnumResourceTypes(HMODULE hModule,ENUMRESTYPEPROC lpEnumFunc,LONG IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数已经过时,由EnumThreadwindows函数取代它。
|
||||
|
||||
</body>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数枚举所有与一个线程相关联的非子窗口,办法是先将句柄传送给每一个窗口,随后传送给应用程序定义的回调函数。EnumThreadWindows函数继续直到所有窗口枚举完为止或回调函数返回FALSE为止。要枚举一个特定窗口的所有子窗口,使用EnumChildWindows函数。<br>
|
||||
<h3>函数原型</h3>BOOL EnumThreadWindows(DWORD dwThreadld,WNDENUMPROClpfn,LPARAMlparam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数枚举所有与一个线程有关的非子窗口。办法是先将句柄传给每一个窗口,随后传送给应用程序定义的回调函数。EnumThreadWindows函数继续到所有窗口枚举完为止或回调函数返回FALSE为止。要枚举一个特定窗口的所有子窗口;使用EnumChjdwjndows函数。<br>
|
||||
<h3>函数原型</h3>BOOL EnumThreadWindows{D<h3>函数功能</h3>该函数销毁指定的窗口。该函数发送WS_DESTROY,WS_NCDESTROY消息到窗口中以撤消该窗口并且将键盘焦点移开。该函数也销毁窗口菜单,刷新线程消息队列,销毁计时器,删除剪贴板的所有权,并断开剪贴板视窗链接(如果窗口在视窗链接的顶端)。<br>
|
||||
如果指定的窗口是父窗口或所有者窗口,DestroyWindow在销毁父窗口或所有者窗口时自动销毁相关的子窗口和从属窗口。该函数首先销毁相关联的子窗口和从属窗口,然后销毁父窗口和所有者窗口。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数枚举所有屏幕上的顶层窗口,办法是先将句柄传给每一个窗口,然后再传送给应用程序定义的回调函数。EnumThreadWindows函数继续到所有顶层窗口枚举完为止或回调函数返回FALSE为止<h3>函数原型</h3>BOOL EnumWindows(WNDENUMPROC lpEnumFunc,LPARAM lParam);<br>
|
||||
<h3>参数</h3>
|
||||
lpEnumFunc:指向一个应用程序定义的回调数指针,请参看EnumWindowsProc。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数是一个与EnumWindows或EnumDesktopWindows一起使用的应用程序定义的回调函数。它接收顶层窗口句柄。WNDENUMPROC定义一个指向这个回调函数的指针。EnumWindowsProc是应用程序定义函数名的位置标志符。<br>
|
||||
<h3>函数原型</h3>BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM IParam);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定指定模块中指定类型、名称及语言的资源所在位置。<br>
|
||||
<h3>函数原型</h3>HRSRC FindResourceEx(HXODULE hModule,LPCTSTR lpType,LPCTSTR lpName,WORD wLanguage);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数获得一个顶层窗口的句柄,该窗口的类名和窗口名与给定的字符串相匹配。这个函数不查找子窗口。在查找时不区分大小写。<br>
|
||||
函数型:HWND FindWindow(LPCTSTR IpClassName,LPCTSTR IpWindowName);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定指定模块中指定类型和名称的资源所在位置。<br>
|
||||
<h3>函数原型</h3>HRSRC FindResource(HMODULE hModule,LPCTSTR lpName,LPCTSTR lpType);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数获得一个窗口的句柄,该窗口的类名和窗口名与给定的字符串相匹配。这个函数查找子窗口,从排在给定的子窗口后面的下一个子窗口开始。在查找时不区分大小写。<br>
|
||||
<h3>函数原型</h3>HWND FindWindowEx(HWND hwndParent,HWND hwndChildAfter,LPCTSTR lpszClass,LPCTSTR lpszWindow);<br>
|
||||
参数;<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数已过时。它为16位的基于Win32的应用程序提供了一个简单的端口。对于Win32应用程序(32位)没有必要释放用LoadResource函数装载资源。由LoadResource所获得的资源随着被装载模块的卸载自动被释放。但是,为了保留内存减少的程序工作设置所占空间大小,必须通过调用下列表中的函数以释放加速器表、位图、光标、图标以及菜单所占的内存资源。<br>
|
||||
加速器表:DestroyAcceleratorTable;位图:DeleteObject;光标:DestroyCursor;<br>
|
||||
图标:Destroylcon;菜单:DestroyMenu。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数取得捕获了鼠标的窗口(如果存在)的句柄。在同一时刻,只有一个窗口能捕获鼠标;此时,该窗口接收鼠标的输入,无论光标是否在其范围内。<br>
|
||||
<h3>函数原型</h3>HWND GetCapture(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数获取窗口客户区的坐标。客户区坐标指定客户区的左上角和右下角。由于客户区坐标是相对子窗口客户区的左上角而言的,因此左上角坐标为(0,0)<br>
|
||||
<h3>函数原型</h3>BOOL GetClientRect(HWND hWnd,LPRECT lpRect);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回桌面窗口的句柄。桌面窗口覆盖整个屏幕。桌面窗口是一个要在其上绘制所有的图标和其他窗口的区域。<br>
|
||||
<h3>函数原型</h3>HWND GetDesktopWindow(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数取得鼠标的当前双击时间。一次双击是指对鼠标键的两次连击,第一次击键后在指定时间内击第二次。双击时间是指在双击中,第一次击键和第二次击键之间的最大毫秒数。<br>
|
||||
<h3>函数原型</h3>UINT GetDoubleClickTime(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回前台窗口(用户当前工作的窗口)。系统分配给产生前台窗口的线程一个稍高一点的优先级。<br>
|
||||
<h3>函数原型</h3>HWND GetForegroundwindow(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定指定窗口中的哪一个弹出式窗口是最近活动的窗口。<br>
|
||||
<h3>函数原型</h3>HWND GetLastActivePopup(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数从调用线程的消息队列里取得一个消息并将其放于指定的结构。此函数可取得与指定窗口联系的消息和由PostThreadMesssge寄送的线程消息。此函数接收一定范围的消息值。GetMessage不接收属于其他线程或应用程序的消息。<br>
|
||||
<h3>函数原型</h3>BOOL GetMessage(LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilteMax<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为当前线程取得附加消息信息。附加消息信息是应用程序或驱动程序定义的与当前线程的消息队列联系的32位值。可用SetMessageExtralnfo来设置线程的附加消息信息,该消息信息将会保留到下一次调用GetMessage或PeekMessage之前。<br>
|
||||
<h3>函数原型</h3>LONG GetMessageEXtralnfo(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回表示屏幕坐标下光标位置的长整数值。此位置表示当上一消息由GetMessage取得时鼠标占用的点。<br>
|
||||
<h3>函数原型</h3>DWORD GetMessagePos(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回由GetMessage从当前线程队列里取得上一消息的消息时间。时间是一个长整数,指定从系统开始到消息创建(即,放入线程消息队列)的占用时间(按毫秒计算)。<br>
|
||||
<h3>函数原型</h3>LONG GetMessageTime(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数取得鼠标或画笔。<br>
|
||||
<h3>函数原型</h3>int GetMouseMovePoints(UINT cbSize,LPMOUSEMOVEPOlNT lppt,LPMOUSEMOVEPOINT IpptBuf,int,nBufPoints,DWORD resolution);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回z序中的前一个或后一个窗口的句柄。下一窗口在指定窗口的下面,前一窗口则在上面。如果指定的窗口是顶端窗口,该函数返回下一个(或前一个)顶端窗口的句柄。如果指定的窗口是顶层窗口,函数返回下一个(或前一个)顶层窗口的句柄。如果函数是子窗口,则函数搜索下一个或前一个子窗口的句柄。<br>
|
||||
<h3>函数原型</h3>HWND GetNextWindow(HWND hWnd,UNIT wCmd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数获得一个指定子窗口的父窗口句柄。<br>
|
||||
<h3>函数原型</h3>HWND GetParent(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回表示调用线程消息队列里的消息的类型的标志。<br>
|
||||
<h3>函数原型</h3>DWORD GetQueueStatus(UINT flags);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数获取指定滚动条中滚动按钮的当前位置。当前位置是一个根据当前滚动范围而定的相对值。例如,如果滚动范围是0到100之间,滚动按钮在中间位置,则其当前位置为50。该函数提供了向后兼容性,新的应用程序应使用GetScroiliofo函数。<br>
|
||||
<h3>函数原型</h3>int GetScrogPos(HWND hWnd;int nBar);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>获取指定滚动条中滚动按钮位置的当前最大最小值。<br>
|
||||
<h3>函数原型</h3>BOOL GetscrollRange(HWND hWnd,int nBar,LPINT lpMinPos,LPINT InMaxPos);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数找到滚动条的参数,包括滚动条位置的最小值、最大值,页面大小,滚动按钮的位置,
|
||||
<h3>函数原型</h3>BOOL GetScrolllnfo(HWND hWnd,int fnBar,LPSCROLLINFO lpsi);
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数已经过时,该函数只是为与16位版的窗口程序兼容而提供的。
|
||||
|
||||
</body>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数检查与特定父窗口相联的子窗口z序,并返回在z序顶部的子窗口的句柄。<br>
|
||||
<h3>函数原型</h3>HWND GetTopWindow(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回与指定窗口有特定关系(如Z序或所有者)的窗口句柄。<br>
|
||||
<h3>函数原型</h3>HWND GetWindow(HWND hWnd,UNIT nCmd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回指定窗口的显示状态以及被恢复的、最大化的和最小化的窗口位置。<br>
|
||||
<h3>函数原型</h3>BOOL GetWindowPlacement(HWND hWnd,WINDOWPLACEMENT★lpwndpl);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。<br>
|
||||
<h3>函数原型</h3>BOOL GetWindowRect(HWND hWnd,LPRECTlpRect);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数已经过时,该函数只是为与16位版的窗口程序兼容而提供的。基于32位的应用程序应该使用GetWindowThreadProcessld函数。
|
||||
|
||||
</body>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数将指定窗口的标题条文本(如果存在)拷贝到一个缓存区内。如果指定的窗口是一个控制,则拷贝控制的文本。但是,GetWindowTeXt不能接收在其他应用程序中的控制文本。<br>
|
||||
<h3>函数原型</h3>Int GetWindowText(HWND hWnd,LPTSTR lpString,Int nMaxCount);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回指定窗口的标题文本(如果存在)的字符长度。如果指定窗口是一个控制,函数将返回控制内文本的长度。但是GetWindowTextLength函数不能返回在其他应用程序中的控制的文本长度。<br>
|
||||
<h3>函数原型</h3>nit GetWindowTextLent(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数返回创建指定窗口线程的标识和创建窗口的进程的标识符,后一项是可选的。<br>
|
||||
函数原型;DWORD GetWindowThreadProcessld(HWND hwnd,LPDWORD lpdwProcessld);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定在调用线程的消息队列里,是否有鼠标键或键盘消息。<br>
|
||||
<h3>函数原型</h3>BOOL GetlnputState(VOID)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数决定当前窗口程序是否处理另一个线程调用SendMesssge(在相同进程或不同进程)发送来的消息。<br>
|
||||
<h3>函数原型</h3>BOOL InsendMessage(VOID);<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>函数决定当前窗口程序是否处理另一个线程调用SendMessage(在相同进程或不同进程)发送来的消息。此函数与InsendMesssge相似,但另外提供了如何发送消息的信息。<br>
|
||||
<h3>函数原型</h3>DWORD InsendMessageEx(LPVOID IpReserved);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数测试一个窗口是否是指定父窗口的子窗口或后代窗口。如果该父窗口是在父窗口的链表上则子窗口是指定父窗口的直接后代。父窗口链表从原始层叠窗口或弹出窗口一直连到该子窗口。<br>
|
||||
<h3>函数原型</h3>BOOL IsChild(HWND hWndParant,HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定给定窗口是否是最小化(图标化)的窗口。<br>
|
||||
<h3>函数原型</h3>BOOL IsIconic(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定给定的窗口句柄是否识别一个已存在的窗口。<br>
|
||||
因数原型:BOOL isWindow(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定指定的窗口是否是一个本地Unicode窗口。<br>
|
||||
<h3>函数原型</h3> BOOL lswindowUnicode(HWND hwndJ;<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数获得给定窗口的可视状态。;<br>
|
||||
<h3>函数原型</h3>BOOL IsWindowVisible(HWND hWnd);<br>
|
||||
参数;<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数确定窗口是否是最大化的窗口。<br>
|
||||
<h3>函数原型</h3>BOOL IsZoomed(HWND hWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数装载目标,光标,或位图。<br>
|
||||
<h3>函数原型</h3>HANDLE LoadImage(NINSTANCE hinst,LPCTSTR lpszName,UINT uType,int cxDesired,int CyDesired,UINT fuLoad);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数装载指定资源到全局存储器。<br>
|
||||
函数原型; HGLOSAL LoadResouare(HMODULE hModule,HRSRC hReslnfo);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数锁定内存中的指定资源。<br>
|
||||
<h3>函数原型</h3>LPVOID LOCkResource(HGLOBAL hResDate);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数改变指定窗口的位置和尺寸。对于顶层窗口,位置和尺寸是相对于屏幕的左上角的:对于子窗口,位置和尺寸是相对于父窗口客户区的左上角坐标的。<br>
|
||||
<h3>函数原型</h3>BOOL MoveWindow(HWND hWnd.int x.int y,int nWidth,int nHeight,BOOL BRePaint);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数将一个最小化窗口恢复到原来的位置和尺寸并且激活该窗口。<br>
|
||||
<h3>函数原型</h3>BOOL Openlcon(HWNDhWnd);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数为一个消息检查线程消息队列,并将该消息(如果存在)放于指定的结构。<br>
|
||||
<h3>函数原型</h3>BOOL PeekMessage(LPMSG IpMsg,HWND hWnd,UINT wMSGfilterMin,UINT wMsgFilterMax,UINT wRemoveMsg);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数已过时。提供此函数只是为了与Windows的16位版本兼容。基于Win32的应用程序应该使用函数PostThreadMessage。
|
||||
|
||||
</body>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数将一个消息放入(寄送)到与指定窗口创建的线程相联系消息队列里,不等待线程处理消息就返回。消息队列里的消息通过调用GetMessage和PeekMessage取得。<br>
|
||||
<h3>函数原型</h3>B00L PostMessage(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam);<br>
|
||||
参数<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数向系统表明有个线程有终止请求。通常用来响应WM_DESTROY消息。<br>
|
||||
<h3>函数原型</h3>VOID PostQuitMessage(int nExitCode);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数将一个消息放入(寄送)到指定线程的消息队列里,不等待线程处理消息就返回。<br>
|
||||
<h3>函数原型</h3>BOOL PostThreadMessage(DWORD idThread,UINT Msg,WPARAM wParam,LPARAM IParam);<br>
|
||||
参数<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数定义一个新的窗口消息,该消息确保在系统中是唯一的。返回的消息值可在调用函数SendMessage或PostMessage时使用。<br>
|
||||
<h3>函数原型</h3>UINT RegisterWindowsMessage(LPCTSTR lpString);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数从当前线程中的窗口释放鼠标捕获,并恢复通常的鼠标输入处理。捕获鼠标的窗口接收所有的鼠标输入(无论光标的位置在哪里),除非点击鼠标键时,光标热点在另一个线程的窗口中。<br>
|
||||
<h3>函数原型</h3>BOOL ReleaseCapture(VOlD)<br>
|
||||
<h3>参数</h3>无。<br>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数用于应答由函数SendMessage发送的消息,不返回控制给调用SendMessage的函数。<br>
|
||||
<h3>函数原型</h3>BOOLReplyMessage(LRESULTIResult);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数水平和垂直滚动一个位矩形。<br>
|
||||
<h3>函数原型</h3>BOOL ScrollDC(HDC hDC,int dx,int dy,CONST RECT ·IprcScroll,CONST★lprcClip,HRGN hrgnUpdateLPRECT IprcUpdate);<br>
|
||||
<h3>参数</h3>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<FONT style="FONT: 12px 宋体" color=black>
|
||||
|
||||
<h3>函数功能</h3>该函数滚动所指定的窗体客户区域内容。函数提供了向后兼容性,新的应用程序应使用ScrollWindowEX。<br>
|
||||
<h3>函数原型</h3>BOOL ScrollWindow(HWND hWnd,int XAmount,int YAmount,CONST RECT★IpRect, CONST RECT★lpClipRect);<br>
|
||||
<h3>参数</h3>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user