sdk:wtl
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
sdk:wtl [2021/04/24 17:10] – kieuns | sdk:wtl [2024/04/23 22:43] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | < | ||
+ | ======ATL/ | ||
+ | |||
+ | * MSVS 2019 기준 | ||
+ | * 기본 정보 : [[https:// | ||
+ | |||
+ | WTL for MFC Programmers, | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | CWindowImpl | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | 창을 만드는 설명 | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | Using the ATL Windowing Classes | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | 빈 윈도우 만들기 | ||
+ | |||
+ | * Win32 데스크톱용 위저드로 만들어서, | ||
+ | |||
+ | <code cpp> | ||
+ | #include " | ||
+ | #define WIN32_LEAN_AND_MEAN | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | #include " | ||
+ | |||
+ | |||
+ | class MainWindow : public CWindowImpl< | ||
+ | { | ||
+ | public: | ||
+ | DECLARE_WND_CLASS(_T(" | ||
+ | |||
+ | |||
+ | BEGIN_MSG_MAP(MainWindow); | ||
+ | // | ||
+ | MESSAGE_HANDLER(WM_DESTROY, | ||
+ | END_MSG_MAP(); | ||
+ | |||
+ | |||
+ | LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) | ||
+ | { | ||
+ | PostQuitMessage(0); | ||
+ | return 0; | ||
+ | } | ||
+ | }; | ||
+ | |||
+ | |||
+ | int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | ||
+ | { | ||
+ | MainWindow _wnd; | ||
+ | RECT _rc = { 0, 0, 200, 200 }; | ||
+ | |||
+ | _wnd.Create(0, | ||
+ | _wnd.CenterWindow(); | ||
+ | |||
+ | if(!_wnd) return -1; | ||
+ | |||
+ | _wnd.ShowWindow(nCmdShow); | ||
+ | _wnd.UpdateWindow(); | ||
+ | |||
+ | HACCEL hAccelTable = LoadAccelerators(hInstance, | ||
+ | |||
+ | MSG msg; | ||
+ | while(GetMessage(& | ||
+ | { | ||
+ | if(!TranslateAccelerator(msg.hwnd, | ||
+ | { | ||
+ | TranslateMessage(& | ||
+ | DispatchMessage(& | ||
+ | } | ||
+ | } | ||
+ | |||
+ | return 0; | ||
+ | } | ||
+ | </ |
sdk/wtl.txt · 마지막으로 수정됨: 2024/04/23 22:43 저자 127.0.0.1