|
-
April 21st, 1999, 10:18 PM
#1
Setting Control Properties
Hi, I am a VB programmer learning MFC.
I have a label on a dialog I have a button on a dialog. When I click the button I want to change the caption of the label. What is the syntax?
I have tried the following.
CString temp = "New Caption.";
label1.Caption = temp;
The line "label1.Caption = temp;" causes a compile error because I do not have a class name in front of it. My dialog is named form1. I have tried:
Form1::label1.caption = temp;
This produces even more compiler errors.
Can any of you Gurus convert this simple VB statement to MFC?
Form1.Label1.Caption = temp
Thank You
Hexie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|