📄 lesson93.htm
字号:
<html>
<head>
<title>看雪学苑</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.p8 { font-size: 8pt}
.p9 { font-size: 9pt}
a:hover { color: #00FF00}
a { text-decoration: none}
.p12 { font-size: 12pt; font-weight: bold; color: #FF3333}
-->
</style>
</head>
<body bgcolor="#FFFFFF" vlink="#000000">
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#99CCFF" bordercolorlight="#99CCFF" bordercolordark="#99CCFF">
<tr>
<td width="72%" class="p9"><a href="javascript:if(confirm('http://toye.yeah.net/ \n\n这个文件不能通过 Teleport Pro 取回, 因为 它被访问于一个域或在它的起始地址边界外部的路径上. \n\n你想从服务器打开它吗?'))window.location='http://toye.yeah.net/'" tppabs="http://toye.yeah.net/">看雪教学</a></td>
<td width="10%" class="p9"> </td>
<td width="10%"><a href="index.htm" tppabs="http://toye.dihou.org/index.htm" class="p9">返回<br>
首页 <br>
</a></td>
<td width="8%"><a href="molu.htm" tppabs="http://toye.dihou.org/molu.htm" class="p9">返回<br>
目录 </a></td>
</tr>
</table>
<table width="80%" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor="#FFFF33">
<td>
<div align="center"><span class="p"><span class="p12">第九课<font color="#FF3333">
</font></span><span class="p"><span class="p11"><font color="#0099FF"><b class="p11"><font color="#FF3333">Win
API函数与断点设置</font></b></font></span></span><span class="p12"><font color="#FF3333"><b></b></font></span></span></div>
</td>
</tr>
</table>
<table width="80%" cellspacing="0" align="center">
<tr class="p9">
<td width="33%" bgcolor="#CCFFFF">
<div align="center">第一节 <a href="lesson9100.htm" tppabs="http://toye.dihou.org/lesson9100.htm">Win API函数</a></div>
</td>
<td width="33%" bgcolor="#CCFFFF">
<div align="center">第二节 <a href="lesson92.htm" tppabs="http://toye.dihou.org/lesson92.htm">断点设置列表</a></div>
</td>
<td width="34%" bgcolor="#FFFFFF">
<div align="center">第三节 常用Window消息</div>
</td>
</tr>
</table>
<div align="center"><br>
<span class="p9"><b><font size="3">Window-Messages for Crackers</font></b></span><font size="3"><span class="p9">
</span></font><span class="p9"><br>
(摘自:cRACKER's n0TES)</span><br>
<br>
</div>
<hr width=100% size=1 color=#000000>
<table border=0 cellspacing=0 cellpadding=3 width=100%>
<tr>
<td> <font face="verdana,arial,helvetica" size="2"><b><span class="p9">WM_ACTIVATE</span></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_ACTIVATE message is sent when a window is being activated or deactivated.
This message is sent first to the window procedure of the top-level
window being deactivated; it is then sent to the window procedure
of the top-level window being activated.</span></font><span class="p9"><br>
</span>
<pre><span class="p9">
fActive = LOWORD(wParam); // activation flag
fMinimized = (BOOL) HIWORD(wParam); // minimized flag
hwnd = (HWND) lParam; // window handle
</span></pre>
<span class="p9"><span class="p9"><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></span></span></td>
</tr>
</table>
<hr width=100% size=1 color=#000000>
<font face="verdana,arial,helvetica" size="2"><br>
<br>
<br>
<b class="p9">WM_CLEAR</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_CLEAR message to an edit control or combo box
to delete (clear) the current selection, if any, from the edit control.
</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 class="p9">Returns</b><br>
<span class="p9">This message does not return a value. </span></font></span></td>
</tr>
</table>
<hr width=100% size=1 color=#000000>
<font face="verdana,arial,helvetica" size="2"><br>
<br>
<br>
<b class="p9">WM_CLOSE</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_CLOSE message is sent as a signal that a window or an application
should terminate. </span></font><span class="p9"><br>
</span>
<pre>
</pre>
<span class="p9"><font face=verdana,arial,helvetica size=2><b>Returns</b><br>
If an application processes this message, it should return zero. </font></span></td>
</tr>
</table>
<hr width=100% size=1 color=#000000>
<font face="verdana,arial,helvetica" size="2"><br>
<br>
<br>
<b class="p9">WM_COMMAND</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_COMMAND message is sent when the user selects a command item from
a menu, when a control sends a notification message to its parent
window, or when an accelerator keystroke is translated. </span></font><span class="p9"><br>
</span>
<pre><span class="p9">
wNotifyCode = HIWORD(wParam); // notification code
wID = LOWORD(wParam); // item, control, or accelerator identifier
hwndCtl = (HWND) lParam; // handle of control
</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_CREATE</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_CREATE message is sent when an application requests that a window
be created by calling the CreateWindowEx or CreateWindow function.
The window procedure of the new window receives this message after
the window is created, but before the window becomes visible. The
message is sent before the CreateWindowEx or CreateWindow function
returns. </span></font><span class="p9"><br>
</span>
<pre><span class="p9">
lpcs = (LPCREATESTRUCT) lParam; // structure with creation data
</span></pre>
<span class="p9"><font face=verdana,arial,helvetica size=2><b class="p9">Returns</b><br>
<span class="p9">If an appli<span class="p9">c</span></span></font></span><span class="p9"><span class="p9"><font face=verdana,arial,helvetica size=2><span class="p9">ation<span class="p9">
pro</span>cesses this message, it should return 0 to continue creation
of the window. If the application r<span class="p9">et</span></span><span class="p9">urns
-1, the window is destroyed and the CreateWindowEx or CreateWindow
function returns a NULL handle. </span></font></span></span></td>
</tr>
</table>
<hr width=100% size=1 color=#000000>
<font face="verdana,arial,helvetica" size="2"><br>
<br>
<br>
<b class="p9">WM_DESTROY</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_DESTROY message is sent when a window is being destroyed. It is
sent to the window procedure of the window being destroyed after the
window is removed from the screen.<br>
<br>
This message is sent first to the window being destroyed and then
to the child windows <i>(if any)</i> as they are destroyed. During
the processing of the message, it can be assumed that all child windows
still exist. </span></font><span class="p9"><br>
</span>
<pre>
</pre>
<span class="p9"><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></span></td>
</tr>
</table>
<hr width=100% size=1 color=#000000>
<font face="verdana,arial,helvetica" size="2"><br>
<br>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -