vb 有关SendMessage函数中参数wMsg的问题

来源:百度知道 编辑:UC知道 时间:2024/09/25 07:34:02
在SendMessage函数
wMsg 表示被发送的消息。根据具体需求和不同的对象,将不同的消息作为实参传送,以产生预期的动作
自动拉出下拉列表 Const CB_SHOWDROPDOWN=&H14F
添加水平滚动条,const LB_SETHORIZONTALEXTENT=&H194
我想问的是等号右边的怎么理解?&H14F、&H194 看不懂 这些从那里可查到的? 谢谢各位

SendMessage 是 API 函数 吧

都是些 定义 的 常数

&H 不是 16进制数

CWindow::SendMessage
LRESULT SendMessage( UINT message, WPARAM wParam = 0, LPARAM lParam = 0 );

static LRESULT SendMessage( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )

SeeSendMessage in the Win32 SDK.

Remarks

Sends a message to the window and does not return until the window procedure has processed the message.

&=就是两个数先做与操作 然后赋值