How to change statit text in dialog box 
Author Message
 How to change statit text in dialog box

Hello!

I wonder if it's possible to change the text in Static Text or a Edit
Box in a dialog box?
I'm not using any MFC-classes, I'm just gonna use the dialog box for
debug purposes so I want to
assign a string to the Static Text at run time.

Thanks in advance.



Sun, 15 Aug 2004 05:16:08 GMT  
 How to change statit text in dialog box
SetDlgItemText
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Quote:
> Hello!

> I wonder if it's possible to change the text in Static Text or a Edit
> Box in a dialog box?
> I'm not using any MFC-classes, I'm just gonna use the dialog box for
> debug purposes so I want to
> assign a string to the Static Text at run time.

> Thanks in advance.



Sun, 15 Aug 2004 06:43:47 GMT  
 How to change statit text in dialog box
Give the control an ID (e.g., IDC_NAME_TITLE) instead of ID_STATIC (-1) and
then post or send a WM_SETTEXT message to it just like you would any other
window.

Tom


Quote:
> Hello!

> I wonder if it's possible to change the text in Static Text or a Edit
> Box in a dialog box?
> I'm not using any MFC-classes, I'm just gonna use the dialog box for
> debug purposes so I want to
> assign a string to the Static Text at run time.

> Thanks in advance.



Sun, 15 Aug 2004 07:03:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to change the color,size,font of text in a dialog box

2. Changing text in dialog box

3. How to change the color,size,font of text in a dialog box

4. Q: Changing a dialog box's title text

5. changing the font for text items in a dialog box

6. Dynamically changing text of a menu in a Dialog box

7. Change the background color of a dialog box and change text color of Edit Box, Static Text, Rich Edit

8. Changing Rich Text Box : Text

9. Wrapping text in text box or edit box

10. changing ont of text box

11. Changing the Font in a text box

12. Changing text color in a CEdit box

 

 
Powered by phpBB® Forum Software