〔求助〕关于SendMessage

no_bug 2005-06-06 02:05:18
1)控制其他程序选择某项 Combox内容的时候,现在已经获得Combox控件的窗口句柄hIDCwnd,怎样用SendMessage实现呀?
2)怎样实现Tab页面的选择?

...全文
152 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
no_bug 2005-06-08
  • 打赏
  • 举报
回复
问题已经解决
no_bug 2005-06-08
  • 打赏
  • 举报
回复
刷一下,继续求解
Combox选择项目的改变要如何通知父窗口呀???
jerry 2005-06-07
  • 打赏
  • 举报
回复
1) SendMessage(hWnd,CB_SETCURSEL,isel, 0);

2) SendMessage(hTab,TCM_SETCURSEL,isel, 0);
DRACULAX05 2005-06-07
  • 打赏
  • 举报
回复
你干脆自己定义一个消息发过去算了
no_bug 2005-06-07
  • 打赏
  • 举报
回复
自己顶一把
no_bug 2005-06-07
  • 打赏
  • 举报
回复
krh2001(边城浪子) ( )
我在网上查的Combox消息有CBN_SELCHANGE和CBN_SELENDOK,从Spy里面监视的选择消息是CB_GETCURSEL

利用SendMessage(hWnd,CB_SETCURSEL,2,0)也没有实现改变选择的,要如何做呀

palmax 2005-06-06
  • 打赏
  • 举报
回复
在comobox上点右键,选event,然后添加SELCHANGE 事件,即可对选项更改的消息进行处理
no_bug 2005-06-06
  • 打赏
  • 举报
回复
To palmax(南宫煌) :你贴出来的这些我都知道,我想获取的信息是
1)ComBox选项更改的消息如何实现,已知 Combox改动
SendMessage(HWND,CBN_SELCHANGE,WPARAM,LPARAM);
2)Tab页面改动如何实现
palmax 2005-06-06
  • 打赏
  • 举报
回复
The SendDlgItemMessage function sends a message to the specified control in a dialog box.

Syntax

LRESULT SendDlgItemMessage(HWND hDlg,
int nIDDlgItem,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
Parameters

hDlg
[in] Handle to the dialog box that contains the control.
nIDDlgItem
[in] Specifies the identifier of the control that receives the message.
Msg
[in] Specifies the message to be sent.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.
Return Value

The return value specifies the result of the message processing and depends on the message sent.


15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