Thread: Edit controls

  1. #1

    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
    I know of EditPrintf(), but thats only for the use with child windows, not dialog box controls...

  3. #3
    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
    near a computer
    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, 06: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, 05:43 PM
  4. Dialog Edit Control and Enter Key
    By Quantrizi in forum Windows Programming
    Replies: 2
    Last Post: 04-14-2004, 07:59 AM
  5. Difficulty superclassing EDIT window class
    By cDir in forum Windows Programming
    Replies: 7
    Last Post: 02-21-2002, 05:06 PM