我正在尝试在 Delphi 2010 中将表单置于“帮助模式”。
我有一个用户单击的按钮,我希望光标变为帮助光标,然后当用户单击控件时,显示该控件的帮助
是否有我可以发送的窗口消息?
最佳答案
发送WM_SYSCOMMAND
将 SC_CONTEXTHELP
作为 lParam
传递给表单的消息。
Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
在你的按钮 OnClick
事件处理程序中写这样的东西:
procedure TMyForm.Button1Click(Sender: TObject);
begin
SendMessage(Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0);
end;
关于windows - 如何将表格置于帮助模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9212917/