C++ builder 怎么实现不弹窗的精确提示
点击按钮后,某个特定编辑框(或者其他控件)能够有个提示(不弹出窗口)。不是使用showmessage()之类的弹出窗口。
小弟在这先谢过各位了。 提示
[解决办法]
void __fastcall TForm1::Button1Click(TObject *Sender)
{
THintWindow *hw;
TRect rect(
Mouse->CursorPos.x,
Mouse->CursorPos.y+25,
Mouse->CursorPos.x+200,
Mouse->CursorPos.y+50
);
hw = new THintWindow(Application);
hw->ActivateHint(rect,"hello!");
Sleep(2000);
delete hw;
}