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

📄 mywnd.h

📁 电子相册程序,实现图片的浏览,放大缩小等动能!evc4.0下编译通过!
💻 H
字号:
#pragma once

#include "FileFindExt.h"
#include "Picture.h"
// CMyWnd
#define MAX_RECT        8
struct tagPictrue
{
	BOOL IsLoaded;
	CString filePath;
};

class CMyWnd : public CStatic
{
	DECLARE_DYNAMIC(CMyWnd)
    CRect m_Rect;
	COLORREF m_bkColor;
	COLORREF m_textColor;
	CDC  m_bkDC;
	CDC  m_selPicDC;
	CDC  m_compDC;
	CBitmap m_bkBitmap;
	CBitmap m_compBitmap;
	CBitmap m_selpicBitmap;
	CRect m_picRects[MAX_RECT];
	tagPictrue m_picInfos[MAX_RECT];
    int m_selIndex;
	int m_nextLoad;

	int n;
	
	CString m_strPicPath;
	CFileFindExt findFile;
	CPicture pic;

	CString m_strText;

public:
	CMyWnd();
	virtual ~CMyWnd();
	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 LButtonUp(CPoint& point);
	CString LButtonDblClk(CPoint& point);
	void OnSelectPic(int index);
	void LoadPic(const CString& strPath);
    void OnBTDown();
	void OnBTUp();
	void UpdateText(int num,int maxnum);
private:
    void InitpicInfo();
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();
};


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -