Kbase 20983: Available Modes for Win32 API Function MessageBoxA
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  07/02/2011 |
|
SUMMARY:
The Win32 API call, MessageBoxA, is an alternative to using the Progress 4GL MESSAGE statement with the View-AS ALERT-BOX option.
This article is intended to model the different modes available
with the MessageBoxA function.
EXPLANATION:
The Mode, or Type, is specified by the 4th input parameter which is LONG data-type. The following table displays the number, alert type, Button-Set and Return Values from each button.
Number Type Buttons Return Values
0 Message OK 1
1 Message OK-Cancel 1,2
2 Message Abort-Retry-Ignore 3,4,5
3 Message Yes-No-Cancel 6,7,2
4 Message YES-NO 6,7
5 Message Retry-Cancel 4,2
6 Message Cancel-Try Again-Continue 2,10,11
16 Error OK 1
17 Error OK-Cancel 1,2
18 Error Abort-Retry-Ignore 3,4,5
19 Error Yes-No-Cancel 6,7,2
20 Error Yes-No 6,7
21 Error Retry-Cancel 4,2
22 Error Cancel-Try Again-Continue 2,10,11
32 Question OK 1
33 Question OK-Cancel 1,2
34 Question Abort-Retry-Ignore 3,4,5
35 Question Yes-No-Cancel 6,7,2
36 Question Yes-No 6,7
37 Question Retry-Cancel 4,2
38 Question Cancel-Try Again-Continue 2,10,11
48 Warning OK 1
49 Warning OK-Cancel 1,2
50 Warning Abort-Retry-Ignore 3,4,5
51 Warning Yes-No-Cancel 6,7,2
52 Warning Yes-No 6,7
53 Warning Retry-Cancel 4,2
54 Warning Cancel-Try Again-Continue 2,10,11
64 Information OK 1
65 Information OK-Cancel 1,2
66 Information Abort-Retry-Ignore 3,4,5
67 Information Yes-No-Cancel 6,7,2
68 Information Yes-No 6,7
69 Information Retry-Cancel 4,2
70 Information Cancel-Try Again-Continue 2,10,11
References to Written Documentation:
Progress Knowledge Base Solution 20981, "How Progress Uses the Win32 API Function, MessageBoxA"