Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. #ifndef __util_h
  2. #define __util_h
  3. extern HPALETTE g_hpalBranding;
  4. extern HBITMAP g_hbmOtherDlgBrand;
  5. extern SIZE g_sizeOtherDlgBrand;
  6. extern HBITMAP g_hbmLogonBrand;
  7. extern SIZE g_sizeLogonBrand;
  8. extern HBITMAP g_hbmBand;
  9. extern SIZE g_sizeBand;
  10. VOID MoveChildren(HWND hWnd, INT dx, INT dy);
  11. VOID MoveControls(HWND hWnd, UINT* aID, INT cID, INT dx, INT dy, BOOL fSizeWnd);
  12. VOID LoadBrandingImages(BOOL fNoPaletteChanges,
  13. BOOL* pfTextOnLarge, BOOL* pfTextOnSmall);
  14. VOID SizeForBranding(HWND hWnd, BOOL fLargeBrand);
  15. BOOL PaintBranding(HWND hWnd, HDC hDC, INT bandOffset, BOOL fBandOnly, BOOL fLargeBrand, int nBackground);
  16. BOOL BrandingQueryNewPalete(HWND hDlg);
  17. BOOL BrandingPaletteChanged(HWND hDlg, HWND hWndPalChg);
  18. VOID CreateFonts(PGINAFONTS pGinaFonts);
  19. VOID PaintBitmapText(PGINAFONTS pGinaFonts, BOOL fTextOnLarge, BOOL fTextOnSmall);
  20. #define ShowDlgItem(h, i, f) \
  21. ShowWindow(GetDlgItem(h, i), f ? SW_SHOW:SW_HIDE)
  22. #define EnableDlgItem(h, i, f) \
  23. EnableWindow(GetDlgItem(h, i), f)
  24. #endif