SendMessage(hDlgMessage, WM_COMMAND, IDC_MESSAGE, (LPARAM)szMessage); SendDlgItemMessage (hDlgMessage, IDC_MESSAGE, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);
}  if(!IsWindowVisible(hDlgMessage)) { DWORD cmdShow = 0x00000000;  if(gSystemInfo.lastWindowMinimized) cmdShow = SW_SHOWMINNOACTIVE;  if(gSystemInfo.lastWindowIsTopWindow) cmdShow = SW_SHOWNORMAL;  RepositionWindow(hDlgMessage, NO_BANNER_IMAGE); ShowWindow(hDlgMessage, cmdShow);
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;    }  }}