C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2002, 04:52 PM   #1
Registered User
 
Join Date: Jan 2002
Location: Cardiff
Posts: 2,219
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
Brian is offline   Reply With Quote
Old 02-12-2002, 02:20 AM   #2
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
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.
adrianxw is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically enter text in a dialog box leojose Windows Programming 6 12-13-2005 11:59 AM
creating very simple text editor using c if13121 C Programming 6 11-25-2004 09:49 AM
Help on simple text console prog... Azh321 C++ Programming 2 11-26-2003 07:03 AM
Simple method of coloured text? SPiRiToFCaT C++ Programming 3 09-04-2002 09:46 PM
Tab Controls - API -KEN- Windows Programming 7 06-02-2002 09:44 AM


All times are GMT -6. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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