Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RichEdit and Height\Width

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top