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;
}
我找到答案了。。希望其他兄弟可以学习下。