|
|
1.1 ! root 1: /**************************************************************************\ ! 2: * uconvert.h -- header file for uconvert program. ! 3: * ! 4: * Function prototypes, global variables, & preprocessor defines. ! 5: \**************************************************************************/ ! 6: ! 7: /**************************************************************************\ ! 8: * Function prototypes, window procedures first. ! 9: \**************************************************************************/ ! 10: ! 11: LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM); ! 12: LRESULT CALLBACK AboutProc (HWND, UINT, WPARAM, LPARAM); ! 13: LRESULT CALLBACK SourceOptionsProc (HWND, UINT, WPARAM, LPARAM); ! 14: LRESULT CALLBACK DestinationOptionsProc (HWND, UINT, WPARAM, LPARAM); ! 15: LRESULT CALLBACK ConversionOptionsProc (HWND, UINT, WPARAM, LPARAM); ! 16: LRESULT CALLBACK ViewSourceProc (HWND, UINT, WPARAM, LPARAM); ! 17: LRESULT CALLBACK ViewDestinationProc (HWND, UINT, WPARAM, LPARAM); ! 18: ! 19: BOOL IsUnicode (PBYTE ); ! 20: BOOL IsBOM (PBYTE ); ! 21: BOOL IsRBOM (PBYTE ); ! 22: ! 23: VOID framechildwindow (HDC, HWND, HWND); ! 24: VOID underlinechildwindow (HDC, HWND, HWND); ! 25: ! 26: VOID createwindows(PRECT, HWND, HWND*, HWND*, HWND*, HWND*, HWND*, HWND*); ! 27: ! 28: LPVOID ManageMemory (UINT, UINT, DWORD, LPVOID); ! 29: ! 30: ! 31: ! 32: /**************************************************************************\ ! 33: * Global variables (declared in uconvert.c). ! 34: \**************************************************************************/ ! 35: ! 36: /* Child windows appearing on the main frame window. */ ! 37: extern HWND hwndLabel0, hwndLabel1; ! 38: extern HWND hwndName0, hwndName1; ! 39: extern HWND hwndSize0, hwndSize1; ! 40: extern HWND hwndCodePage0, hwndCodePage1; ! 41: extern HWND hwndByteOrder0, hwndByteOrder1; ! 42: extern HWND hwndButton0, hwndButton1; ! 43: ! 44: /* Information specifying which is unicode and what the other code page is. */ ! 45: extern int gTypeSource; ! 46: extern UINT giSourceCodePage; ! 47: extern UINT giDestinationCodePage; ! 48: ! 49: /* pointers to global source & destination data, and byte count. */ ! 50: extern PBYTE pSourceData; ! 51: extern PBYTE pDestinationData; ! 52: extern int nBytesSource; ! 53: extern int nBytesDestination; ! 54: ! 55: /* Conversion Options variables. */ ! 56: extern DWORD gMBFlags; ! 57: extern DWORD gWCFlags; ! 58: extern char glpDefaultChar[]; ! 59: extern BOOL gUsedDefaultChar; ! 60: ! 61: ! 62: ! 63: /**************************************************************************\ ! 64: * Defined constants. ! 65: \**************************************************************************/ ! 66: ! 67: /* Messages that can be send to ManageMemory() as first param */ ! 68: #define MMALLOC 1 ! 69: #define MMFREE 2 ! 70: /* Messages that can be send to ManageMemory() as second param */ ! 71: #define MMSOURCE 3 ! 72: #define MMDESTINATION 4 ! 73: ! 74: /* Allowed values for the global variable gTypeSource */ ! 75: #define TYPEUNKNOWN 0 ! 76: #define TYPEUNICODE 1 ! 77: #define TYPECODEPAGE 2 ! 78: ! 79: /* "user message." Used by main window. */ ! 80: #define WMU_SETTYPESTRINGS WM_USER +1 ! 81: #define WMU_ADJUSTFORNEWSOURCE WM_USER +2 ! 82: ! 83: /* menu IDs */ ! 84: #define MID_OPEN 1001 ! 85: #define MID_SAVEAS 1002 ! 86: #define MID_EXIT 1010 ! 87: ! 88: #define MID_COPYDESTINATION 2001 ! 89: #define MID_PASTESOURCE 2002 ! 90: #define MID_CLEARSOURCE 2003 ! 91: #define MID_CLEARDESTINATION 2004 ! 92: ! 93: #define MID_CONVERTNOW 3001 ! 94: #define MID_SOURCEOPT 3002 ! 95: #define MID_DESTINATIONOPT 3003 ! 96: #define MID_CONVERSIONOPT 3004 ! 97: #define MID_SWAPSOURCE 3005 ! 98: #define MID_SWAPDESTINATION 3006 ! 99: #define MID_INSTALLTABLES 3007 ! 100: ! 101: #define MID_HELP 4001 ! 102: #define MID_ABOUT 4002 ! 103: ! 104: /* button IDs (should be disjoint from menu IDs) */ ! 105: #define BID_VIEWSOURCE 59 ! 106: #define BID_VIEWDESTINATION 60 ! 107: ! 108: /* dialog IDs */ ! 109: #define DID_NAME 100 ! 110: #define DID_TYPE 101 ! 111: #define DID_FONT 102 ! 112: #define DID_TEXT 103 ! 113: ! 114: #define DID_CODEPAGELIST 300 ! 115: #define DID_RBUNICODE 301 ! 116: #define DID_RBANSICP 302 ! 117: #define DID_RBOEMCP 303 ! 118: #define DID_RBOTHERCP 304 ! 119: #define DID_CBBYTEORDER 305 ! 120: ! 121: #define DID_PRECOMPOSED 401 ! 122: #define DID_COMPOSITE 402 ! 123: #define DID_USEGLYPHCHARS 403 ! 124: ! 125: #define DID_COMPOSITECHECK 451 ! 126: #define DID_DISCARDNS 452 ! 127: #define DID_SEPCHARS 453 ! 128: #define DID_DEFAULTCHAR 454 ! 129: #define DID_EFDEFAULTCHAR 455 ! 130: #define DID_USEDDEFAULTCHAR 456 ! 131: ! 132: /* Define a value for the LOGFONT.lfCharSet ! 133: * This should be included in wingdi.h, but it ! 134: * was removed because the font mapper is not ! 135: * using it anyway in version 1.0. Currently ! 136: * scheduled to be included in NT ver 1.1. ! 137: */ ! 138: #define UNICODE_CHARSET 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.