I'am trying to convert a string length from a text control into the textbox's physical cordinates so that I can pop-up a listbox just to the right of the user text entry.<br>
What I have tryed is to.<br>
1. Get the device context for the textbox, GetDC<br>
2. Get the text extents using GetTextPoint32<br>
3. Show the listbox at the text controls left property plus the text extent.<br>
I guess what I'am after is how to convert the textbox's devices's logical cordinates into the textbox's physical cordinates<br>
any help would be greatly appreciated, if I'am on the wrong track please give me some sugestions.<br>
Thanks<br>
<br>
What I have tryed is to.<br>
1. Get the device context for the textbox, GetDC<br>
2. Get the text extents using GetTextPoint32<br>
3. Show the listbox at the text controls left property plus the text extent.<br>
I guess what I'am after is how to convert the textbox's devices's logical cordinates into the textbox's physical cordinates<br>
any help would be greatly appreciated, if I'am on the wrong track please give me some sugestions.<br>
Thanks<br>
<br>