SDC C-Project CF Review 프로그램
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
#pragma once
 
//´ÙÀ̾ó·Î±× Å©±âº¯È­¿¡ µû¸¥ Å©±â À§Ä¡ ÀÚµ¿ ÁöÁ¤   ÅÂÇö[2016/12/23]
#include <vector>
 
enum _POSSIZETYPE
{
    WA_LEFTTOP = 0x1,
    WA_LEFTBOTTOM = 0x2,
    WA_RIGHTTOP = 0x4,
    WA_RIGHTBOTTOM = 0x8,
    WA_RESIZE_WIDTH = 0x10,
    WA_RESIZE_HEIGHT = 0x20,
};
 
class CakWndArrange
{
public:
    CakWndArrange(void);
    virtual ~CakWndArrange(void);
 
protected:
    struct _WndData 
    {
        HWND hWnd;
        CRect rectOrginal;
        int nStyle;
    };
 
public:
    void clear();
    void setParentWnd(CWnd* pWnd);
    void addChildWnd(CWnd* pWnd, int nStyle);
    void setChildStyle(CWnd* pWnd, int nStyle);
    
    void process(int nWidth, int nHeight);//void OnSize(UINT nType, int cx, int cy) ÇÔ¼ö¿¡¼­ È£Ãâ
protected:
    CWnd* m_pWndParent;
    CRect m_rectOriginal;
    std::vector<_WndData> m_vecWndChild;
};