0

I am new to program so I am following expert's foot steps but I am kinda lost here

 ShowMessage('Hello World');
 MessageBox(null,'Hello World'mb_OK(1));
ShowModal('Hello World');

I know it's not correct Delphi syntax.

What is the difference between the three

 MessageBox()
 ShowMessage()
 ShowModal()

All I know is that I have used ShowMessage a lot and the message comes on a small form with OK button.

Which one of the above uses the API

  User32.MessageBoxW
  User32.MessageBoxA

Thank you for your time

closed as off-topic by Jason Geffner, ixje, Guntram Blohm, jvoisin, perror Nov 25 '15 at 9:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on software development are off-topic here, but can be asked on Stack Overflow." – Jason Geffner, ixje, Guntram Blohm, jvoisin, perror
If this question can be reworded to fit the rules in the help center, please edit the question.

0

a modal messagebox is one that blocks you cant perform any action in the main windows unless you close this messagebox

a non modal messagebox doesnt block you can close it any time you wish and can continue to work in the main window

a MessageBox is a generic form if you provide the HWnd parameter it can be Modal if you provide null (as you show ) it will be nonmodal

all will reach user32!messagebox or its internals

it should be prestty easy for you to check by setting a breakpoint

and this question of yours will also likely be closed as unclear or lacks basic understanding

Not the answer you're looking for? Browse other questions tagged or ask your own question.