Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

  1. // minifwnd.h : Declares the interface to the CMiniFrmWnd class.
  2. //
  3. #ifndef __MINIFWND_H__
  4. #define __MINIFWND_H__
  5. /////////////////////////////////////////////////////////////////////////////
  6. class CDocking;
  7. class CMiniFrmWnd : public CFrameWnd
  8. {
  9. DECLARE_DYNAMIC( CMiniFrmWnd )
  10. public:
  11. CMiniFrmWnd();
  12. BOOL Create( const TCHAR FAR* lpWindowName, DWORD dwStyle,
  13. const RECT& rect, CWnd* pParentWnd );
  14. afx_msg void OnNcLButtonDown( UINT nHitTest, CPoint pt );
  15. afx_msg void OnLButtonUp ( UINT nFlags, CPoint pt );
  16. afx_msg int OnCreate ( LPCREATESTRUCT lpCreateStruct);
  17. afx_msg void OnSysCommand ( UINT nID, LONG lParam);
  18. afx_msg LRESULT OnHelpHitTest ( WPARAM wParam, LPARAM lParam);
  19. afx_msg void OnRButtonDown ( UINT nFlags, CPoint point);
  20. afx_msg void OnKeyDown ( UINT nChar, UINT nRepCnt, UINT nFlags);
  21. afx_msg LRESULT OnMoving ( WPARAM fwSide, LPARAM lprc );
  22. afx_msg void OnMove ( int x, int y );
  23. afx_msg BOOL OnNcActivate ( BOOL bActive );
  24. virtual BOOL OnCommand( UINT wParam, LONG lParam );
  25. virtual WORD GetHelpOffset() = 0; // All of our minifwnds need help.
  26. DECLARE_MESSAGE_MAP()
  27. protected:
  28. CDocking* m_pDocking;
  29. CPBView::DOCKERS m_Dockable;
  30. void CancelDrag();
  31. };
  32. /////////////////////////////////////////////////////////////////////////////
  33. #endif // __MINIFWND_H__