📄 bcgpoutlookwnd.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_BCGPOUTLOOKWND_H__FFAA1381_D08D_11D5_A305_444553540000__INCLUDED_)
#define AFX_BCGPOUTLOOKWND_H__FFAA1381_D08D_11D5_A305_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BCGPOutlookWnd.h : header file
//
#include "BCGCBPro.h"
#include "BCGPBaseTabWnd.h"
#include "BCGPButton.h"
class CBCGPOutlookSrcrollButton : public CBCGPButton
{
virtual void OnFillBackground (CDC* pDC, const CRect& rectClient);
virtual void OnDrawBorder (CDC* pDC, CRect& rectClient, UINT uiState);
};
/////////////////////////////////////////////////////////////////////////////
// CBCGPOutlookWnd window
class BCGCBPRODLLEXPORT CBCGPOutlookWnd : public CBCGPBaseTabWnd
{
DECLARE_DYNCREATE(CBCGPOutlookWnd)
// Construction
public:
CBCGPOutlookWnd();
// Attributes
public:
virtual BOOL IsPtInTabArea (CPoint point) const;
virtual void GetTabArea (CRect& rectTabAreaTop, CRect& rectTabAreaBottom) const;
int GetBorderSize () const
{
return m_nBorderSize;
}
void SetBorderSize (int nBorderSize);
static void EnableAnimation (BOOL bEnable = TRUE);
static BOOL IsAnimation ()
{
return m_bEnableAnimation;
}
void SetPageButtonTextAlign (UINT uiAlign, BOOL bRedraw = TRUE);
// TA_LEFT, TA_CENTER or TA_RIGHT
// Operations
public:
virtual void RecalcLayout ();
virtual void EnableInPlaceEdit (BOOL bEnable)
{
ASSERT_VALID (this);
m_bIsInPlaceEdit = bEnable;
}
virtual void CalcRectEdit (CRect& rectEdit)
{
ASSERT_VALID(this);
rectEdit.DeflateRect (1, 1);
}
void EnableScrollButtons (BOOL bEnable = TRUE,
BOOL bIsUp = TRUE, BOOL bIsDown = TRUE);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCGPOutlookWnd)
public:
virtual BOOL Create(const CRect& rect, CWnd* pParentWnd, UINT nID);
protected:
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
virtual DROPEFFECT OnDragEnter(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
virtual DROPEFFECT OnDragOver(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
// Implementation
public:
virtual ~CBCGPOutlookWnd();
virtual BOOL SetActiveTab (int iTab);
virtual CWnd* FindTargetWnd (const CPoint& pt);
protected:
virtual int GetTabNumberToDetach (int nTabNum = -1) const;
void DrawTabButton (CDC& dc, int iButtonIdx, BOOL bDrawPressedButton = TRUE);
virtual void OnScrollUp () {}
virtual void OnScrollDown () {}
// Generated message map functions
protected:
//{{AFX_MSG(CBCGPOutlookWnd)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
CRect m_rectWndArea;
int m_nBorderSize;
BOOL m_bScrollButtons;
CBCGPOutlookSrcrollButton m_btnUp;
CBCGPOutlookSrcrollButton m_btnDown;
UINT m_nPageButtonTextAlign;
static BOOL m_bEnableAnimation;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BCGPOUTLOOKWND_H__FFAA1381_D08D_11D5_A305_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -