ShowRequestDlg(
LPSHOWREQUESTDLGDATA:lpDlgData
)
→ int
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_WARNING | A warning icon |
| HICON_ERROR | An error icon |
| HICON_INFO | An information icon |
Set to NULL to have no icon displayed.
| SHOWREQF_NAMEFILTER | Filter input string for valid filename characters |
| SHOWREQF_SELECTALL | Select entire string contents on initialization |
| SHOWREQF_PASSWORD | Password input |
| SHOWREQF_DEFAULTCANCEL | Set 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.