C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 9th, 2004, 12:58 PM
deep_phreeze deep_phreeze is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 deep_phreeze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation C++ message boxes

Could anyone tell me how to make a simple message box in C++, along with all the button and
icon posibilites? Maybe even be able to determine the button pressed? please. i need help..

Reply With Quote
  #2  
Old June 9th, 2004, 03:58 PM
_julien_ _julien_ is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 11 _julien_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
here's an example:

MessageBox(NULL, "hello", "bonjour(s)", MB_OK);

This code diplays a message box with title "bonjour(s)"
and text "hello".
The last argument will determine which 'type' of message
box will be display. Here MB_OK means only with the OK
button. You can ahve also the CANCEL button by passing
MB_OKCANCEL.
To know which one was clicked you can check the result
of the function call.
for instance:
if (MessageBox(NULL, "fromat c: ?", "bonjour(s)", MB_OK)
== IDOK)
{
// button ok has been pressed
}
You can check all the macros in the msdn
http://msdn.microsoft.com/library/d.../messagebox.asp

--
julien barbier

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > C++ message boxes


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap