Results 1 to 6 of 6

Thread: MessageBox

  1. #1

    Thread Starter
    Lively Member slx47's Avatar
    Join Date
    Apr 2002
    Location
    US
    Posts
    127

    MessageBox

    where in the win32 code do u insert a messagebox command. Im not sure where to put the code. Does anyone know where it goes or do u create your own function ?

    I should mension that im not using microsofts compiler, im using dev c++.
    Last edited by slx47; Apr 28th, 2002 at 07:52 PM.

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    well it depends when you want to have a messagebox appear...ifi you want it on the startup of your program put it right before your message loop

  3. #3
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    If you are asking what function to use to show a message box then here is an example:
    PHP Code:
    MessageBox(NULL"Hello Dude!""My Caption"MB_OK); 
    Baaaaaaaaah

  4. #4
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166
    What's the difference between MessageBox and MessageBoxEx?
    [p r a e t o r i a n]

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    MessageBoxEx has the additional langID parameter which you can use to specify the language of the message box buttons.

    The mightiest of the MessageBox* functions is MessageBoxIndirect, where you can use string resources for the caption and text, specify your own icon, use context help and a language identifier.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166
    ok, thanks
    I'll try that MessageBoxIndirect and if I'll have any problems, I know who to turn to
    [p r a e t o r i a n]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width