cyprus106
Programmer
- Apr 30, 2001
- 654
I've got a bit of a problem. I have a few controls that are supposed to pop up where the cursor is in a RichEdit. For example, when you type "Feb" in Microsoft Word, a hint pops up saying "February" directly underneath the cursor. I can do this all fine and dandy underneath a button or something by using this code:
RECT Popup;
if (GetWindowRect(Button1->Handle, &Popup))
{
MyPopup->Left = Popup.left;
MyPopup->Top = Popup.bottom;
MyPopup->Show();
}
That will put MyPopup below Button1. I need a popup to fall below the cursor position in a RichEdit. I tried a few things but for the most part, failed miserably. I really hope someone here can help me, as my ideas are a bit exhausted.
Thanks, Cyprus
RECT Popup;
if (GetWindowRect(Button1->Handle, &Popup))
{
MyPopup->Left = Popup.left;
MyPopup->Top = Popup.bottom;
MyPopup->Show();
}
That will put MyPopup below Button1. I need a popup to fall below the cursor position in a RichEdit. I tried a few things but for the most part, failed miserably. I really hope someone here can help me, as my ideas are a bit exhausted.
Thanks, Cyprus