SendDlgItemMessage (hDlg, IDC_STATIC0, WM_SETFONT, (WPARAM)myGetSysFont(), 0L); SendDlgItemMessage (hDlg, IDC_STATIC1, WM_SETFONT, (WPARAM)myGetSysFont(), 0L); SendDlgItemMessage (hDlg, IDC_STATIC2, WM_SETFONT, (WPARAM)myGetSysFont(), 0L); SendDlgItemMessage (hDlg, IDWIZNEXT, WM_SETFONT, (WPARAM)myGetSysFont(), 0L); SendDlgItemMessage (hDlg, IDCANCEL, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);
SendDlgItemMessage (hDlg, IDC_STATIC0, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L); SendDlgItemMessage (hDlg, IDC_STATIC1, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L); SendDlgItemMessage (hDlg, IDC_STATIC2, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L); SendDlgItemMessage (hDlg, IDWIZNEXT, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L); SendDlgItemMessage (hDlg, IDCANCEL, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);
LRESULT CALLBACK DlgProcWelcome(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  char szBuf[MAX_BUF];  RECT rDlg;    switch(msg)  {    case WM_INITDIALOG:      DisableSystemMenuItems(hDlg, FALSE);      SetWindowText(hDlg, diWelcome.szTitle);      wsprintf(szBuf, diWelcome.szMessage0, sgProduct.szProductName);      SetDlgItemText(hDlg, IDC_STATIC0, szBuf);      SetDlgItemText(hDlg, IDC_STATIC1, diWelcome.szMessage1);      SetDlgItemText(hDlg, IDC_STATIC2, diWelcome.szMessage2);      if(GetClientRect(hDlg, &rDlg))        SetWindowPos(hDlg,                     HWND_TOP,                     (gSystemInfo.dwScreenX/2)-(rDlg.right/2),                     (gSystemInfo.dwScreenY/2)-(rDlg.bottom/2),                     0,                     0,                     SWP_NOSIZE);      SetDlgItemText(hDlg, IDWIZNEXT, sgInstallGui.szNext_);      SetDlgItemText(hDlg, IDCANCEL, sgInstallGui.szCancel_);      SendDlgItemMessage (hDlg, IDC_STATIC0, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);       SendDlgItemMessage (hDlg, IDC_STATIC1, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);       SendDlgItemMessage (hDlg, IDC_STATIC2, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);       SendDlgItemMessage (hDlg, IDWIZNEXT, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);       SendDlgItemMessage (hDlg, IDCANCEL, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);       break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDWIZNEXT:          DestroyWindow(hDlg);          DlgSequenceNext();          break;        case IDCANCEL:          AskCancelDlg(hDlg);          break;        default:          break;      }      break;  }  return(0);}