DestroyWindow(hDlgMessage); hDlgMessage = NULL; }
SendMessage(hDlgMessage, WM_COMMAND, IDC_MESSAGE, (LPARAM)szMessage); } else if(hDlgMessage && (IsWindowVisible(hDlgMessage) || gSystemInfo.lastWindowMinimized)) { SaveWindowPosition(hDlgMessage); DestroyWindow(hDlgMessage); hDlgMessage = NULL;
void ShowMessage(LPSTR szMessage, BOOL bShow){  if(sgProduct.mode != SILENT)  {    if(bShow && szMessage)    {      char szBuf[MAX_BUF];       ZeroMemory(szBuf, sizeof(szBuf));      GetPrivateProfileString("Messages", "MB_MESSAGE_STR", "", szBuf, sizeof(szBuf), szFileIniInstall);      hDlgMessage = InstantiateDialog(hWndMain, DLG_MESSAGE, szBuf, DlgProcMessage);      SendMessage(hDlgMessage, WM_COMMAND, IDC_MESSAGE, (LPARAM)szMessage);      SendDlgItemMessage (hDlgMessage, IDC_MESSAGE, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);    }    else    {      SaveWindowPosition(hDlgMessage);      DestroyWindow(hDlgMessage);      hDlgMessage = NULL;    }  }}