- May
- 13,741
- 209
(Mostly a FYI for plugin writers ...) I wanted my plugin to provide help in the console in response to the HELP command and in a message box in response to F1 or Ctrl-F1. Figuring out which to so was just a matter of checking GetAsyncKeyState(VK_F1).
I wanted the message box to be silent, i.e., to not play the sound associated with the message box's icon (or the default sound). This was easy with MessageBoxIndirect() and the style MB_USERICON. So I did this:
Rex, I see that resource 53 (icon) goes back to v10 at least. Is it likely to stay that way?
I wanted the message box to be silent, i.e., to not play the sound associated with the message box's icon (or the default sound). This was easy with MessageBoxIndirect() and the style MB_USERICON. So I did this:
Code:
MSGBOXPARAMS mbp = {sizeof(mbp), NULL, (HINSTANCE) GetModuleHandle(NULL),
item[i].Help, pluginfo.pszDll, MB_OK | MB_USERICON,
MAKEINTRESOURCE(53), 0, 0, MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT)};
MessageBoxIndirect(&mbp);