正在加载图片...
MB YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel 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 IDIGNOREIgnore button was selected. idok oK button was selected IDRETRY Retry button was selected IDYES Yes button was selected If a message box has a Cancel button, the function returns the IdCANCel value if either the eSC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing ESC has no effect Remarks When you use a system-modal message box to indicate that the system is low on memory, the strings pointed to by the lp Text and lp Caption parameters should not be taken from a resource file because an attempt to load the resource may fail When an application calls Message Box and specifies the MB ICONHAND and MB SYSTEMMODAL flags for the u lype parameter, Windows displays the resulting message box regardless of available memory. When these flags are specified, Windows limits the length of the message box text to three lines. Windows does not automatically break the lines to fit in the message box, however, so the message string must contain carriage returns to break the lines at the appropriate places If you create a message box while a dialog box is present, use the handle of the dialog box as the hWnd parameter. The hWnd parameter should not identify a child window, such as a control in a dialog box Windows 95 only: The system can support a maximum of 16, 364 window handles.MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel. Return Value 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. If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing ESC has no effect. Remarks When you use a system-modal message box to indicate that the system is low on memory, the strings pointed to by the lpText and lpCaption parameters should not be taken from a resource file, because an attempt to load the resource may fail. When an application calls MessageBox and specifies the MB_ICONHAND and MB_SYSTEMMODAL flags for the uType parameter, Windows displays the resulting message box regardless of available memory. When these flags are specified, Windows limits the length of the message box text to three lines. Windows does not automatically break the lines to fit in the message box, however, so the message string must contain carriage returns to break the lines at the appropriate places. If you create a message box while a dialog box is present, use the handle of the dialog box as the hWnd parameter. The hWnd parameter should not identify a child window, such as a control in a dialog box. Windows 95 only: The system can support a maximum of 16,364 window handles
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有