SetupLdrAndSetup.XPTheme.pas 706 B

1234567891011121314151617181920212223242526272829
  1. unit SetupLdrAndSetup.XPTheme;
  2. {
  3. Inno Setup
  4. Copyright (C) 1997-2024 Jordan Russell
  5. Portions by Martijn Laan
  6. For conditions of distribution and use, see LICENSE.TXT.
  7. Enables themes. Used only by the Setup and SetupLdr projects.
  8. Note: XPTheme must be included as the first unit in the program's "uses"
  9. clause so that its code runs before any VCL initialization code.
  10. }
  11. interface
  12. implementation
  13. {$R SetupLdrAndSetup.XPTheme.res}
  14. uses
  15. Windows;
  16. { Avoid including Variants (via CommCtrl) in SetupLdr (SetupLdr uses XPTheme), saving 26 KB. }
  17. procedure InitCommonControls; external comctl32 name 'InitCommonControls';
  18. initialization
  19. InitCommonControls;
  20. end.