{"id":278,"date":"2014-06-23T23:44:25","date_gmt":"2014-06-23T14:44:25","guid":{"rendered":"http:\/\/csharp.ihavenomoney.co.kr\/?p=278"},"modified":"2017-10-13T17:14:59","modified_gmt":"2017-10-13T08:14:59","slug":"cmfcpropertygridproperty-%ed%94%bc%ec%b3%90%ed%8c%a9%ec%97%90%ec%84%9c-%ec%b6%94%ea%b0%80%eb%90%9c-%ec%83%88%eb%a1%9c%ec%9a%b4-mfc-%ec%bb%a8%ed%8a%b8%eb%a1%a4","status":"publish","type":"post","link":"https:\/\/csharp.ihavenomoney.co.kr\/?p=278","title":{"rendered":"CMFCPropertyGridProperty : \ud53c\uccd0\ud329\uc5d0\uc11c \ucd94\uac00\ub41c \uc0c8\ub85c\uc6b4 MFC \ucee8\ud2b8\ub864"},"content":{"rendered":"<p>CMFCPropertyGridProperty : \ube44\uc8fc\uc5bc \uc2a4\ud29c\ub514\uc624 \ud53c\uccd0\ud329\uc5d0\uc11c \ucd94\uac00\ub41c \uc0c8\ub85c\uc6b4 MFC \ucee8\ud2b8\ub864 \uc911\uc5d0 \uc544\uc8fc \uc720\uc6a9\ud55c \uac83<\/p>\n<p><a href=\"http:\/\/csharp.ihavenomoney.co.kr\/wp-content\/uploads\/2014\/06\/CMFCPropertyGridProperty.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-279 size-full\" src=\"http:\/\/csharp.ihavenomoney.co.kr\/wp-content\/uploads\/2014\/06\/CMFCPropertyGridProperty.png\" alt=\"CMFCPropertyGridProperty\" width=\"680\" height=\"548\" srcset=\"https:\/\/csharp.ihavenomoney.co.kr\/wp-content\/uploads\/2014\/06\/CMFCPropertyGridProperty.png 680w, https:\/\/csharp.ihavenomoney.co.kr\/wp-content\/uploads\/2014\/06\/CMFCPropertyGridProperty-300x241.png 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<pre class=\"lang:c++ decode:true \" title=\"m_wndPropList\" >void CPropertiesWnd::InitPropList()\r\n{\r\n    SetPropListFont(); \/\/\ud3f0\ud2b8\ucd08\uae30\ud654 \r\n\r\n\tm_wndPropList.EnableHeaderCtrl(FALSE); \/\/PropList \r\n\tm_wndPropList.EnableDescriptionArea();\r\n\tm_wndPropList.SetVSDotNetLook();\r\n\tm_wndPropList.MarkModifiedProperties();\r\n\r\n\t\/\/CMFCPropertyGridProperty : \ube44\uc8fc\uc5bc \uc2a4\ud29c\ub514\uc624 \ud53c\uccd0\ud329\uc5d0\uc11c \ucd94\uac00\ub41c \uc0c8\ub85c\uc6b4 MFC \ucee8\ud2b8\ub864 \uc911\uc5d0 \uc544\uc8fc \uc720\uc6a9\ud55c \uac83\r\n\t\/\/\tCMFCPropertyGridProperty(\r\n\t\/\/   const CString&amp; strGroupName,\/\/\uadf8\ub8f9 \uc774\ub984\r\n\t\/\/   DWORD_PTR dwData=0,\r\n\t\/\/   BOOL bIsValueList=FALSE \r\n\t\/\/);\r\n\t\/\/CMFCPropertyGridProperty(\r\n\t\/\/   const CString&amp; strName,\/\/\uc18d\uc131\uc774\ub984\r\n\t\/\/   const _variant_t&amp; varValue,\/\/\uc18d\uc131\uac12 \/\/\uadf8\ub8f9\uc774\uba74  (_variant_t) false\r\n\t\/\/   LPCTSTR lpszDescr=NULL,\/\/\uc18d\uc131\uc124\uba85 \r\n\t\/\/   DWORD_PTR dwData=0,\r\n\t\/\/   LPCTSTR lpszEditMask=NULL,\r\n\t\/\/   LPCTSTR lpszEditTemplate=NULL,\r\n\t\/\/   LPCTSTR lpszValidChars=NULL \r\n\t\/\/);\r\n\tCMFCPropertyGridProperty* pGroup1 = new CMFCPropertyGridProperty(_T(\"\ubaa8\uc591\"));\r\n\tpGroup1-&gt;AddSubItem(new CMFCPropertyGridProperty(_T(\"3D \ubaa8\uc591\"), (_variant_t) false, _T(\"\ucc3d\uc5d0 \uad75\uc740 \uae00\uaf34\uc774 \uc544\ub2cc \uae00\uaf34\uc744 \uc9c0\uc815\ud558\uace0, \ucee8\ud2b8\ub864\uc5d0 3D \ud14c\ub450\ub9ac\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.\")));\r\n\r\n\tCMFCPropertyGridProperty* pProp = new CMFCPropertyGridProperty(_T(\"\ud14c\ub450\ub9ac\"), _T(\"Dialog Frame\"), _T(\"None, Thin, Resizable \ub610\ub294 Dialog Frame \uc911 \ud558\ub098\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.\"));\r\n\tpProp-&gt;AddOption(_T(\"None\"));\r\n\tpProp-&gt;AddOption(_T(\"Thin\"));\r\n\tpProp-&gt;AddOption(_T(\"Resizable\"));\r\n\tpProp-&gt;AddOption(_T(\"Dialog Frame\"));\r\n\tpProp-&gt;AllowEdit(FALSE);\r\n\tpGroup1-&gt;AddSubItem(pProp);\r\n\tpGroup1-&gt;AddSubItem(new CMFCPropertyGridProperty(_T(\"\ucea1\uc158\"), (_variant_t) _T(\"\uc815\ubcf4\"), _T(\"\ucc3d\uc758 \uc81c\ubaa9 \ud45c\uc2dc\uc904\uc5d0 \ud45c\uc2dc\ub418\ub294 \ud14d\uc2a4\ud2b8\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.\")));\r\n\r\n\tm_wndPropList.AddProperty(pGroup1);\r\n\r\n\tCMFCPropertyGridProperty* pSize = new CMFCPropertyGridProperty(_T(\"\ucc3d \ud06c\uae30\"), 0, TRUE);\r\n\r\n\tpProp = new CMFCPropertyGridProperty(_T(\"\ub192\uc774\"), (_variant_t) 250l, _T(\"\ucc3d\uc758 \ub192\uc774\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.\"));\r\n\tpProp-&gt;EnableSpinControl(TRUE, 50, 300);\r\n\tpSize-&gt;AddSubItem(pProp);\r\n\r\n\tpProp = new CMFCPropertyGridProperty( _T(\"\ub108\ube44\"), (_variant_t) 150l, _T(\"\ucc3d\uc758 \ub108\ube44\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.\"));\r\n\tpProp-&gt;EnableSpinControl(TRUE, 50, 200);\r\n\tpSize-&gt;AddSubItem(pProp);\r\n\tm_wndPropList.AddProperty(pSize);\r\n\r\n\tCMFCPropertyGridProperty* pGroup2 = new CMFCPropertyGridProperty(_T(\"\uae00\uaf34\"));\r\n\r\n\tLOGFONT lf;\r\n\tCFont* font = CFont::FromHandle((HFONT) GetStockObject(DEFAULT_GUI_FONT));\r\n\tfont-&gt;GetLogFont(&amp;lf);\r\n\r\n\tlstrcpy(lf.lfFaceName, _T(\"\ub9d1\uc740 \uace0\ub515\"));\r\n\r\n\tpGroup2-&gt;AddSubItem(new CMFCPropertyGridFontProperty(_T(\"\uae00\uaf34\"), lf, CF_EFFECTS | CF_SCREENFONTS, _T(\"\ucc3d\uc758 \uae30\ubcf8 \uae00\uaf34\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.\")));\r\n\tpGroup2-&gt;AddSubItem(new CMFCPropertyGridProperty(_T(\"\uc2dc\uc2a4\ud15c \uae00\uaf34\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4.\"), (_variant_t) true, _T(\"\ucc3d\uc5d0\uc11c MS Shell Dlg \uae00\uaf34\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \uc9c0\uc815\ud569\ub2c8\ub2e4.\")));\r\n\tm_wndPropList.AddProperty(pGroup2);\r\n\r\n\tCMFCPropertyGridProperty* pGroup3 = new CMFCPropertyGridProperty(_T(\"\uae30\ud0c0\"));\r\n\tpProp = new CMFCPropertyGridProperty(_T(\"(\uc774\ub984)\"), _T(\"\uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\"));\r\n\tpProp-&gt;Enable(FALSE);\r\n\tpGroup3-&gt;AddSubItem(pProp);\r\n\r\n\tCMFCPropertyGridColorProperty* pColorProp = new CMFCPropertyGridColorProperty(_T(\"\ucc3d \uc0c9\uc0c1\"), RGB(210, 192, 254), NULL, _T(\"\ucc3d\uc758 \uae30\ubcf8 \uc0c9\uc0c1\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.\"));\r\n\tpColorProp-&gt;EnableOtherButton(_T(\"\uae30\ud0c0...\"));\r\n\tpColorProp-&gt;EnableAutomaticButton(_T(\"\uae30\ubcf8\uac12\"), ::GetSysColor(COLOR_3DFACE));\r\n\tpGroup3-&gt;AddSubItem(pColorProp);\r\n\r\n\tstatic const TCHAR szFilter[] = _T(\"\uc544\uc774\ucf58 \ud30c\uc77c(*.ico)|*.ico|\ubaa8\ub4e0 \ud30c\uc77c(*.*)|*.*||\");\r\n\tpGroup3-&gt;AddSubItem(new CMFCPropertyGridFileProperty(_T(\"\uc544\uc774\ucf58\"), TRUE, _T(\"\"), _T(\"ico\"), 0, szFilter, _T(\"\ucc3d \uc544\uc774\ucf58\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.\")));\r\n\r\n\tpGroup3-&gt;AddSubItem(new CMFCPropertyGridFileProperty(_T(\"\ud3f4\ub354\"), _T(\"c:\\\\\")));\r\n\r\n\tm_wndPropList.AddProperty(pGroup3);\r\n\r\n\tCMFCPropertyGridProperty* pGroup4 = new CMFCPropertyGridProperty(_T(\"\uacc4\uce35\"));\r\n\r\n\tCMFCPropertyGridProperty* pGroup41 = new CMFCPropertyGridProperty(_T(\"\uccab\ubc88\uc9f8 \ud558\uc704 \uc218\uc900\"));\r\n\tpGroup4-&gt;AddSubItem(pGroup41);\r\n\r\n\tCMFCPropertyGridProperty* pGroup411 = new CMFCPropertyGridProperty(_T(\"\ub450 \ubc88\uc9f8 \ud558\uc704 \uc218\uc900\"));\r\n\tpGroup41-&gt;AddSubItem(pGroup411);\r\n\r\n\tpGroup411-&gt;AddSubItem(new CMFCPropertyGridProperty(_T(\"\ud56d\ubaa9 1\"), (_variant_t) _T(\"\uac12 1\"), _T(\"\uc124\uba85\uc785\ub2c8\ub2e4.\")));\r\n\tpGroup411-&gt;AddSubItem(new CMFCPropertyGridProperty(_T(\"\ud56d\ubaa9 2\"), (_variant_t) _T(\"\uac12 2\"), _T(\"\uc124\uba85\uc785\ub2c8\ub2e4.\")));\r\n\tpGroup411-&gt;AddSubItem(new CMFCPropertyGridProperty(_T(\"\ud56d\ubaa9 3\"), (_variant_t) _T(\"\uac12 3\"), _T(\"\uc124\uba85\uc785\ub2c8\ub2e4.\")));\r\n\r\n\tpGroup4-&gt;Expand(FALSE);\r\n\tm_wndPropList.AddProperty(pGroup4);\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CMFCPropertyGridProperty : \ube44\uc8fc\uc5bc \uc2a4\ud29c\ub514\uc624 \ud53c\uccd0\ud329\uc5d0\uc11c \ucd94\uac00\ub41c \uc0c8\ub85c\uc6b4 MFC \ucee8\ud2b8\ub864 \uc911\uc5d0 \uc544\uc8fc \uc720\uc6a9\ud55c \uac83 void CPropertiesWnd::InitPropList() { SetPropListFont(); \/\/\ud3f0\ud2b8\ucd08\uae30\ud654 m_wndPropList.EnableHeaderCtrl(FALSE); \/\/PropList m_wndPropList.EnableDescriptionArea(); m_wndPropList.SetVSDotNetLook(); m_wndPropList.MarkModifiedProperties(); \/\/CMFCPropertyGridProperty : \ube44\uc8fc\uc5bc \uc2a4\ud29c\ub514\uc624 \ud53c\uccd0\ud329\uc5d0\uc11c \ucd94\uac00\ub41c \uc0c8\ub85c\uc6b4 MFC \ucee8\ud2b8\ub864 \uc911\uc5d0 \uc544\uc8fc \uc720\uc6a9\ud55c \uac83 \/\/ CMFCPropertyGridProperty( \/\/ const CString&amp; strGroupName,\/\/\uadf8\ub8f9 \uc774\ub984 \/\/ DWORD_PTR dwData=0, \/\/ BOOL bIsValueList=FALSE \/\/); \/\/CMFCPropertyGridProperty( \/\/ const CString&amp; strName,\/\/\uc18d\uc131\uc774\ub984\u2026 <span class=\"read-more\"><a href=\"https:\/\/csharp.ihavenomoney.co.kr\/?p=278\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":370,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c"],"jetpack_featured_media_url":"https:\/\/csharp.ihavenomoney.co.kr\/wp-content\/uploads\/2015\/09\/vs.png","_links":{"self":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=278"}],"version-history":[{"count":5,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":454,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/278\/revisions\/454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/media\/370"}],"wp:attachment":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}