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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

752 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