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

Dynamic text on a dialog box

Status
Not open for further replies.

jdeejay

Programmer
Oct 5, 2001
44
US
Is there a way to put text that changes on the dialog box? ie, When the user picks an item from a combobox, I want to display that item along with other words as a caption to a listbox. An example: the user picks "Frank" from combo and then the caption(static txt box?) over the listbox says "Frank's choices"

Thanks
 
Remember that static text items and all other controls that go in your dialog box are just forms of windows. You can change the control title or static text by calling the item's SetWindowText() function. eg.

myStaticItem->SetWindowText("Hello World");

Hope this cures your problem!
 
Aahhh, silly me. I keep forgetting to follow up the chain to see what else I can do with those items.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top