Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Newbie Question!

Posted on 2001-06-15
2
Medium Priority
?
151 Views
Last Modified: 2013-11-20
Hi,

I am new to MFC and VC.

Just playing around with the Class Wizzard and resource editor.

What i want is to be able to responsd to a button press changing a piece of static text.

I have seup a member varible for DDX with the static text.

When the dialog is show the Static text is initially blank?

And when i set the member varible in reponse to a button been clicked there is no change.

Anyone know where i am going wrong??

Thanks

Rich

0
Comment
Question by:RichJackson
2 Comments
 
LVL 4

Accepted Solution

by:
aponcealbuerne earned 60 total points
ID: 6196201
call UpdateData(FALSE);
hope helps...
0
 
LVL 3

Expert Comment

by:GlennDean
ID: 6197275
UpdateData(FALSE) is right.  
Your handler for the button should look something like

void CMyDlg::OnButton1()
{
  m_Text="Hi World";  //Added m_Text DDX variable for static text
  UpdateData(FALSE);
}
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question