Adding to strings..

This is a discussion on Adding to strings.. within the Windows Programming forums, part of the Platform Specific Boards category; I have one EDIT box. I want to get the current text and add new text to it. How would ...

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

    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?
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    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
    Posts
    3,230
    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, 05:48 PM
  2. Adding Strings to ListBox in a Dialog
    By kevins963 in forum C Programming
    Replies: 5
    Last Post: 09-10-2008, 05:36 PM
  3. adding strings?
    By Led4urhead123 in forum C++ Programming
    Replies: 2
    Last Post: 07-10-2008, 04:13 PM
  4. adding strings hard problem...
    By qubit67 in forum C Programming
    Replies: 28
    Last Post: 04-22-2007, 03:02 AM
  5. SVN Import Causes Crash
    By Tonto in forum Tech Board
    Replies: 6
    Last Post: 11-01-2006, 03:44 PM

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