text00018 html,a00866.html

Win32k: srvmsg.c 文件参考
Win32k

/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */

var searchBox = new SearchBox("searchBox", "search",false,'搜索');

/* @license-end */

/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */

$(function() {

initMenu('',true,false,'search.php','搜索');

$(document).ready(function() { init_search(); });

});

/* @license-end */

class="ui-resizable-handle">

/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */

$(document).ready(function(){initNavTree('a00866.html',''); initResizable(); });

/* @license-end */

οnmοuseοver="return searchBox.OnSearchSelectShow()"

οnmοuseοut="return searchBox.OnSearchSelectHide()"

οnkeydοwn="return searchBox.OnSearchSelectKey(event)">

name="MSearchResults" id="MSearchResults">

srvmsg.c 文件参考
#include "precomp.h"

#include <messages.h>

浏览源代码.

宏定义

#define SfnWMCTLCOLOR   SfnDWORD
 
#define SfnHFONTDWORDDWORD   SfnDWORD
 
#define SfnHFONTDWORD   SfnDWORD
 
#define SfnHRGNDWORD   SfnDWORD
 
#define SfnHDCDWORD   SfnDWORD
 
#define SfnDDEINIT   SfnDWORD
 
#define SfnHRGNDWORD   SfnDWORD
 
#define SfnKERNELONLY   SfnDWORD
 
#define MSGFN(func)   Sfn ## func
 
#define FNSCSENDMESSAGE   SFNSCSENDMESSAGE
 

函数

LONG SfnINLBOXSTRING (PWND pwnd, UINT msg, DWORD wParam, LONG lParam, DWORD xParam, PROC xpfn, DWORD dwSCMSFlags, PSMS psms)
 
LONG SfnOUTLBOXSTRING (PWND pwnd, UINT msg, DWORD wParam, LONG lParam, DWORD xParam, PROC xpfn, DWORD dwSCMSFlags, PSMS psms)
 
LONG SfnINCBOXSTRING (PWND pwnd, UINT msg, DWORD wParam, LONG lParam, DWORD xParam, PROC xpfn, DWORD dwSCMSFlags, PSMS psms)
 
LONG SfnOUTCBOXSTRING (PWND pwnd, UINT msg, DWORD wParam, LONG lParam, DWORD xParam, PROC xpfn, DWORD dwSCMSFlags, PSMS psms)
 

宏定义说明

◆ FNSCSENDMESSAGE

#define FNSCSENDMESSAGE   SFNSCSENDMESSAGE

在文件 srvmsg.c24 行定义.

◆ MSGFN

#define MSGFN( func)   Sfn ## func

在文件 srvmsg.c23 行定义.

◆ SfnDDEINIT

#define SfnDDEINIT   SfnDWORD

在文件 srvmsg.c19 行定义.

◆ SfnHDCDWORD

#define SfnHDCDWORD   SfnDWORD

在文件 srvmsg.c18 行定义.

◆ SfnHFONTDWORD

#define SfnHFONTDWORD   SfnDWORD

在文件 srvmsg.c16 行定义.

◆ SfnHFONTDWORDDWORD

#define SfnHFONTDWORDDWORD   SfnDWORD

在文件 srvmsg.c15 行定义.

◆ SfnHRGNDWORD [1/2]

#define SfnHRGNDWORD   SfnDWORD

在文件 srvmsg.c20 行定义.

◆ SfnHRGNDWORD [2/2]

#define SfnHRGNDWORD   SfnDWORD

在文件 srvmsg.c20 行定义.

◆ SfnKERNELONLY

#define SfnKERNELONLY   SfnDWORD

在文件 srvmsg.c21 行定义.

◆ SfnWMCTLCOLOR

#define SfnWMCTLCOLOR   SfnDWORD

在文件 srvmsg.c14 行定义.

函数说明

◆ SfnINCBOXSTRING()

LONG SfnINCBOXSTRING (PWND pwnd,
UINT msg,
DWORD wParam,
LONG lParam,
DWORD xParam,
PROC xpfn,
DWORD dwSCMSFlags,
PSMS psms 
)

在文件 srvmsg.c144 行定义.

153 {
154  DWORD dw;
155 
156  /*
157  * See if the control is ownerdraw and does not have the CBS_HASSTRINGS
158  * style. If so, treat lParam as a DWORD.
159  */
160  if (!RevalidateHwnd(HW(pwnd))) {
161  return 0L;
162  }
163  dw = pwnd->style;
164 
165  if (!(dw & CBS_HASSTRINGS) &&
166  (dw & (CBS_OWNERDRAWFIXED | CBS_OWNERDRAWVARIABLE))) {
167 
168  /*
169  * Treat lParam as a dword.
170  */
171  return SfnDWORD(pwnd, msg, wParam, lParam, xParam, xpfn, dwSCMSFlags, psms);
172  }
173 
174  /*
175  * Treat as a string pointer. Some messages allowed or had certain
176  * error codes for NULL so send them through the NULL allowed thunk.
177  * Ventura Publisher does this
178  */
179  switch (msg) {
180  default:
181  return SfnINSTRING(pwnd, msg, wParam, lParam, xParam, xpfn, dwSCMSFlags, psms);
182  break;
183 
184  case CB_FINDSTRING:
185  return SfnINSTRINGNULL(pwnd, msg, wParam, lParam, xParam, xpfn, dwSCMSFlags, psms);
186  break;
187  }
188 }

