Thread: Getting data from Dialog Box Controls

  1. #1
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532

    Getting data from Dialog Box Controls

    I made a dialog box that the user needs to fill in with their information. I need to know how to retrieve this info from the Dialog Box Control. I am using two EDITTEXT Controls that the user types into. For child windows I would use GetWindowText if the child window was an EDIT box, since this is a control I doubt that will work. Is there some kind of macro or function for this kind of thing? Thanks.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    The GetDlgItem and GetDlgItemText functions may help.

  3. #3
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Thanks, that's exactly what I needed.
    Last edited by jmd15; 08-05-2005 at 05:37 PM. Reason: Figured it out
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  2. A problem with a modal dialog box
    By Hussain Hani in forum Windows Programming
    Replies: 2
    Last Post: 08-12-2008, 10:30 AM
  3. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-08-2007, 12:24 AM
  4. Click button on dialog box to open window.
    By ooosawaddee3 in forum Windows Programming
    Replies: 1
    Last Post: 11-29-2002, 08:53 AM
  5. Simple Dialog Box (noob)
    By tegwin in forum Windows Programming
    Replies: 6
    Last Post: 06-30-2002, 06:04 PM