Edit controls

This is a discussion on Edit controls within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'd just like to know how to ADD text into an edit control (in a dialog box). I've tried ...

  1. #1
    Yatta
    Guest

    Edit controls

    Hi, I'd just like to know how to ADD text into an edit control (in a dialog box). I've tried using SetDlgItemText() but that takes away what you previously had in the edit control.

    Thanks heaps!

  2. #2
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    I know of EditPrintf(), but thats only for the use with child windows, not dialog box controls...

  3. #3
    Yatta
    Guest
    Thanks for replying...

    ...but has anybody got a similar function that works with dialog box controls? I would be VERY thankful if anybody could help!

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Could GetDlgItemText()
    then strcat() or sprintf() ect both to one string, then SetDlgItemText()
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating an Edit Box (Subclassing)
    By csonx_p in forum Windows Programming
    Replies: 9
    Last Post: 05-05-2008, 07:36 AM
  2. Multiline Edit Box Parser
    By The Brain in forum Windows Programming
    Replies: 6
    Last Post: 11-01-2005, 07:15 PM
  3. Subclassing controls
    By filler_bunny in forum Windows Programming
    Replies: 3
    Last Post: 04-28-2004, 06:43 PM
  4. Dialog Edit Control and Enter Key
    By Quantrizi in forum Windows Programming
    Replies: 2
    Last Post: 04-14-2004, 08:59 AM
  5. Difficulty superclassing EDIT window class
    By cDir in forum Windows Programming
    Replies: 7
    Last Post: 02-21-2002, 05:06 PM

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