ShowRequestDlg(
     LPSHOWREQUESTDLGDATA:lpDlgData
)
→ int

Arguments

lpDlgData

[in] A pointer to a SHOWREQUESTDLGDATA structure that defines the dialog.

Return value

Returns a value corresponding to the button the user selected.

The return code corresponds to the button selected by the user. For example, assume the buttons specified in the input structure are Ok|Skip|Retry|Abort. The left-most button (in this example, Ok) corresponds to 1, the next button to 2, and so on. When there is more than one button, the right-most (Abort in this example) is designated as 0.

Description

The ShowRequestDlg function is used to display a generic Opus-style message dialog, which can optionally display a text field and a Boolean checkmark button.

The SHOWREQUESTDLGDATA structure has the following fields:

HICON_WARNINGA warning icon
HICON_ERRORAn error icon
HICON_INFOAn information icon
SHOWREQF_NAMEFILTERFilter input string for valid filename characters
SHOWREQF_SELECTALLSelect entire string contents on initialization
SHOWREQF_PASSWORDPassword input
SHOWREQF_DEFAULTCANCELSet cancel (right-most) button as the default

There are a number of pre-defined button combinations that can be specified as values for the pszButtons field. These will be automatically shown in the current language Opus is using. For example, BUTTONS_OKCANCEL is equivalent to Ok|Cancel. See the plugin support.h header file for a full list of these.