📄 htransparentavidialog.h
字号:
// HTransparentAviDialog.h : main header file for the BITMAPDIALOG application
//
#if !defined(AFX_BITMAPDIALOG_H__55BE67E3_17E6_11D2_9AB8_0060B0CDC13E__INCLUDED_)
#define AFX_BITMAPDIALOG_H__55BE67E3_17E6_11D2_9AB8_0060B0CDC13E__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "dib256.h" // Added by ClassView
//#define CLR_STATICTEXT 1
/////////////////////////////////////////////////////////////////////////////
// CHTransparentAviDialog dialog
class AFX_EXT_CLASS CHTransparentAviDialog : public CDialog
{
// Construction
public:
CHTransparentAviDialog(UINT uResourceID, CWnd* pParent = NULL);
CHTransparentAviDialog(LPCTSTR pszResourceID, CWnd* pParent = NULL);
CHTransparentAviDialog();
enum {
BITMAP_TILE = 0, // tile the bitmap to fill the dialog
BITMAP_STRETCH, // stretch the bitmap so it fits to the dialog
BITMAP_CENTER // center the bitmap inside the dialog
};
// Attributes
public:
BOOL SetBitmap(UINT uResource, int Type = CHTransparentAviDialog::BITMAP_TILE);
BOOL SetBitmap(HINSTANCE hResourceInstance,CString strResource, int Type = CHTransparentAviDialog::BITMAP_TILE);
// Dialog Data
protected:
//{{AFX_DATA(CHTransparentAviDialog)
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
protected:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHTransparentAviDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CDIBitmap m_bmpBackground;
int m_nType; // see enum above
CBrush m_HollowBrush;
CBrush m_brEditBrush;
// Generated message map functions
//{{AFX_MSG(CHTransparentAviDialog)
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg BOOL OnQueryNewPalette();
afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//COLORREF m_crStaticText;
void CommonConstruct();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BITMAPDIALOG_H__55BE67E3_17E6_11D2_9AB8_0060B0CDC13E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -