13.2.1.1 MessageBox


int MessageBoxA(

HWND hWnd, // (NULL )

LPCTSTR lpText, //

LPCTSTR lpCaption, //

UINT uType // .

);

:

MB_ABORTRETRYIGNORE (2) 3 : Abort, Retry, Ignore.

MB_OK (0) : OK.

MB_OKCANCEL (1) : OK

Cancel.

MB_RETRYCANCEL (5) : Retry Cancel.

MB_YESNO (4) : Yes No.

MB_YESNOCANCEL (3) 3 : Yes, No, Cancel.

, . WINUSER.H

, (. WIN32.HLP):

:

0, .

: IDABORT (3) ABORT.

IDCANCEL (2) CANCEL ESC.

IDIGNORE (5) IGNORE.

IDNO (7) NO.

IDOK (1) OK.

IDRETRY(4) RETRY.

IDYES(6) YES.

Hello, World

p586

include win.inc

model flat

extrn ExitProcess:proc

extrn MessageBoxA:proc

dataseg

mystr db 'HelloWorld!', 0

tit db 'Message', 0

codeseg

begin:

push 0

push offset tit

push offset mystr

push 0

call MessageBoxA

call ExitProcess

end begin