Автор: deZZineSS (21.01.2007 в 18:41)
int MessageBox(
HWND hWnd, // handle of owner window
LPCTSTR lpText, // address of text in message box
LPCTSTR lpCaption, // address of title of message box
UINT uType // style of message box
);
|
Первый параметр - хэндл родительского окна.
Второй - длинный указатель на строку, в которой содержится текст окна
Тертий - -//- -//- ....................................................................... -//- -//- заголовок окна
Четвертый - стиль окна.
The return value is zero if there is not enough memory to create the message box.
If the function succeeds, the return value is one of the following menu-item values returned by the dialog box:
Value Meaning
IDABORT Abort button was selected.
IDCANCEL Cancel button was selected.
IDIGNORE Ignore button was selected.
IDNO No button was selected.
IDOK OK button was selected.
IDRETRY Retry button was selected.
IDYES Yes button was selected.
Т.е. функция возвращает 0, если окно создать не удалось. Если функция выполнилась успешно, то возвращает значение нажатой клавиши. Какой, см. выше.