|
|
1.1 ! root 1: /*********************************************************************/ ! 2: /* Windows/PM Cardfile Shared Code */ ! 3: /* */ ! 4: /* (c) Copyright Microsoft Corp. 1987,1988 - All Rights Reserved */ ! 5: /*********************************************************************/ ! 6: ! 7: /*********************************************************************/ ! 8: /* The following shared code was developed from the original */ ! 9: /* Cardfile application. This code can be compiled to run under */ ! 10: /* either the Windows or the PM manager environment. All */ ! 11: /* functionality associated with bitmaps or printing has been */ ! 12: /* deleted. Some comments refering to these functions may still be */ ! 13: /* present in the code and should be disregarded. jw. */ ! 14: /*********************************************************************/ ! 15: ! 16: /* declarations file for Cardfile */ ! 17: ! 18: extern HINST hCardfileInstance; ! 19: ! 20: extern HWND hCardfileWnd; ! 21: extern HANDLE hAccel; ! 22: extern char rgchCardfileClass[]; ! 23: ! 24: extern int CardPhone; ! 25: ! 26: extern int CharFixWidth; ! 27: extern int CharFixHeight; ! 28: extern int ExtLeading; ! 29: ! 30: extern int CardWidth; ! 31: extern int CardHeight; ! 32: ! 33: extern int cScreenHeads; ! 34: extern int cFSHeads; ! 35: extern int cScreenCards; ! 36: extern int xFirstCard; ! 37: extern int yFirstCard; ! 38: extern int ySpacing; ! 39: ! 40: extern int cxMainWindow; ! 41: extern int cyMainWindow; ! 42: ! 43: extern int iFirstCard; ! 44: extern int iTopCard; ! 45: ! 46: extern int cCards; ! 47: extern HANDLE hCards; ! 48: extern CARDHEADER CurCardHead; ! 49: extern CARD CurCard; ! 50: ! 51: extern char rgchWindows[]; ! 52: extern char rgchDevice[]; ! 53: ! 54: extern unsigned wMerge; ! 55: ! 56: extern HWND hCardWnd; ! 57: ! 58: extern HBRUSH hbrBack; ! 59: extern HBRUSH hbrLine; ! 60: extern HBRUSH hbrWhite; ! 61: extern HBRUSH hbrBlack; ! 62: extern HBRUSH hbrGray; ! 63: ! 64: extern int fFileDirty; ! 65: ! 66: /* dialog procs */ ! 67: extern FARPROC lpDlgProc; ! 68: extern FARPROC lpfnOpen; ! 69: extern FARPROC lpfnSave; ! 70: extern FARPROC lpfnAbout; ! 71: extern FARPROC lpEditWndProc; ! 72: ! 73: extern char rgchCardfile[]; ! 74: extern char CurIFile[]; ! 75: extern char CurIFind[]; ! 76: extern char rgchUntitled[]; ! 77: extern char NotEnoughMem[]; ! 78: extern char rgchCardData[]; ! 79: extern char TmpFile[]; ! 80: extern char szExtSave[]; ! 81: ! 82: extern int fCardCleared; ! 83: extern int iCardStartScroll; ! 84: extern int fScrolling; ! 85: ! 86: extern OFSTRUCT tmpreopen; ! 87: extern OFSTRUCT mainreopen; ! 88: extern int fReadOnly; ! 89: ! 90: extern int DBcmd; ! 91: ! 92: /* in cfres.c */ ! 93: int PASCAL WinMain(HINST, HINST, LPSTR, int); ! 94: ! 95: /* in cfnew.c */ ! 96: void FAR GetOldData(HINST); ! 97: BOOL FAR InitInstance(HINST, LPSTR, int); ! 98: BOOL FAR CardfileInit(void); ! 99: ! 100: /* in cfmain.c */ ! 101: long far PASCAL CardfileWndProc(HWND, unsigned, WINWORD, DWORD); ! 102: ! 103: /* in cfpaint.c */ ! 104: void CardfileEraseBkGnd(HWND, HDC); ! 105: void CardfilePaint(HWND, HDC); ! 106: void PhonePaint(HWND, HDC); ! 107: void PaintNewHeaders(void); ! 108: void CardfileSize(HWND, int, int); ! 109: ! 110: /* in cfinput.c */ ! 111: void CardfileInput(HWND, int); ! 112: void SetTopCard(void); ! 113: PSTR PutUpDB(int); ! 114: void UpdateMenu(void); ! 115: void FAR SetEditText(LPSTR); ! 116: void CardfileMouse(HWND, int, POINT); ! 117: BOOL FAR GetNewCard(int, int); ! 118: int MapPtToCard(POINT); ! 119: void FAR CardfileOkError(int); ! 120: WORD FAR MyMessageBox(WORD, PSTR, WORD); ! 121: BOOL FAR MergeStrings(LPSTR, LPSTR, LPSTR); ! 122: void MakeBlankCard(void); ! 123: void SetCaption(void); ! 124: void FAR BuildCaption(PSTR); ! 125: ! 126: /* in cfopen.c */ ! 127: void DoMerge(void); ! 128: BOOL FAR DoOpen(PSTR); ! 129: BOOL MaybeSaveFile(void); ! 130: BOOL GetNewFileName(POFSTRUCT); ! 131: ! 132: /* in cfscroll.c */ ! 133: BOOL CardfileScroll(HWND, int, int); ! 134: void PhoneScroll(HWND, int, int); ! 135: void SetScrRangeAndPos(void); ! 136: ! 137: /* in cfcard.c */ ! 138: long far PASCAL CardWndProc(HWND, unsigned, WINWORD, DWORD); ! 139: void DeleteCard(int); ! 140: int FAR AddCurCard( void ); ! 141: KanjiXlat(unsigned char, short *); ! 142: BOOL SaveCurrentCard(int); ! 143: void SetCurCard(int); ! 144: ! 145: /* in cftext.c */ ! 146: BOOL CardKey(WORD); ! 147: BOOL CardChar(int); ! 148: void BringCardOnScreen(int); ! 149: BOOL PhoneKey(HWND, WORD); ! 150: ! 151: /* in cffile.c */ ! 152: BOOL FAR MergeCardFile(PSTR); ! 153: BOOL FAR ReadCardFile(PSTR); ! 154: void FAR AppendExtension(PSTR, PSTR); ! 155: BOOL FAR WriteCardFile(PSTR); ! 156: BOOL FAR WriteCurCard(PCARDHEADER, PCARD, LPSTR); ! 157: BOOL FAR ReadCurCardData(PCARDHEADER, PCARD, LPSTR); ! 158: void FAR MakeTmpFile(void); ! 159: ! 160: /* in cfclip.c */ ! 161: void FAR DoCutCopy(int); ! 162: void FAR DoPaste(void); ! 163: ! 164: /* in cffind.c */ ! 165: void FAR DoGoto(PSTR); ! 166: void FAR FindStrCard(void); ! 167: LPSTR NEAR AnsiFind(LPSTR, PSTR, short); ! 168: ! 169: /* in cfdb.c */ ! 170: DLGRET far PASCAL fnOpen(HWND, unsigned, WINWORD, DWORD); ! 171: void DlgAddCorrectExtension(PSTR, BOOL); ! 172: BOOL FSearchSpec(PSTR); ! 173: DLGRET far PASCAL fnSave(HWND, unsigned, WINWORD, DWORD); ! 174: PSTR PFileInPath(PSTR); ! 175: void CheckOkEnable(HWND, unsigned); ! 176: DLGRET far PASCAL fnAbout(HWND, unsigned, WINWORD, DWORD); ! 177: int IntegerToAscii(unsigned, PSTR); ! 178: DLGRET far PASCAL DlgProc(HWND, unsigned, WINWORD, DWORD); ! 179: ! 180: /* in asmsubs.asm */ ! 181: void FAR RepMov(LPSTR, LPSTR, int); ! 182: void FAR RepMovUp(LPSTR, LPSTR, int); ! 183: ! 184: /* in windiff1.asm */ ! 185: Frename(PSTR, PSTR); ! 186: int FAR Fdelete(PSTR); ! 187: mylread(int, LPSTR, int); ! 188: myread(int, PSTR, int); ! 189: mylwrite(int, LPSTR, int); ! 190: mywrite(int, PSTR, int); ! 191: int FAR MyOpen(LPSTR, int); ! 192: void FAR MyClose(int); ! 193: long FAR MyLseek(int, long, int); ! 194: ! 195: /* in cfdos.asm */ ! 196: int FAR Mylstrlen(LPSTR); ! 197: LPSTR FAR Mylstrcpy(LPSTR, LPSTR); ! 198: LPSTR FAR Mylstrcat(LPSTR, LPSTR); ! 199: int FAR Mylstrcmp(LPSTR, LPSTR); ! 200:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.