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

📄 util_clr.h

📁 比较详尽的介绍了短信的发送与接收的实现模块与程序
💻 H
字号:

// util_clr.h

#ifndef _INC_UTIL_CLR_
#define _INC_UTIL_CLR_


#include "util_pop.h"


// notificiations 
#define CCN_SELCHANGE  1

#define CCBDIM_CXEDGE    2
#define CCBDIM_CYEDGE    2
#define CCBDIM_CYBORDER  3
#define CCBDIM_CXBORDER  2
#define CCBDIM_CXSPACELEFT  4
#define CCBDIM_CXSPACERIGHT 1
#define CCBDIM_CXCOLORRECT  32
#define CCBDIM_CXDIVIDER     2
#define CCBDIM_CXARROW       5


class GColorComboBox : public CWnd
{
   DECLARE_MESSAGE_MAP()

public:
   GColorComboBox();

   BOOL Create(DWORD dwStyle, const RECT& rect,
               CWnd *pParentWnd, UINT nID);

   void SetColor(COLORREF clInit);
   COLORREF GetColor() const;

   virtual void UpdateColor(COLORREF clUpdate);

protected:  
   afx_msg void OnLButtonDown(UINT nFlags, CPoint pt);
   afx_msg int OnCreate(LPCREATESTRUCT lpcs);
   afx_msg BOOL OnEraseBkgnd(CDC *pDC);
   afx_msg void OnPaint();

   COLORREF m_cl;

public:
   virtual ~GColorComboBox();
};



#define CCDIM_SQUAREWIDTH   16
#define CCDIM_SQUAREHEIGHT  16
#define CCDIM_CYSPACE       3
#define CCDIM_CXSPACE       3
#define CCDIM_TOTALINDECES  16



class GPopupColorCtrl : public GPopupWindow
{
   DECLARE_MESSAGE_MAP();
   
public:
   GPopupColorCtrl(COLORREF clInit, 
                   GColorComboBox *pBuddyCombo);

   COLORREF GetSelectedColor();

protected:
   afx_msg void OnPaint();
   afx_msg BOOL OnEraseBkgnd(CDC *pDC);
   afx_msg void OnMouseMove(UINT nFlags, CPoint pt);
   afx_msg void OnLButtonUp(UINT nFlags, CPoint pt);
   afx_msg int OnCreate(LPCREATESTRUCT lpcs);

   void DrawColorSquare(CDC *pDC, int nIndex, CPoint pt);
   int CursorToColorIndex(CPoint ptTest);

   COLORREF m_clSelected;
   int m_nActiveSquare;
   int m_nCurHoverSquare;

   GColorComboBox *m_pBuddyCombo;

public:
   virtual ~GPopupColorCtrl();
};



#endif



⌨️ 快捷键说明

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