Getting data from Dialog Box Controls

This is a discussion on Getting data from Dialog Box Controls within the Windows Programming forums, part of the Platform Specific Boards category; I made a dialog box that the user needs to fill in with their information. I need to know how ...

  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
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    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 06: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, 04:45 AM
  2. A problem with a modal dialog box
    By Hussain Hani in forum Windows Programming
    Replies: 2
    Last Post: 08-12-2008, 11: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, 07:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21