⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lesson93.htm

📁 为所有对破解感兴趣的朋友准备的礼物。希望大家能够喜欢。
💻 HTM
📖 第 1 页 / 共 2 页
字号:
      <b class="p9">WM_GETTEXT</b> </font> 
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> <span class="p9">An 
            application sends a WM_GETTEXT message to copy the text that corresponds 
            to a window into a buffer provided by the caller. </span></font><span class="p9"><br>
            </span>
            <pre><span class="p9">
     wParam = (WPARAM) cchTextMax;   // number of characters to copy
     lParam = (LPARAM) lpszText;     // address of buffer for text
</span></pre>
            <span class="p9"><font face=verdana,arial,helvetica size=2><b><span class="p9">Returns</span></b></font></span><font face=verdana,arial,helvetica size=2><br>
            <span class="p9">The return value is the number of characters copied. 
            </span></font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b class="p9">WM_GETTEXTLENGTH</b> </font> 
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> <span class="p9">An 
            application sends a WM_GETTEXTLENGTH message to determine the length, 
            in characters, of the text associated with a window. The length does 
            not include the terminating null character. </span></font><span class="p9"><br>
            </span>
            <pre><span class="p9">
     wParam = 0; // not used; must be zero
     lParam = 0; // not used; must be zero
</span></pre>
            <span class="p9"><font face=verdana,arial,helvetica size=2><b><span class="p9">Returns</span></b></font></span><font face=verdana,arial,helvetica size=2><br>
            <span class="p9">The return value is the length, in characters, of 
            the text. </span></font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b class="p9">WM_INITDIALOG</b> </font> 
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> <span class="p9">The 
            WM_INITDIALOG message is sent to the dialog box procedure immediately 
            before a dialog box is displayed. Dialog box procedures typically 
            use this message to initialize controls and carry out any other initialization 
            tasks that affect the appearance of the dialog box. </span></font><span class="p9"><br>
            </span>
            <pre><span class="p9">
    hwndFocus = (HWND) wParam; // handle of control to receive focus
    lInitParam = lParam;       // initialization parameter
</span></pre>
            <span class="p9"><font face=verdana,arial,helvetica size=2><b><span class="p9">Returns</span></b></font></span><font face=verdana,arial,helvetica size=2 class="p9"><br>
            The dialog box procedure should return TRUE to direct Windows to set 
            the keyboard focus to the control given by hwndFocus. Otherwise, it 
            should return FALSE to prevent Windows from setting the default keyboard 
            focus. </font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b class="p9">WM_LBUTTONDBLCLK</b> </font> 
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> <span class="p9">The 
            WM_LBUTTONDBLCLK message is posted when the user double-clicks the 
            left mouse button while the cursor is in the client area of a window. 
            If the mouse is not captured, the message is posted to the window 
            beneath the cursor. Otherwise, the message is posted to the window 
            that has captured the mouse. </span></font><span class="p9"><br>
            </span>
            <pre><span class="p9">
     fwKeys = wParam;        // key flags
     xPos = LOWORD(lParam);  // horizontal position of cursor
     yPos = HIWORD(lParam);  // vertical position of cursor</span>
</pre>
            <font face=verdana,arial,helvetica size=2><b class="p9">Returns</b><br>
            <span class="p9">If an application processes this message, it should 
            return zero. </span></font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b class="p9">WM_LBUTTONDOWN</b> </font> 
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> <span class="p9">The 
            WM_LBUTTONDOWN message is posted when the user presses the left mouse 
            button while the cursor is in the client area of a window. If the 
            mouse is not captured, the message is posted to the window beneath 
            the cursor. Otherwise, the message is posted to the window that has 
            captured the mouse. </span></font><span class="p9"><br>
            </span>
            <pre><span class="p9">
     fwKeys = wParam;        // key flags
     xPos = LOWORD(lParam);  // horizontal position of cursor
     yPos = HIWORD(lParam);  // vertical position of cursor
</span></pre>
            <span class="p9"><font face=verdana,arial,helvetica size=2><b><span class="p9">Returns</span></b></font></span><font face=verdana,arial,helvetica size=2><br>
            <span class="p9">If an application processes this message, it should 
            return zero. </span></font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b class="p9">WM_LBUTTONUP</b> </font> 
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> The WM_LBUTTONUP message 
            is posted when the user releases the left mouse button while the cursor 
            is in the client area of a window. If the mouse is not captured, the 
            message is posted to the window beneath the cursor. Otherwise, the 
            message is posted to the window that has captured the mouse. </font><br>
            <pre>
     fwKeys = wParam;        // key flags
     xPos = LOWORD(lParam);  // horizontal position of cursor
     yPos = HIWORD(lParam);  // vertical position of cursor
</pre>
            <font face=verdana,arial,helvetica size=2><b>Returns</b><br>
            If an application processes this message, it should return zero. </font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b>WM_QUIT</b> </font>
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> The WM_QUIT message 
            indicates a request to terminate an application and is generated when 
            the application calls the PostQuitMessage function. It causes the 
            GetMessage function to return zero. </font><br>
            <pre>
     nExitCode = (int) wParam;   // exit code 
</pre>
            <font face=verdana,arial,helvetica size=2><b>Returns</b><br>
            This message does not have a return value, because it causes the message 
            loop to terminate before the message is sent to the application's 
            window procedure. </font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"><br>
      <br>
      <br>
      <b>WM_TIMER</b> </font>
      <hr width=100% size=1 color=#000000>
      <table border=0 cellpadding=4 cellspacing=0 bgcolor=#FFFF80 width=100%>
        <tr>
          <td> <font face=verdana,arial,helvetica size=2> <span class="p9">The 
            WM_TIMER message is posted to the installing thread's message queue 
            or sent to the appropriate TimerProc callback function after each 
            interval specified in the SetTimer function used to install a timer. 
            </span></font><span class="p9"><br>
            </span>
            <pre><span class="p9">
     wTimerID = wParam;            // timer identifier 
     tmprc = (TIMERPROC *) lParam; // address of timer callback
</span></pre>
            <span class="p9"><font face=verdana,arial,helvetica size=2><b><span class="p9">Returns</span></b></font></span><font face=verdana,arial,helvetica size=2><br>
            <span class="p9">An application should return zero if it processes 
            this message. </span></font></td>
        </tr>
      </table>
      <hr width=100% size=1 color=#000000>
      <font face="verdana,arial,helvetica" size="2"> </font></td>
  </tr>
</table>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#99CCFF" bordercolorlight="#99CCFF" bordercolordark="#99CCFF">
  <tr> 
    <td width="82%" class="p8" height="34">Copyright @看雪 2000 All rights reserved 
        <a href="mailto:toye@126.com">与我联系</a></td>
    <td width="10%" class="p9" height="34"><a href="index.htm" tppabs="http://toye.dihou.org/index.htm">返回<br>
      首页</a></td>
    <td width="8%" class="p8" height="34"><a href="molu.htm" tppabs="http://toye.dihou.org/molu.htm" class="p9">返回<br>
      目录</a></td>
  </tr>
</table>
<p> </p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -