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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I make this edit box

Status
Not open for further replies.

koeicjm

Programmer
Sep 12, 2001
73
JP
I want to make an edit control like the edit box of the excel which is at the tools bar . when input words are longer than the length of the line ,it can resize the edit box , how can I do it?
 
On EN_UPDATE, use GetTextExtentPoint32 to determine the length of the content, then resize it accordingly with SetWindowPos.

[sub]I REALLY hope that helps.[/sub]
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top