|

DefaultButton


(number) The button that will get the focus by default:



CONSTANT


VALUE DESCRIPTION


MB_DEFBUTTON1


0


The first button from the left. (Default)


MB_DEFBUTTON2


256


The second button from the left.


MB_DEFBUTTON3


512


The third button from the left.


Re t u r n s


(number) The numeric constant for the button that was pressed:



CONSTANT


VALUE DESCRIPTION


IDOK


1


The OK button.


IDCANCEL


2


The Cancel button.


IDABORT


3


The Abort button.


IDRETRY


4


The Retry button.


IDIGNORE


5


The Ignore button.


IDYES


6


The Yes button.


IDNO


7


The No button.

If an error occurs, IDCANCEL (value 2) will be returned. You can use Application.GetLastError to determine whether this action failed, and why.


|