panewindow.h 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. #ifndef _PaneWindow_H_
  7. #define _PaneWindow_H_
  8. /////////////////////////////////////////////////////////////////////////////
  9. //
  10. //
  11. //
  12. /////////////////////////////////////////////////////////////////////////////
  13. class PaneWindow : public ChildWindow {
  14. private:
  15. TRef<TopPane> m_ptopPane;
  16. TRef<Engine> m_pengine;
  17. public:
  18. PaneWindow(
  19. Window* pwindow,
  20. Engine* pengine,
  21. Pane* ppane = NULL,
  22. SurfaceType = SurfaceType2D()
  23. );
  24. void SetPane(Pane* ppane);
  25. void UpdateSize();
  26. void PaneSizeChanged();
  27. void PaneSurfaceChanged();
  28. Point TransformLocalToImage(const Point& point);
  29. //
  30. // window members
  31. //
  32. void OnPaint(HDC hdc, const WinRect& rect);
  33. bool OnCommand(WPARAM wParam, LPARAM lParam);
  34. };
  35. #endif