Thread: Adding to strings..

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001

    Question Adding to strings..

    I have one EDIT box. I want to get the current text and add new text to it. How would I go about doing that?


    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    first get the text already there with GetWindowText() then sprintf() what you want to put there onto the buffer you used to get the text, then use SetWindowText() to set it back into the edit box.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with adding strings into ComboBox using Window Handle
    By jasperleeabc in forum Windows Programming
    Replies: 7
    Last Post: 05-05-2009, 04:48 PM
  2. Adding Strings to ListBox in a Dialog
    By kevins963 in forum C Programming
    Replies: 5
    Last Post: 09-10-2008, 04:36 PM
  3. adding strings?
    By Led4urhead123 in forum C++ Programming
    Replies: 2
    Last Post: 07-10-2008, 03:13 PM
  4. adding strings hard problem...
    By qubit67 in forum C Programming
    Replies: 28
    Last Post: 04-22-2007, 02:02 AM
  5. SVN Import Causes Crash
    By Tonto in forum Tech Board
    Replies: 6
    Last Post: 11-01-2006, 03:44 PM