{"id":114,"date":"2010-04-17T22:57:18","date_gmt":"2010-04-18T07:57:18","guid":{"rendered":"\/blog\/?p=114"},"modified":"2023-09-21T09:41:14","modified_gmt":"2023-09-21T00:41:14","slug":"%ec%9c%88%eb%8f%84%ec%9a%b0%ec%a6%88-mfc-%ed%81%b4%eb%9e%98%ec%8a%a4-%ec%a0%91%ea%b7%bc-4%ea%b0%80%ec%a7%80-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=114","title":{"rendered":"\uc708\ub3c4\uc6b0\uc988 MFC \ud074\ub798\uc2a4 \uc811\uadfc 4\uac00\uc9c0 \ubc29\ubc95"},"content":{"rendered":"\n<P><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\uc608\uc804\uc5d0 4\ub300 Class \uc811\uadfc\ubc29\ubc95\uc774\ub77c\ub294 \uc790\ub8cc\uc911 \ub2e4\uc74c \ud074\ub798\uc2a4\uac04\uc758 \ud3ec\uc778\ud130 \uc5bb\ub294 \ubc29\ubc95.<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\uadf8\ub9bc\uc73c\ub85c \uc124\uba85\ub41c\uac83\uc774 \uc788\ub294\ub370 \ucc3e\uc744\uc218\uac00 \uc5c6\ub2e4 \u3160_\u3160<\/SPAN><\/P>\n<P><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestApp, CMainFrame, CTestDoc, CTestView<\/SPAN><br \/><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\u25ce CTestApp\uc5d0\uc11c<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CMainFrame* pFrame =&nbsp;(CMainFrame*)AfxGetMainWnd();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestDoc* pDoc =&nbsp;(CTestDoc*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveDocument();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestView* pView =&nbsp;(CTestView*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveView();<\/SPAN><br \/><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\u25ce CMainFrame\uc5d0\uc11c<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestApp* pApp =&nbsp;(CTestApp*)AfxGetApp();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestDoc* pDoc =&nbsp;(CTestDoc*)GetActiveDocument();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestView* pView =&nbsp;(CTestView*)GetActiveView();<\/SPAN><br \/><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\u25ce CTestDoc\uc5d0\uc11c<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestApp* pApp =&nbsp;(CTestApp*)AfxGetApp();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CMainFrame* pFrame =&nbsp;(CMainFrame*)AfxGetMainWnd();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestView* pView =&nbsp;(CTestView*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveView();<\/SPAN><br \/><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\u25ce CTestView\uc5d0\uc11c<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestApp* pApp =&nbsp;(CTestApp*)AfxGetApp();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CMainFrame* pFrame =&nbsp;(CMainFrame*)AfxGetMainWnd();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; or (CMainFrame*)GetParent();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestDoc* pDoc =&nbsp;(CTestDoc*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveDocument();<\/SPAN><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; or (CTestDoc*)GetDocument();<\/SPAN><\/P>\n<P><br \/><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">&nbsp;<\/SPAN><\/P>\n<P><FONT color=#0000ff><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">\u25ce \uae30\ud0c0 \ud074\ub798\uc2a4\uc5d0\uc11c View\uc5bb\uae30<\/SPAN><\/FONT><\/P>\n<P><FONT color=#0000ff><SPAN style=\"FONT-FAMILY: \uad74\ub9bc\uccb4\">CTestView* pView =&nbsp;(CTestView*) ((CFrameWnd*)AfxGetApp()-&gt;GetMainWnd())-&gt;GetActiveView();<\/SPAN><br \/><\/P><\/FONT>\n","protected":false},"excerpt":{"rendered":"<p>\uc608\uc804\uc5d0 4\ub300 Class \uc811\uadfc\ubc29\ubc95\uc774\ub77c\ub294 \uc790\ub8cc\uc911 \ub2e4\uc74c \ud074\ub798\uc2a4\uac04\uc758 \ud3ec\uc778\ud130 \uc5bb\ub294 \ubc29\ubc95.\uadf8\ub9bc\uc73c\ub85c \uc124\uba85\ub41c\uac83\uc774 \uc788\ub294\ub370 \ucc3e\uc744\uc218\uac00 \uc5c6\ub2e4 \u3160_\u3160 CTestApp, CMainFrame, CTestDoc, CTestView \u25ce CTestApp\uc5d0\uc11cCMainFrame* pFrame =&nbsp;(CMainFrame*)AfxGetMainWnd();CTestDoc* pDoc =&nbsp;(CTestDoc*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveDocument();CTestView* pView =&nbsp;(CTestView*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveView(); \u25ce CMainFrame\uc5d0\uc11cCTestApp* pApp =&nbsp;(CTestApp*)AfxGetApp();CTestDoc* pDoc =&nbsp;(CTestDoc*)GetActiveDocument();CTestView* pView =&nbsp;(CTestView*)GetActiveView(); \u25ce CTestDoc\uc5d0\uc11cCTestApp* pApp =&nbsp;(CTestApp*)AfxGetApp();CMainFrame* pFrame =&nbsp;(CMainFrame*)AfxGetMainWnd();CTestView* pView =&nbsp;(CTestView*)((CMainFrame*)AfxGetMainWnd())-&gt;GetActiveView(); \u25ce CTestView\uc5d0\uc11cCTestApp* pApp =&nbsp;(CTestApp*)AfxGetApp();CMainFrame* pFrame =&nbsp;(CMainFrame*)AfxGetMainWnd();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-development_language"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}