![]() |
|
#1
|
|||
|
|||
Simple Data Display, URGENT!Hello everybody,
I'm a new member to this forum, but have browsed before - and of course, gotten lots of helpful information. So in advance, I just wanted to say thanks to all you who are way smarter than I. I'm a somewhat experienced programmer, but never anything big in Visual C++ before.Here's my problem. I have to have a program done tomorrow, which I'm in pretty good shape on, except for one thing. I want to be able to display a string of data somewhere on my dialog box. I need something really simple, it doesn't have to do anything but show up. Let's say for instance I have a very simple dialog box with one button. If that button is clicked, I want "Hello World!" to be displayed somewhere (not a new window). I know this is an easy question, but it's late, and I'm feeling stupid. I am using Visual C++ 6.0. Thank you in advance for any help. |
|
#2
|
||||
|
||||
|
I'd be happy to help, but I am only familiar with Borland C++ Builder's designer. Try searching the Microsoft Developer Network at www.msdn.com
__________________
-Aaron |
|
#3
|
|||
|
|||
|
Do I use a list box???
|
|
#4
|
|||
|
|||
Re:Display TextHi,
you can do this in just 2 lines of code... //////////////////////////////////// CClientDC dc(this); dc.DrawText("Hellow Window",CRect(0,0,50,50),DT_CENTER ); /////////////////////////////////////// write this code in your button handling function. Best Regards, Janakiraman |
|
#5
|
|||
|
|||
|
You can also just use a static text item, and change it on the fly at need.
|
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Urgent ! Pls Help Me ! | mycashmoney | C Programming Language | 4 | 01-Jul-2006 23:49 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 14:12 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The