home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / PASM.LZH / WINFRAME.H < prev   
C/C++ Source or Header  |  1996-05-30  |  2KB  |  79 lines

  1. #if !defined(__winframe_h)              // 番兵。まだインクルードされていない場合にのみ,このファイルを使用
  2. #define __winframe_h
  3.  
  4. /*  Project partsasm
  5.     Project Team DoGA
  6.     Copyright (c) 1995. All Rights Reserved.
  7.  
  8.     サブシステム:    partsasm.apx Application
  9.     ファイル:        winframe.h
  10.     作成者:          Taka2
  11.  
  12.  
  13.     概要
  14.     ====
  15.     TWinFrame (TWindow) 用のクラス定義
  16. */
  17.  
  18. #include <owl\owlpch.h>
  19. #pragma hdrstop
  20.  
  21. #include <owl\window.h>
  22.  
  23. #include "pasmApp.rh"            // すべてのリソースの定義
  24.  
  25.  
  26. #define ID_SCROLL_X 501
  27. #define ID_SCROLL_Y 502
  28. #define ID_SCROLL_Z 503
  29.  
  30. class DesignData;
  31. enum SelectType;
  32. //{{TWindow = TWinFrame}}
  33. class TWinFrame : public TWindow {
  34. private:
  35.     void EvButtonLP(SelectType t);
  36.     void EvButtonRP(SelectType t);
  37.     void EvButtonDP(SelectType t);
  38.     void EvButtonUP(SelectType t);
  39.     void EvButtonLR(SelectType t);
  40.     void EvButtonRR(SelectType t);
  41.     void EvButtonDR(SelectType t);
  42.     void EvButtonUR(SelectType t);
  43.     void EvButtonBD(SelectType t);
  44.     void EvButtonFD(SelectType t);
  45.     void EvButtonZoom(void);
  46.     void EvButtonOk(void);
  47.     void EvButtonCancel(void);
  48. public:
  49.     DesignData *designdata;
  50.  
  51.     TWinFrame (TWindow* parent, const char far* title = 0, TModule* module = 0);
  52.     virtual ~TWinFrame ();
  53.     virtual void Paint (TDC& dc, BOOL erase, TRect& rect);
  54.     virtual void SetupWindow ();
  55.     void EvButton(UINT id, SelectType t);
  56.  
  57. //{{TWinFrameVIRTUAL_BEGIN}}
  58. public:
  59.     virtual BOOL CanClose ();
  60. //{{TWinFrameVIRTUAL_END}}
  61.  
  62. //{{TWinFrameRSP_TBL_BEGIN}}
  63. protected:
  64.     void EvKeyDown (UINT key, UINT repeatCount, UINT flags);
  65.     void EvScrollX (UINT code);
  66.     void EvScrollY (UINT code);
  67.     void EvScrollZ (UINT code);
  68.  
  69.     void EvPaletteChanged (HWND hWndPalChg);
  70.     void EvSize (UINT sizeType, TSize& size);
  71.     void EvTimer (UINT timerId);
  72. //{{TWinFrameRSP_TBL_END}}
  73. DECLARE_RESPONSE_TABLE(TWinFrame);
  74. };    //{{TWinFrame}}
  75.  
  76.  
  77. #endif                                      // __winframe_h の番兵
  78.  
  79.