home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / TUTORIAL.PAK / CPPOCF1.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  2KB  |  65 lines

  1. // ---------------------------------------------------------------------------
  2. // Copyright (C) 1994 Borland International
  3. // CppOcf1.h
  4. // ---------------------------------------------------------------------------
  5. #if !defined(CPPOCF1_H)
  6. #define CPPOCF1_H
  7. #include "CppOcf1.rh"
  8.  
  9. //
  10. // Global defines
  11. //
  12. #define APPSTRING   "CppOcf1"
  13. #define MENUNAME    "CppOcf1Menu"
  14. #define CLASSNAME   "CppOcf1Class"
  15. #define TITLE       "CppOcf1 Window"
  16. #define VIEWCLASSNAME "ViewClass"
  17.  
  18.  
  19. //
  20. // extern for global variables
  21. //
  22. //extern HINSTANCE     _hInstance;
  23. //extern TOcRegistrar* OcRegistrar;
  24. //extern TOcApp*       OcApp;
  25. //extern TOcDocument*  OcDoc;
  26. //extern TOcView*      OcView;
  27.  
  28.  
  29. //
  30. // function prototypes
  31. //
  32. int PASCAL WinMain(HINSTANCE, HINSTANCE, char far*, int);
  33. bool InitApplication(HINSTANCE);
  34. bool InitInstance(HINSTANCE, int);
  35.  
  36.  
  37. //
  38. // Main Window functions
  39. //
  40. long CALLBACK _export MainWndProc(HWND, uint, WPARAM, LPARAM);
  41. bool MainWnd_OnCreate(HWND hwnd, CREATESTRUCT FAR* lpCreateStruct);
  42. void MainWnd_OnClose(HWND hwnd);
  43. void MainWnd_OnDestroy(HWND);
  44. void MainWnd_OnCommand(HWND hwnd, int id, HWND hwndCtl, uint codeNotify);
  45. long MainWnd_OnOcEvent(HWND hwnd, WPARAM, LPARAM);
  46. void MainWnd_OnSize(HWND hwnd, UINT state, int cx, int cy);
  47. const char far* MainWnd_OnOcViewTitle(HWND hwnd);
  48.  
  49.  
  50. //
  51. // View window functions
  52. //
  53. long CALLBACK _export ViewWndProc(HWND, uint, WPARAM, LPARAM);
  54. bool ViewWnd_OnCreate(HWND hwnd, CREATESTRUCT FAR* lpCreateStruct);
  55. void ViewWnd_OnClose(HWND hwnd);
  56. void ViewWnd_OnDestroy(HWND);
  57. void ViewWnd_OnPaint(HWND hwnd);
  58. long ViewWnd_OnOcEvent(HWND hwnd, WPARAM, LPARAM);
  59. void ViewWnd_OnSize(HWND hwnd, UINT state, int cx, int cy);
  60. bool ViewWnd_OnOcViewClose(HWND hwnd);
  61.  
  62.  
  63. #endif
  64.  
  65.