Source code of Windows XP (NT5)
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.

70 lines
1.8 KiB

  1. /* NC.H
  2. Structures needed so UNICODE Themes can read and write ANSI-based
  3. NonClientMetric and IconMetric structures to the Theme file.
  4. Frosting: Master Theme Selector for Windows
  5. Copyright (c) 1998 Microsoft Corporation. All rights reserved.
  6. */
  7. //
  8. // ROUTINES from NC.C -- used for converting ANSI structures to UNICODE
  9. // and vice versa.
  10. //
  11. #ifdef UNICODE
  12. VOID ConvertIconMetricsToANSI(LPICONMETRICS, LPICONMETRICSA);
  13. VOID ConvertIconMetricsToWIDE(LPICONMETRICSA, LPICONMETRICSW);
  14. VOID ConvertNCMetricsToANSI(LPNONCLIENTMETRICSW, LPNONCLIENTMETRICSA);
  15. VOID ConvertNCMetricsToWIDE(LPNONCLIENTMETRICSA, LPNONCLIENTMETRICSW);
  16. VOID ConvertLogFontToANSI(LPLOGFONTW, LPLOGFONTA);
  17. VOID ConvertLogFontToWIDE(LPLOGFONTA, LPLOGFONTW);
  18. #endif // UNICODE
  19. /*
  20. #ifdef UNICODE
  21. typedef struct tagLOGFONTA {
  22. LONG lfHeight;
  23. LONG lfWidth;
  24. LONG lfEscapement;
  25. LONG lfOrientation;
  26. LONG lfWeight;
  27. BYTE lfItalic;
  28. BYTE lfUnderline;
  29. BYTE lfStrikeOut;
  30. BYTE lfCharSet;
  31. BYTE lfOutPrecision;
  32. BYTE lfClipPrecision;
  33. BYTE lfQuality;
  34. BYTE lfPitchAndFamily;
  35. CHAR lfFaceName[LF_FACESIZE];
  36. } LOGFONTA;
  37. typedef struct tagICONMETRICSA {
  38. UINT cbSize;
  39. int iHorzSpacing;
  40. int iVertSpacing;
  41. int iTitleWrap;
  42. LOGFONTA lfFont;
  43. } ICONMETRICSA, FAR *LPICONMETRICSA;
  44. typedef struct tagNONCLIENTMETRICSA {
  45. UINT cbSize;
  46. int iBorderWidth;
  47. int iScrollWidth;
  48. int iScrollHeight;
  49. int iCaptionWidth;
  50. int iCaptionHeight;
  51. LOGFONTA lfCaptionFont;
  52. int iSmCaptionWidth;
  53. int iSmCaptionHeight;
  54. LOGFONTA lfSmCaptionFont;
  55. int iMenuWidth;
  56. int iMenuHeight;
  57. LOGFONTA lfMenuFont;
  58. LOGFONTA lfStatusFont;
  59. LOGFONTA lfMessageFont;
  60. } NONCLIENTMETRICSA, FAR* LPNONCLIENTMETRICSA;
  61. #endif //UNICODE
  62. */