INF: Creating Messages From Windows Library Using MessageBox

ID Number: Q22374

2.00 2.03 2.10 3.00 3.10

WINDOWS

Summary:

The following information describes how to write a Windows library

application that creates messages using the MessageBox function.

The best way to perform this type of functionality is to get a handle

to the window that currently has the focus and call the MessageBox

function with that handle as the parent. When the focus is restored,

the window that had the focus prior to the MessageBox call will regain

the focus. For example:

MessageBox(GetFocus(),(LPSTR)"Demonstration",(LPSTR)"DEMO",MB_OK);

Additional reference words: TAR60903 2.00 2.03 2.10 2.x 3.00 3.10 3.x