![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Location: Portland, OR
Posts: 12
Rep Power: 0
![]() |
Center MessageBox() in Win32
Hi everyone:
I seem to be stumped by the simplest -- I have a Win32 program and I need to display a message box centered by the parent window. Here's the example: MessageBox(hParentWnd, "Message to display", "Program Name", MB_ICONERROR | MB_OK); Well, the problem is that it is centered in the middle of the screen and it's position has nothing to do with the parent window. I stepped through the entire AfxMessageBox() in MFC, which by the way places it's message box in the middle of a parent window, and found absolutely nothing. Can someone tell me what am I doing wrong? |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|