Newbie Question!

Posted on 2001-06-15
Last Modified: 2013-11-20

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??



Question by:RichJackson

Accepted Solution

aponcealbuerne earned 20 total points
ID: 6196201
call UpdateData(FALSE);
hope helps...

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now