1)控制其他程序选择某项 Combox内容的时候,现在已经获得Combox控件的窗口句柄hIDCwnd,怎样用SendMessage实现呀?
2)怎样实现Tab页面的选择?
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.
1) SendMessage(hWnd,CB_SETCURSEL,isel, 0);
2) SendMessage(hTab,TCM_SETCURSEL,isel, 0);
你干脆自己定义一个消息发过去算了