GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Apr-2005, 04:11
Kobza Kobza is offline
New Member
 
Join Date: Apr 2005
Posts: 2
Kobza is on a distinguished road
Exclamation

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  
Old 24-Apr-2005, 04:46
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
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  
Old 24-Apr-2005, 16:42
Kobza Kobza is offline
New Member
 
Join Date: Apr 2005
Posts: 2
Kobza is on a distinguished road
Do I use a list box???
  #4  
Old 26-Apr-2005, 05:37
Janakiraman Janakiraman is offline
Junior Member
 
Join Date: Apr 2005
Location: Chennai - India
Posts: 47
Janakiraman is on a distinguished road

Re:Display Text


Hi,

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  
Old 26-Apr-2005, 05:47
rdrast rdrast is offline
New Member
 
Join Date: Apr 2005
Posts: 22
rdrast is on a distinguished road
You can also just use a static text item, and change it on the fly at need.
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 04:41.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.