引用了 DWORD, tagSMS::lParam , 以及 tagSMS::wParam.

◆ SfnINLBOXSTRING()

LONG SfnINLBOXSTRING (PWND pwnd,
UINT msg,
DWORD wParam,
LONG lParam,
DWORD xParam,
PROC xpfn,
DWORD dwSCMSFlags,
PSMS psms 
)

在文件 srvmsg.c36 行定义.

45 {
46  DWORD dw;
47 
48  /*
49  * See if the control is ownerdraw and does not have the LBS_HASSTRINGS
50  * style. If so, treat lParam as a DWORD.
51  */
52  if (!RevalidateHwnd(HW(pwnd))) {
53  return 0L;
54  }
55  dw = pwnd->style;
56 
57  if (!(dw & LBS_HASSTRINGS) &&
58  (dw & (LBS_OWNERDRAWFIXED | LBS_OWNERDRAWVARIABLE))) {
59 
60  /*
61  * Treat lParam as a dword.
62  */
63  return SfnDWORD(pwnd, msg, wParam, lParam, xParam, xpfn, dwSCMSFlags, psms);
64  }
65 
66  /*
67  * Treat as a string pointer. Some messages allowed or had certain
68  * error codes for NULL so send them through the NULL allowed thunk.
69  * Ventura Publisher does this
70  */
71  switch (msg) {
72  default:
73  return SfnINSTRING(pwnd, msg, wParam, lParam, xParam, xpfn, dwSCMSFlags, psms);
74  break;
75 
76  case LB_FINDSTRING:
77  return SfnINSTRINGNULL(pwnd, msg, wParam, lParam, xParam, xpfn, dwSCMSFlags, psms);
78  break;
79  }
80 }

引用了 DWORD, tagSMS::lParam , 以及 tagSMS::wParam.

◆ SfnOUTCBOXSTRING()

LONG SfnOUTCBOXSTRING (PWND pwnd,
UINT msg,
DWORD wParam,
LONG lParam,
DWORD xParam,
PROC xpfn,
DWORD dwSCMSFlags,
PSMS psms 
)

在文件 srvmsg.c200 行定义.

209 {
210  DWORD dw;
211  BOOL bNotString;
212  DWORD dwRet;
213  TL tlpwnd;
214 
215  /*
216  * See if the control is ownerdraw and does not have the CBS_HASSTRINGS
217  * style. If so, treat lParam as a DWORD.
218  */
219 
220  if (!RevalidateHwnd(HW(pwnd))) {
221  return 0L;
222  }
223  dw = pwnd->style;
224 
225  bNotString = (!(dw & CBS_HASSTRINGS) &&
226  (dw & (CBS_OWNERDRAWFIXED | CBS_OWNERDRAWVARIABLE)));
227 
228  /*
229  * Make this special call which'll know how to copy this string.
230  */
231  ThreadLock(pwnd, &tlpwnd);
232  dwRet = ClientGetListboxString(pwnd, msg, wParam,
234  xParam, xpfn, dwSCMSFlags, bNotString, psms);
235  ThreadUnlock(&tlpwnd);
236  return dwRet;
237 }

引用了 ClientGetListboxString(), DWORD, tagSMS::lParam, ThreadLock() , 以及 tagSMS::wParam.

◆ SfnOUTLBOXSTRING()

LONG SfnOUTLBOXSTRING (PWND pwnd,
UINT msg,
DWORD wParam,
LONG lParam,
DWORD xParam,
PROC xpfn,
DWORD dwSCMSFlags,
PSMS psms 
)

在文件 srvmsg.c92 行定义.

101 {
102  DWORD dw;
103  BOOL bNotString;
104  DWORD dwRet;
105  TL tlpwnd;
106 
107  /*
108  * See if the control is ownerdraw and does not have the LBS_HASSTRINGS
109  * style. If so, treat lParam as a DWORD.
110  */
111  if (!RevalidateHwnd(HW(pwnd))) {
112  return 0L;
113  }
114  dw = pwnd->style;
115 
116  /*
117  * See if the control is ownerdraw and does not have the LBS_HASSTRINGS
118  * style. If so, treat lParam as a DWORD.
119  */
120  bNotString = (!(dw & LBS_HASSTRINGS) &&
121  (dw & (LBS_OWNERDRAWFIXED | LBS_OWNERDRAWVARIABLE)));
122 
123  /*
124  * Make this special call which'll know how to copy this string.
125  */
126  ThreadLock(pwnd, &tlpwnd);
127  dwRet = ClientGetListboxString(pwnd, msg, wParam,
129  xParam, xpfn, dwSCMSFlags, bNotString, psms);
130  ThreadUnlock(&tlpwnd);
131  return dwRet;
132 }

引用了 ClientGetListboxString(), DWORD, tagSMS::lParam, ThreadLock() , 以及 tagSMS::wParam.

DWORD lParam
Definition: userk.h:2611
VOID ThreadLock(PVOID pobj, PTL ptl)
ddeml v[i< inst >][t< type >][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t< type > lists all ddeml objects of the given type n n assumes link is first DWORD
Definition: exts.h:175
_TL
Definition: usercli.h:347
DWORD ClientGetListboxString(PWND hwnd, UINT msg, DWORD wParam, PVOID lParam, DWORD xParam, PROC xpfn, DWORD dwSCMSFlags, BOOL bNotString, PSMS psms)
DWORD wParam
Definition: userk.h:2610

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值