www.pudn.com > ÍøÂç¶Ë¿Ú¼àÊÓ.rar > BCGPDialogBar.h


//******************************************************************************* 
// COPYRIGHT NOTES 
// --------------- 
// This is a part of the BCGControlBar Library 
// Copyright (C) 1998-2000 BCGSoft Ltd. 
// All rights reserved. 
// 
// This source code can be used, distributed or modified 
// only under terms and conditions  
// of the accompanying license agreement. 
//******************************************************************************* 
 
#if !defined(AFX_BCGPDIALOGBAR_H__D80D5302_D01B_4806_B6DE_BD4505A1183D__INCLUDED_) 
#define AFX_BCGPDIALOGBAR_H__D80D5302_D01B_4806_B6DE_BD4505A1183D__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// BCGPDialogBar.h : header file 
// 
 
#include "BCGCBPro.h" 
#include "BCGPDockingControlBar.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CBCGPDialogBar window 
 
class BCGCBPRODLLEXPORT CBCGPDialogBar : public CBCGPDockingControlBar 
{ 
	DECLARE_SERIAL(CBCGPDialogBar) 
 
// Construction 
public: 
	CBCGPDialogBar(); 
 
	BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd, BOOL bHasGripper, 
			LPCTSTR lpszTemplateName, UINT nStyle, UINT nID, 
			DWORD dwTabbedStyle = CBRS_BCGP_REGULAR_TABS,  
			DWORD dwBCGStyle = dwDefaultBCGDockingBarStyle); 
	BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd, BOOL bHasGripper, 
			UINT nIDTemplate, UINT nStyle, UINT nID); 
 
	BOOL Create(CWnd* pParentWnd, LPCTSTR lpszTemplateName, 
			UINT nStyle, UINT nID) 
	{ 
		return Create (_T(""), pParentWnd, TRUE /* bHasGripper */, 
			lpszTemplateName, nStyle, nID); 
	} 
 
	BOOL Create(CWnd* pParentWnd, UINT nIDTemplate, 
			UINT nStyle, UINT nID) 
	{ 
		return Create (_T(""), pParentWnd, TRUE /* bHasGripper */, 
			nIDTemplate, nStyle, nID); 
	} 
 
// Attributes 
protected: 
	CSize m_sizeDefault; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CBCGPDialogBar) 
	//}}AFX_VIRTUAL 
 
	virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 
	virtual BOOL ClipPaint () const	{	return FALSE;	} 
 
// Implementation 
#ifndef _AFX_NO_OCC_SUPPORT 
	// data and functions necessary for OLE control containment 
	_AFX_OCC_DIALOG_INFO* m_pOccDialogInfo; 
	virtual BOOL SetOccDialogInfo(_AFX_OCC_DIALOG_INFO* pOccDialogInfo); 
#endif 
 
	//{{AFX_MSG(CBCGPDialogBar) 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos); 
	//}}AFX_MSG 
	afx_msg LRESULT HandleInitDialog(WPARAM, LPARAM); 
	DECLARE_MESSAGE_MAP() 
 
public: 
	virtual ~CBCGPDialogBar(); 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BCGPDIALOGBAR_H__D80D5302_D01B_4806_B6DE_BD4505A1183D__INCLUDED_)