CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Very simple question

    I'm just making my first attempts with Visual C++ (6.0).
    I'm using MFC AppWizard to make a dialog box with a button and an edit field.
    I want that when user press the button a string "Hello" appears in the edit field.
    That's it.
    Maybe I have to use SetWindowText but I don't know how to refer to the edit field.
    Can you help me please?
    Thank you!


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Very simple question

    With the classwizard (View menu) you can link a membervariable to your EditBox. Fill that variable
    in the OnClick of the button and call the UpdateData-method(with parameter FALSE) from the dialog. That should do it.


  3. #3
    Guest

    Re: Very simple question

    Thank you very much, it works!!!
    Ciao.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured