⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mypicwnd.h

📁 电子相册程序,实现图片的浏览,放大缩小等动能!evc4.0下编译通过!
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -