From 03152a241b9463c582b56896f5f5f73717497ab4 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 수, 25 8월 2021 11:20:43 +0900 Subject: [PATCH] Ongoing100 #3486 CF AOI Review Review History 프로그램 테스트 및 적용 --- 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