SDC C-Project CF Review 프로그램
LYW
2022-06-30 c220de6f70051797e9d8b371830d06def9dc9cbd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
 
#include "afxcmn.h"
 
 
class CakStaticGroup : public CStatic
{
public:
    CakStaticGroup(void);
    ~CakStaticGroup(void);
    //virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
 
public:
    void clear();
    void setImage(UINT bitmapid, int drawType =0);
    void setTransparency(bool bflag, COLORREF color = RGB(255,255,254));
 
    void setFont(char* fontName, int fontSize);//NullÀ̰ųª -1À̸頱âÁ¸°ª ±×´ë·Î »ç¿ë
public:
    void SmartBitmapScale(CDC* pDC, CRect rectDC/*±×·ÁÁú°÷ÀÇ À§Ä¡*/, CBitmap* bitmap);
    void SmartBitmapScaleTransparent(CDC* pDC, CRect rectDC/*±×·ÁÁú°÷ÀÇ À§Ä¡*/, CBitmap* bitmap,  COLORREF trColor);
 
public:
    CRect m_rectMargin;//smartbitmapscale ±×¸®´Â ¿©¹é
 
    bool m_bTransparency;
    COLORREF m_TransparencyColor;
 
    CFont m_fontTitle;
    COLORREF m_colorTitle;
 
    UINT m_nTitleTextAlign; //TA_LEFT|TA_BOTTOM
    int m_nTitlePosX;
    int m_nTitlePosY;
 
    CRect m_rectClient;
protected:
    CBitmap m_bitImage;
    BITMAP    m_bitImageInfo;
    bool m_bImageLoad;
    int m_nDrawtype;
 
 
 
 
public:
    DECLARE_MESSAGE_MAP()
    afx_msg BOOL OnEraseBkgnd(CDC* pDC);
    virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/);
    afx_msg void OnPaint();
    virtual BOOL Create(LPCTSTR lpszText, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID = 0xffff);
    virtual BOOL PreTranslateMessage(MSG* pMsg);
};