00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_WNDCHILD_H__082500C0_14CD_4066_95F9_DA21AD8C7E72__INCLUDED_)
00023 #define AFX_WNDCHILD_H__082500C0_14CD_4066_95F9_DA21AD8C7E72__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "CtrlCoolBar.h"
00028 #include "LiveListSizer.h"
00029
00030 class CMainWnd;
00031 class CWindowManager;
00032 class CQuerySearch;
00033 class CQueryHit;
00034 class CBuffer;
00035 class CConnection;
00036 class CSkinWindow;
00037
00038
00039 class CChildWnd : public CMDIChildWnd
00040 {
00041
00042 public:
00043 CChildWnd();
00044 virtual ~CChildWnd();
00045
00046 DECLARE_DYNCREATE(CChildWnd)
00047
00048
00049 public:
00050 UINT m_nResID;
00051 BOOL m_bTabMode;
00052 BOOL m_bGroupMode;
00053 CChildWnd* m_pGroupParent;
00054 float m_nGroupSize;
00055 BOOL m_bPanelMode;
00056 BOOL m_bAlert;
00057 CSkinWindow* m_pSkin;
00058 private:
00059 static CChildWnd* m_pCmdMsg;
00060
00061
00062 public:
00063 CMainWnd* GetMainWnd();
00064 CWindowManager* GetManager();
00065 BOOL IsActive(BOOL bFocused = FALSE);
00066 BOOL IsPartiallyVisible();
00067 BOOL TestPoint(const CPoint& ptScreen);
00068 void TrackPopupMenu(LPCTSTR pszMenu, const CPoint& point, UINT nDefaultID = 0);
00069 BOOL LoadState(LPCTSTR pszName = NULL, BOOL bDefaultMaximise = TRUE);
00070 BOOL SaveState(LPCTSTR pszName = NULL);
00071 BOOL SetAlert(BOOL bAlert = TRUE);
00072 void SizeListAndBar(CWnd* pList, CWnd* pBar);
00073 public:
00074 virtual void OnSkinChange();
00075 virtual void OnQuerySearch(CQuerySearch* pSearch);
00076 virtual BOOL OnQueryHits(CQueryHit* pHits);
00077 virtual BOOL OnPush(GGUID* pClientID, CConnection* pConnection);
00078 virtual HRESULT GetGenericView(IGenericView** ppView);
00079 virtual BOOL OnDropFiles(CStringList& pFiles, const CPoint& ptScreen, BOOL bDrop);
00080
00081
00082 public:
00083
00084 public:
00085 virtual BOOL Create(UINT nID, BOOL bVisible = TRUE);
00086 virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00087
00088
00089
00090 protected:
00091
00092 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00093 afx_msg void OnDestroy();
00094 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00095 afx_msg void OnSize(UINT nType, int cx, int cy);
00096 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00097 afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
00098 afx_msg void OnNcRButtonUp(UINT nHitTest, CPoint point);
00099 afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
00100 afx_msg UINT OnNcHitTest(CPoint point);
00101 afx_msg void OnNcPaint();
00102 afx_msg BOOL OnNcActivate(BOOL bActive);
00103 afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
00104 afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
00105 afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
00106 afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
00107
00108 afx_msg LONG OnSetText(WPARAM wParam, LPARAM lParam);
00109 DECLARE_MESSAGE_MAP()
00110
00111 };
00112
00113
00114
00115 #define IDC_PANEL 101
00116
00117
00118 #endif // !defined(AFX_WNDCHILD_H__082500C0_14CD_4066_95F9_DA21AD8C7E72__INCLUDED_)