Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

![]() |
PHP Problems
|
Passing data, Java Swing
|

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