📄 bcgpdialog.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.
//*******************************************************************************
#ifndef BCG_NO_DIALOG
#if !defined(AFX_BCGPDIALOG_H__09800B11_4F60_11D4_AB0C_000000000000__INCLUDED_)
#define AFX_BCGPDIALOG_H__09800B11_4F60_11D4_AB0C_000000000000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BCGCBPro.h"
#include "bcgpdlgimpl.h"
/////////////////////////////////////////////////////////////////////////////
// CBCGPDialog dialog
class BCGCBPRODLLEXPORT CBCGPDialog : public CDialog
{
friend class CBCGPPopupMenu;
friend class CBCGPContextMenuManager;
DECLARE_DYNAMIC(CBCGPDialog)
// Construction
public:
CBCGPDialog();
CBCGPDialog(UINT nIDTemplate, CWnd *pParent= NULL);
CBCGPDialog(LPCTSTR lpszTemplateName, CWnd *pParentWnd= NULL);
protected:
void CommonConstruct ();
// Attributes:
public:
enum BackgroundLocation
{
BACKGR_TILE,
BACKGR_TOPLEFT,
BACKGR_TOPRIGHT,
BACKGR_BOTTOMLEFT,
BACKGR_BOTTOMRIGHT,
};
protected:
HBITMAP m_hBkgrBitmap;
CSize m_sizeBkgrBitmap;
CBrush m_brBkgr;
BackgroundLocation m_BkgrLocation;
BOOL m_bAutoDestroyBmp;
CBCGPDlgImpl m_Impl;
// Operations:
public:
void SetBackgroundColor (COLORREF color, BOOL bRepaint = TRUE);
void SetBackgroundImage (HBITMAP hBitmap,
BackgroundLocation location = BACKGR_TILE,
BOOL bAutoDestroy = TRUE,
BOOL bRepaint = TRUE);
BOOL SetBackgroundImage (UINT uiBmpResId,
BackgroundLocation location = BACKGR_TILE,
BOOL bRepaint = TRUE);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCGPDialog)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CBCGPDialog)
afx_msg void OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized);
afx_msg BOOL OnNcActivate(BOOL bActive);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnDestroy();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
void SetActiveMenu (CBCGPPopupMenu* pMenu);
};
#endif // BCG_NO_DIALOG
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BCGPDIALOG_H__09800B11_4F60_11D4_AB0C_000000000000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -