simple text dialog ok cancel

This is a discussion on simple text dialog ok cancel within the Windows Programming forums, part of the Platform Specific Boards category; I don't want to read three hundred msdn pages, I just want to know how to create a simple text ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

    simple text dialog ok cancel

    I don't want to read three hundred msdn pages, I just want to know how to create a simple text box [like the run box, i suppose] in which the user can type something [like hello, i suppose] and then press okay [with the mouse, i suppose] and I'd like to then go on to use the string they entered in my program [like for a computer, i suppose]

    something like

    Code:
    char stringy[BUFSIZ];
    
    showSuperMegaTextWindow(stringy);
    
    MessageBox(NULL,stringy,stringy,0);

    except [i suppose] it would probably be more complicated

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Tip: Sooner or later you re going to have to learn to RTFM, you may as well get used to it now, before you're life depends on it.

    Topics for research: Dialog boxes, edit controls, button controls, GetDlgItemText() API function.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 06:26 PM
  2. Automatically enter text in a dialog box
    By leojose in forum Windows Programming
    Replies: 6
    Last Post: 12-13-2005, 11:59 AM
  3. Help on simple text console prog...
    By Azh321 in forum C++ Programming
    Replies: 2
    Last Post: 11-26-2003, 07:03 AM
  4. Simple method of coloured text?
    By SPiRiToFCaT in forum C++ Programming
    Replies: 3
    Last Post: 09-04-2002, 10:46 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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