📄 imageeditdlg.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_IMAGEEDITDLG_H__07E27535_C6D9_11D1_A647_00A0C93A70EC__INCLUDED_)
#define AFX_IMAGEEDITDLG_H__07E27535_C6D9_11D1_A647_00A0C93A70EC__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ImageEditDlg.h : header file
//
#include "BCGCBPro.h"
#include "BCGPColorBar.h"
#include "ImagePaintArea.h"
#include "BCGPToolBar.h"
class CImageEditorPaletteBar : public CBCGPToolBar
{
virtual BOOL IsButtonExtraSizeAvailable () const
{
return FALSE;
}
};
/////////////////////////////////////////////////////////////////////////////
// CBCGPImageEditDlg dialog
class BCGCBPRODLLEXPORT CBCGPImageEditDlg : public CDialog
{
friend CImagePaintArea;
// Construction
public:
CBCGPImageEditDlg(CBitmap* pBitmap, CWnd* pParent = NULL,
int nBitsPixel = -1); // standard constructor
// Dialog Data
//{{AFX_DATA(CBCGPImageEditDlg)
enum { IDD = IDD_BCGBARRES_IMAGE_EDITOR };
CStatic m_wndColorPickerLocation;
CStatic m_wndPaletteBarLocation;
CStatic m_wndPreview;
CImagePaintArea m_wndLargeDrawArea;
//}}AFX_DATA
// Operations:
protected:
BOOL OnPickColor (COLORREF color);
void SetMode (CImagePaintArea::IMAGE_EDIT_MODE mode)
{
m_wndLargeDrawArea.SetMode (mode);
}
CImagePaintArea::IMAGE_EDIT_MODE GetMode () const
{
return m_wndLargeDrawArea.GetMode ();
}
protected:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCGPImageEditDlg)
public:
virtual int DoModal();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CBCGPImageEditDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnBcgToolClear();
afx_msg void OnBcgToolCopy();
afx_msg void OnBcgToolPaste();
afx_msg void OnUpdateBcgToolPaste(CCmdUI* pCmdUI);
afx_msg void OnBcgToolEllipse();
afx_msg void OnBcgToolFill();
afx_msg void OnBcgToolLine();
afx_msg void OnBcgToolPen();
afx_msg void OnBcgToolPick();
afx_msg void OnBcgToolRect();
afx_msg void OnUpdateBcgToolEllipse(CCmdUI* pCmdUI);
afx_msg void OnUpdateBcgToolFill(CCmdUI* pCmdUI);
afx_msg void OnUpdateBcgToolLine(CCmdUI* pCmdUI);
afx_msg void OnUpdateBcgToolPen(CCmdUI* pCmdUI);
afx_msg void OnUpdateBcgToolPick(CCmdUI* pCmdUI);
afx_msg void OnUpdateBcgToolRect(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg LRESULT OnKickIdle(WPARAM, LPARAM);
afx_msg void OnColors();
DECLARE_MESSAGE_MAP()
// Attributes:
CBitmap* m_pBitmap;
CSize m_sizeImage;
int m_nBitsPixel;
CRect m_rectPreviewFrame;
CRect m_rectPreviewImage;
CImageEditorPaletteBar m_wndPaletteBar;
CBCGPColorBar m_wndColorBar;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IMAGEEDITDLG_H__07E27535_C6D9_11D1_A647_00A0C93A70EC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -