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

📄 colorshow.h

📁 是一个较好的缩放工具
💻 H
字号:
#if !defined(AFX_COLORSHOW_H__1D3163CC_97BE_45EE_828D_8C5D97A75ACC__INCLUDED_)
#define AFX_COLORSHOW_H__1D3163CC_97BE_45EE_828D_8C5D97A75ACC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorShow.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CColorShow window

class CColorShow : public CStatic
{
// Construction
public:
        CColorShow();

// Attributes
public:

// Operations
public:
   void RecomputeImage();
   void SetSize(int n);
   void AdjustPos(int dx, int dy);
   void Copy();
   void Show();
   void StartPick(CPoint pt);
   CRect MakeSelection();
   CRect MapSelection(const CRect & r);
// Overrides
        // ClassWizard generated virtual function overrides
        //{{AFX_VIRTUAL(CColorShow)
        //}}AFX_VIRTUAL

// Implementation
public:
        virtual ~CColorShow();

        // Generated message map functions
protected:
        int dx;
        int dy;
        HCURSOR dropper;
        CBitmap bmp;
        CPoint where;
        COLORREF color;
        BOOL select;
        CPoint previous;
        CPoint anchor;
        CRect selection;
        CSize GetSize();
        void PrepareDC(CDC & dc);
        void DrawSelection(CDC & dc);
        //{{AFX_MSG(CColorShow)
        afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
        afx_msg void OnMouseMove(UINT nFlags, CPoint point);
        afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
        afx_msg void OnPaint();
        //}}AFX_MSG

        DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


/****************************************************************************
*                                  UWM_POINT
* Inputs:
*       WPARAM: (WPARAM)MAKELONG(x, y): X, Y position
*       LPARAM: (LPARAM)(COLORREF) the pixel color
* Result: LRESULT
*       Logically void, 0, always
* Effect: 
*       Notifies the parent that a position and color have been selected
****************************************************************************/
#include "msg.h"

#define UWM_POINT_MSG _T("UWM_POINT-{9ED38EEB-3069-48b0-B770-E13BDAE8A1D3}")


#endif // !defined(AFX_COLORSHOW_H__1D3163CC_97BE_45EE_828D_8C5D97A75ACC__INCLUDED_)

⌨️ 快捷键说明

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