home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / SAMPLES / MULTIPAD / MULTIPAD.H_ / MULTIPAD.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  3.4 KB  |  102 lines

  1. #define APSTUDIO_HIDDEN_SYMBOLS
  2. #include "windows.h"
  3. #undef APSTUDIO_HIDDEN_SYMBOLS
  4. #include "drivinit.h"
  5. #include "resource.h"
  6.  
  7. #ifndef CDECL
  8. #define CDECL cdecl
  9. #endif
  10.  
  11. #define WINDOWMENU  3    /* position of window menu         */
  12. #define SHORTMENU   2    /* position of short version window menu */
  13.  
  14. #define DEFFILESEARCH    (LPSTR) "*.TXT"
  15.  
  16. #ifdef RC_INVOKED
  17. #define ID(id) id
  18. #else
  19. #define ID(id) MAKEINTRESOURCE(id)
  20. #endif
  21.  
  22. /* edit control identifier */
  23. #define ID_EDIT 0xCAC
  24.  
  25. /* resource ID's */
  26. #define IDMULTIPAD  ID(1)
  27. #define IDMULTIPAD2 ID(3)
  28. #define IDNOTE        ID(2)
  29.  
  30. /* Window word values for child windows */
  31. #define GWW_HWNDEDIT    0
  32. #define GWW_CHANGED    2
  33. #define GWW_WORDWRAP    4
  34. #define GWW_UNTITLED    6
  35. #define CBWNDEXTRA    8
  36.  
  37. /* menu ID's */
  38. #define IDM_EDITFIRST    IDM_EDITUNDO
  39. #define IDM_EDITLAST    IDM_EDITFONT
  40. #define IDM_SEARCHFIRST IDM_SEARCHFIND
  41. #define IDM_SEARCHLAST    IDM_SEARCHPREV
  42.  
  43. /* dialog ids */
  44. #define IDD_FILEOPEN    ID(200)
  45. #define IDD_ABOUT    ID(300)
  46. #define IDD_FIND    ID(400)
  47. #define IDD_SAVEAS    ID(500)
  48. #define IDD_PRINT    ID(600)
  49. #define IDD_FONT    ID(700)
  50. #define IDD_NEXT    IDOK
  51.  
  52. /* attribute flags for DlgDirList */
  53. #define ATTR_DIRS    0xC010        /* find drives and directories */
  54. #define ATTR_FILES    0x0000        /* find ordinary files           */
  55. #define PROP_FILENAME    szPropertyName    /* name of property for dialog */
  56.  
  57. /*
  58.  *  External variable declarations
  59.  */
  60. extern HANDLE hInst;        /* application instance handle          */
  61. extern HANDLE hAccel;        /* resource handle of accelerators      */
  62. extern HWND hwndFrame;        /* main window handle              */
  63. extern HWND hwndMDIClient;    /* handle of MDI Client window          */
  64. extern HWND hwndActive;     /* handle of current active MDI child      */
  65. extern HWND hwndActiveEdit;    /* handle of edit control in active child */
  66. extern LONG styleDefault;    /* default child creation state       */
  67. extern char szChild[];        /* class of child              */
  68. extern char szSearch[];     /* search string              */
  69. extern char *szDriver;        /* name of printer driver          */
  70. extern char szPropertyName[];    /* filename property for dialog box      */
  71. extern int iPrinter;        /* level of printing capability       */
  72. extern BOOL fCase;        /* searches case sensitive          */
  73. extern WORD cFonts;        /* number of fonts enumerated          */
  74.  
  75. /*  externally declared functions
  76.  */
  77. extern BOOL FAR PASCAL InitializeApplication(VOID);
  78. extern BOOL FAR PASCAL InitializeInstance(LPSTR,WORD);
  79. extern BOOL FAR PASCAL __export AboutDlgProc(HWND,WORD,WORD,LONG);
  80. extern HWND FAR PASCAL AddFile(char *);
  81. extern VOID FAR PASCAL ReadFile(HWND);
  82. extern VOID FAR PASCAL SaveFile(HWND);
  83. extern BOOL FAR PASCAL ChangeFile(HWND);
  84. extern int FAR PASCAL LoadFile(HWND, char *);
  85. extern VOID FAR PASCAL PrintFile(HWND);
  86. extern BOOL FAR PASCAL GetInitializationData(HWND);
  87. extern short FAR CDECL MPError(HWND,WORD,WORD,...);
  88. extern VOID FAR PASCAL Find(void);
  89. extern VOID FAR PASCAL FindNext(void);
  90. extern VOID FAR PASCAL FindPrev(void);
  91. extern VOID FAR PASCAL MPSpotHelp(HWND,POINT);
  92. extern LONG FAR PASCAL __export MPFrameWndProc(HWND,UINT,WPARAM,LPARAM);
  93. extern LONG FAR PASCAL __export MPMDIChildWndProc(HWND,UINT,WPARAM,LPARAM);
  94. extern HDC FAR PASCAL GetPrinterDC(void);
  95. extern VOID NEAR PASCAL SetSaveFrom (HWND, PSTR);
  96. extern BOOL NEAR PASCAL RealSlowCompare (PSTR, PSTR);
  97. extern VOID FAR PASCAL FindPrev (void);
  98. extern VOID FAR PASCAL FindNext (void);
  99. extern BOOL NEAR PASCAL IsWild (PSTR);
  100. extern VOID NEAR PASCAL SelectFile (HWND);
  101. extern VOID NEAR PASCAL MyFindText ( int );
  102.