Computing.Net > Forums > Programming > C++ MessageBox Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

C++ MessageBox Help

Reply to Message Icon

Name: unityzero
Date: April 11, 2004 at 03:27:28 Pacific
OS: WinXP
CPU/Ram: 2ghz 1gb
Comment:

Ive started learning C++ and ive managed to make a few popup windows work, ive managed to use icons and i know how to set the different buttons for it, but id like to know how i can change the position of the messagebox, ive seen how to do it with application boxes from a tutorial, but i cant incorporate the code into a messagebox. Could anyone please help??

Code is below:


#include <windows.h>

const char Caption[] = "Simple Error Box";

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)

{
MessageBox( NULL,
"Simple.\n"
"Error.\n"
"Box.",
Caption,
MB_OK | MB_ICONERROR);
return 0;
}


Any help would be greatly appreciated



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


PHP Problems Passing data, Java Swing



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ MessageBox Help

C++ MessageBox() in front www.computing.net/answers/programming/c-messagebox-in-front/14921.html

C++ prgramming help www.computing.net/answers/programming/c-prgramming-help/18183.html

C++ program help www.computing.net/answers/programming/c-program-help/6678.html