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

  1. // ---------------------------------------------------------------------------
  2. // Copyright (C) 1994 Borland International
  3. // CppOcf2.h
  4. // ---------------------------------------------------------------------------
  5. #if !defined(CppOcf2_H)
  6. #define CppOcf2_H
  7. #include "CppOcf2.rh"
  8.  
  9. //
  10. // Global defines
  11. //
  12. #define APPSTRING   "CppOcf2"
  13. #define MENUNAME    "CppOcf2Menu"
  14. #define CLASSNAME   "CppOcf2Class"
  15. #define TITLE       "CppOcf2 Window"
  16. #define VIEWCLASSNAME "SrvrViewClass"
  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 TOcRemView*   OcRemView;
  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. bool MainWnd_OnOcAppShutDown(HWND hwnd);
  49.  
  50.  
  51. //
  52. // View window functions
  53. //
  54. long CALLBACK _export ViewWndProc(HWND, uint, WPARAM, LPARAM);
  55. bool ViewWnd_OnCreate(HWND hwnd, CREATESTRUCT FAR* lpCreateStruct);
  56. void ViewWnd_OnClose(HWND hwnd);
  57. void ViewWnd_OnDestroy(HWND);
  58. void ViewWnd_OnPaint(HWND hwnd);
  59. void ViewWnd_OnSize(HWND hwnd, UINT state, int cx, int cy);
  60. void ViewWnd_OnTimer(HWND hwnd, UINT id);
  61. long ViewWnd_OnOcEvent(HWND hwnd, WPARAM, LPARAM);
  62. bool ViewWnd_OnOcViewClose(HWND hwnd);
  63.  
  64.  
  65. #endif
  66.  
  67.