home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / include / custcntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-04  |  2.4 KB  |  93 lines

  1. #ifndef _CUSTCNTL_INCLUDED
  2. #define _CUSTCNTL_INCLUDED
  3. #define CCHCCCLASS    32
  4. #define CCHCCDESC    32
  5. #define CCHCCTEXT    256
  6. #define CCF_NOTEXT    1
  7. #ifdef UNICODE
  8. #define CCSTYLEFLAG    CCSTYLEFLAGW
  9. #define LPCCSTYLEFLAG    LPCCSTYLEFLAGW
  10. #define CCSTYLE    CCSTYLEW
  11. #define CCINFO    CCINFOW
  12. #define LPFNCCINFO    LPFNCCINFOW
  13. #define LPCCINFO    LPCCINFOW
  14. #define LPCCSTYLE    LPCCSTYLEW
  15. #define LPFNCCSTYLE    LPFNCCSTYLEW
  16. #define LPFNCCSIZETOTEXT    LPFNCCSIZETOTEXTW
  17. #else
  18. #define CCSTYLEFLAG    CCSTYLEFLAGA
  19. #define LPCCSTYLEFLAG    LPCCSTYLEFLAGA
  20. #define CCSTYLE    CCSTYLEA
  21. #define LPCCSTYLE    LPCCSTYLEA
  22. #define LPFNCCSTYLE    LPFNCCSTYLEA
  23. #define LPFNCCSIZETOTEXT    LPFNCCSIZETOTEXTA
  24. #define CCINFO    CCINFOA
  25. #define LPCCINFO    LPCCINFOA
  26. #define LPFNCCINFO    LPFNCCINFOA
  27. #endif
  28. typedef struct _CCSTYLEA {
  29.     DWORD    flStyle;
  30.     DWORD    flExtStyle;
  31.     CHAR    szText[CCHCCTEXT];
  32.     LANGID    lgid;
  33.     WORD    wReserved1;
  34. } CCSTYLEA,*LPCCSTYLEA;
  35. typedef struct _CCSTYLEW {
  36.     DWORD    flStyle;
  37.     DWORD    flExtStyle;
  38.     WCHAR    szText[CCHCCTEXT];
  39.     LANGID    lgid;
  40.     WORD    wReserved1;
  41. } CCSTYLEW, *LPCCSTYLEW;
  42. typedef WINBOOL (CALLBACK* LPFNCCSTYLEA)(HWND,LPCCSTYLEA);
  43. typedef WINBOOL (CALLBACK* LPFNCCSTYLEW)(HWND,LPCCSTYLEW);
  44. typedef int (CALLBACK* LPFNCCSIZETOTEXTA)(DWORD,DWORD,HFONT,LPSTR);
  45. typedef int (CALLBACK* LPFNCCSIZETOTEXTW)(DWORD,DWORD,HFONT,LPWSTR);
  46. typedef struct    _CCSTYLEFLAGA {
  47.     DWORD flStyle;
  48.     DWORD flStyleMask;
  49.     LPSTR pszStyle;
  50. } CCSTYLEFLAGA,*LPCCSTYLEFLAGA;
  51. typedef struct _CCSTYLEFLAGW {
  52.     DWORD flStyle;
  53.     DWORD flStyleMask;
  54.     LPWSTR pszStyle;
  55. } CCSTYLEFLAGW, *LPCCSTYLEFLAGW;
  56. typedef struct _CCINFOA {
  57.     CHAR    szClass[CCHCCCLASS];
  58.     DWORD   flOptions;
  59.     CHAR    szDesc[CCHCCDESC];
  60.     UINT    cxDefault;
  61.     UINT    cyDefault;
  62.     DWORD   flStyleDefault;
  63.     DWORD    flExtStyleDefault;
  64.     DWORD    flCtrlTypeMask;
  65.     CHAR    szTextDefault[CCHCCTEXT];
  66.     int    cStyleFlags;
  67.     LPCCSTYLEFLAGA aStyleFlags;
  68.     LPFNCCSTYLEA lpfnStyle;
  69.     LPFNCCSIZETOTEXTA lpfnSizeToText;
  70.     DWORD   dwReserved1;
  71.     DWORD   dwReserved2;
  72. } CCINFOA, *LPCCINFOA;
  73. typedef struct _CCINFOW {
  74.     WCHAR   szClass[CCHCCCLASS];
  75.     DWORD   flOptions;
  76.     WCHAR   szDesc[CCHCCDESC];
  77.     UINT    cxDefault;
  78.     UINT    cyDefault;
  79.     DWORD    flStyleDefault;
  80.     DWORD    flExtStyleDefault;
  81.     DWORD    flCtrlTypeMask;
  82.     int    cStyleFlags;
  83.     LPCCSTYLEFLAGW aStyleFlags;
  84.     WCHAR    szTextDefault[CCHCCTEXT];
  85.     LPFNCCSTYLEW lpfnStyle;
  86.     LPFNCCSIZETOTEXTW lpfnSizeToText;
  87.     DWORD    dwReserved1;
  88.     DWORD    dwReserved2;
  89. } CCINFOW, *LPCCINFOW;
  90. typedef UINT (CALLBACK* LPFNCCINFOA)(LPCCINFOA);
  91. typedef UINT (CALLBACK* LPFNCCINFOW)(LPCCINFOW);
  92. #endif
  93.