From e5fa774d622d6852fe8e1f033045aed221649108 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 금, 15 10월 2021 13:24:54 +0900 Subject: [PATCH] Ongoing80 #3662 CF AOI Review 전설비 알람 발생 조치 --- ReviewHistory/ReveiwHistory/akWndArrange.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/ReviewHistory/ReveiwHistory/akWndArrange.h b/ReviewHistory/ReveiwHistory/akWndArrange.h new file mode 100644 index 0000000..4ffca31 --- /dev/null +++ b/ReviewHistory/ReveiwHistory/akWndArrange.h @@ -0,0 +1,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; +}; -- Gitblit v1.9.3