mypicwnd.h
来自「电子相册程序,实现图片的浏览,放大缩小等动能!evc4.0下编译通过!」· C头文件 代码 · 共 52 行
H
52 行
#pragma once
// CMyPicWnd
#include "PicSerialize.h"
class CMyPicWnd : public CStatic
{
DECLARE_DYNAMIC(CMyPicWnd)
CRect m_Rect;
COLORREF m_bkColor;
COLORREF m_textColor;
CDC m_bkDC;
CDC m_compDC;
CDC m_picDC;
CBitmap m_bkBitmap;
CBitmap m_compBitmap;
CBitmap m_picBitmap;
int m_layout;
// int m_nPages;
int m_nCurPage;
CString m_picPath1;
CString m_picPath2;
CString m_strText;
CPicSerialize m_picSeri;
public:
CMyPicWnd();
virtual ~CMyPicWnd();
BOOL Create(DWORD style, const RECT& rect, CWnd* pParentWnd, UINT ID);
//void SetBkColor(COLORREF bkColor, COLORREF TextColor = RGB(0,255,0));
void DrawBK();
void DrawNumText(CString& numString);
void ChangeLayout(int nlay);
void PlacePhoto(CString& picPath);
void DoPothoBook();
void UpdateText(int num);
int m_HavedNum;
protected:
DECLARE_MESSAGE_MAP()
public:
void NextPage();
void PrevPage();
void DrawPhoto(CRect rect, CString& picPath);
afx_msg void OnPaint();
private:
void DrawFrame();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?