{"id":24,"date":"2007-04-03T00:00:00","date_gmt":"2007-04-03T05:00:00","guid":{"rendered":"http:\/\/mariusbancila.ro\/blog\/?p=24"},"modified":"2013-08-13T09:35:22","modified_gmt":"2013-08-13T07:35:22","slug":"mfc-in-orcas-support-for-vistas-command-button","status":"publish","type":"post","link":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/","title":{"rendered":"MFC in Orcas: support for Vista&#8217;s command button"},"content":{"rendered":"<p>MFC in Orcas comes with several important changes, such as support for Vista specific command button and split button. I have put together a small demo application displaying a command button with the tex Say &#8220;Hello Vista&#8221; and the note &#8220;Click on this button to show a &#8220;Hello Vista&#8221; message!&#8221;.<\/p>\n<p>The command button is still a <tt>CButton<\/tt>, but with the style <tt>BS_COMMANDLINK<\/tt> (or <tt>BS_DEFCOMMANDLINK<\/tt> for a default command button) set. To set the note you should use the <tt>SetNote()<\/tt> method. Additional <tt>GetNote()<\/tt> and <tt>GetNoteLength()<\/tt> methods are available for it. Here is a screenshot:<\/p>\n<p><img decoding=\"async\" title=\"Demo of command button for Vista\" alt=\"Demo of command button for Vista\" src=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2007\/04\/mfcdemo_normal.png\" align=\"middle\" \/><\/p>\n<p>However, there are several problems with the Orcas March CTP that I want to mention (and I hope these will fixed for the next beta version).<\/p>\n<p>When you create a project, add a command button and try to compile, the resource compiler will say that <tt>BS_COMMANDLINK<\/tt> is not recognized. The style is defined in commctrl.h like this:<\/p>\n<pre class=\"cpp\" name=\"code\">\r\n#if _WIN32_WINNT &gt;= 0x0600\r\n\r\n\/\/ BUTTON STATE FLAGS\r\n#define BST_DROPDOWNPUSHED      0x0400\r\n\r\n\/\/ BUTTON STYLES\r\n#define BS_SPLITBUTTON          0x0000000CL\r\n#define BS_DEFSPLITBUTTON       0x0000000DL\r\n#define BS_COMMANDLINK          0x0000000EL\r\n#define BS_DEFCOMMANDLINK       0x0000000FL<\/pre>\n<p>&nbsp;<\/p>\n<p>Trying to define <tt>_WIN32_WINNT<\/tt> as 0x0600 either in the project properties or in stdafx.h (if you use precompiled headers) does not help. You have to redeclare the styles whether in resource.h or in the .rc file, but as soon as the IDE modifies them, the code you put there is gone. This is a real bummer, and I&#8217;m still looking for the best solution. If I find it, I&#8217;ll post it here.<\/p>\n<p>The methods that are available for the command button are defined only for UNICODE builds for Vista, as can be seen in afxwin.h:<\/p>\n<pre class=\"cpp\" name=\"code\">\r\n#if ( _WIN32_WINNT &gt;= 0x0600 ) &amp;&amp; defined(UNICODE)\r\n\tCString GetNote() const;\r\n\t_Check_return_ BOOL GetNote(_Out_z_cap_(*pcchNote) LPTSTR lpszNote, _Inout_ UINT* pcchNote) const;\r\n\tBOOL SetNote(_In_z_ LPCTSTR lpszNote);\r\n\tUINT GetNoteLength() const;\r\n\tBOOL GetSplitInfo(_Out_ PBUTTON_SPLITINFO pInfo) const;\r\n\tBOOL SetSplitInfo(_In_ PBUTTON_SPLITINFO pInfo);\r\n\tUINT GetSplitStyle() const;\r\n\tBOOL SetSplitStyle(_In_ UINT nStyle);\r\n\tBOOL GetSplitSize(_Out_ LPSIZE pSize) const;\r\n\tBOOL SetSplitSize(_In_ LPSIZE pSize);\r\n\tCImageList* GetSplitImageList() const;\r\n\tBOOL SetSplitImageList(_In_ CImageList* pSplitImageList);\r\n\tTCHAR GetSplitGlyph() const;\r\n\tBOOL SetSplitGlyph(_In_ TCHAR chGlyph);\r\n\tBOOL SetDropDownState(_In_ BOOL fDropDown);\r\n\r\n\t\/\/ Sets whether the action associated with the button requires elevated permissions.\r\n\t\/\/ If elevated permissions are required then the button should display an elevated icon.\r\n\tHICON SetShield(_In_ BOOL fElevationRequired);\r\n#endif \/\/ ( _WIN32_WINNT &gt;= 0x600 ) &amp;&amp; defined(UNICODE)<\/pre>\n<p>&nbsp;<\/p>\n<p>However, if you look in MSDN, method SetShield is not found (though you can find the <tt>BCM_SETSHIELD<\/tt> window message). Instead <tt>SetElevationRequired()<\/tt> is listed as a member of <tt>CButton<\/tt>. This method does not actually exists. Moreover, the people that wrote the documentation don&#8217;t seem to know the difference between BOOL and bool (<a href=\"http:\/\/www.codeguru.com\/forum\/showthread.php?t=332831\">explained here<\/a>). This method takes a BOOL and returns a BOOL, but MSDN says it returns<\/p>\n<p><cite>true if the method is successful; otherwise false<\/cite><\/p>\n<p>Using <tt>SetShield()<\/tt> with TRUE, displays a shield icon on the button, as shown here:<\/p>\n<p><img decoding=\"async\" title=\"Demo command button for Vista with shield icon\" alt=\"Demo command button for Vista with shield icon\" src=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2007\/04\/mfcdemo_shield.png\" align=\"middle\" \/><\/p>\n<p>I hope the issues I mentioned above will be address very soon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MFC in Orcas comes with several important changes, such as support for Vista specific command button and split button. I have put together a small demo application displaying a command button with the tex Say &#8220;Hello Vista&#8221; and the note &#8220;Click on this button to show a &#8220;Hello Vista&#8221; message!&#8221;. The command button is still &#8230; <a title=\"MFC in Orcas: support for Vista&#8217;s command button\" class=\"read-more\" href=\"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/\" aria-label=\"Read more about MFC in Orcas: support for Vista&#8217;s command button\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[12],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-mfc"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Marius Bancila\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Marius Bancila&#039;s Blog | About code. Mostly on C++\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"MFC in Orcas: support for Vista\u2019s command button\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2007-04-03T05:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-08-13T07:35:22+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"MFC in Orcas: support for Vista\u2019s command button\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#article\",\"name\":\"MFC in Orcas: support for Vista\\u2019s command button\",\"headline\":\"MFC in Orcas: support for Vista&#8217;s command button\",\"author\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/mariusbancila.ro\\\/blog\\\/wp-content\\\/uploads\\\/2007\\\/04\\\/mfcdemo_normal.png\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#articleImage\"},\"datePublished\":\"2007-04-03T00:00:00+02:00\",\"dateModified\":\"2013-08-13T09:35:22+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#webpage\"},\"articleSection\":\"MFC\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/#listItem\",\"name\":\"IT\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/#listItem\",\"position\":2,\"name\":\"IT\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/#listItem\",\"name\":\"Software\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/#listItem\",\"position\":3,\"name\":\"Software\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/#listItem\",\"name\":\"C++\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/#listItem\",\"name\":\"IT\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/#listItem\",\"position\":4,\"name\":\"C++\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/mfc\\\/#listItem\",\"name\":\"MFC\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/#listItem\",\"name\":\"Software\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/mfc\\\/#listItem\",\"position\":5,\"name\":\"MFC\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/mfc\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#listItem\",\"name\":\"MFC in Orcas: support for Vista&#8217;s command button\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/#listItem\",\"name\":\"C++\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#listItem\",\"position\":6,\"name\":\"MFC in Orcas: support for Vista&#8217;s command button\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/c\\\/mfc\\\/#listItem\",\"name\":\"MFC\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#organization\",\"name\":\"Marius Bancila's Blog\",\"description\":\"About code. Mostly on C++\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Marius Bancila\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a84dd2831d955c38355ddea55df4df260809b88f36408bc14fd4eab8f7f131c9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Marius Bancila\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#webpage\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/\",\"name\":\"MFC in Orcas: support for Vista\\u2019s command button\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2007\\\/04\\\/03\\\/mfc-in-orcas-support-for-vistas-command-button\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2007-04-03T00:00:00+02:00\",\"dateModified\":\"2013-08-13T09:35:22+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/\",\"name\":\"Marius Bancila's Blog\",\"description\":\"About code. Mostly on C++\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"MFC in Orcas: support for Vista\u2019s command button","description":"","canonical_url":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#article","name":"MFC in Orcas: support for Vista\u2019s command button","headline":"MFC in Orcas: support for Vista&#8217;s command button","author":{"@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/mariusbancila.ro\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2007\/04\/mfcdemo_normal.png","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#articleImage"},"datePublished":"2007-04-03T00:00:00+02:00","dateModified":"2013-08-13T09:35:22+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#webpage"},"isPartOf":{"@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#webpage"},"articleSection":"MFC"},{"@type":"BreadcrumbList","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/mariusbancila.ro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/#listItem","name":"IT"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/#listItem","position":2,"name":"IT","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/#listItem","name":"Software"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/#listItem","position":3,"name":"Software","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/#listItem","name":"C++"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/#listItem","name":"IT"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/#listItem","position":4,"name":"C++","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/mfc\/#listItem","name":"MFC"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/#listItem","name":"Software"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/mfc\/#listItem","position":5,"name":"MFC","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/mfc\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#listItem","name":"MFC in Orcas: support for Vista&#8217;s command button"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/#listItem","name":"C++"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#listItem","position":6,"name":"MFC in Orcas: support for Vista&#8217;s command button","previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/mfc\/#listItem","name":"MFC"}}]},{"@type":"Organization","@id":"https:\/\/mariusbancila.ro\/blog\/#organization","name":"Marius Bancila's Blog","description":"About code. Mostly on C++","url":"https:\/\/mariusbancila.ro\/blog\/"},{"@type":"Person","@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author","url":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/","name":"Marius Bancila","image":{"@type":"ImageObject","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a84dd2831d955c38355ddea55df4df260809b88f36408bc14fd4eab8f7f131c9?s=96&d=mm&r=g","width":96,"height":96,"caption":"Marius Bancila"}},{"@type":"WebPage","@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#webpage","url":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/","name":"MFC in Orcas: support for Vista\u2019s command button","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/mariusbancila.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/#breadcrumblist"},"author":{"@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author"},"datePublished":"2007-04-03T00:00:00+02:00","dateModified":"2013-08-13T09:35:22+02:00"},{"@type":"WebSite","@id":"https:\/\/mariusbancila.ro\/blog\/#website","url":"https:\/\/mariusbancila.ro\/blog\/","name":"Marius Bancila's Blog","description":"About code. Mostly on C++","inLanguage":"en-US","publisher":{"@id":"https:\/\/mariusbancila.ro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Marius Bancila's Blog | About code. Mostly on C++","og:type":"article","og:title":"MFC in Orcas: support for Vista\u2019s command button","og:url":"https:\/\/mariusbancila.ro\/blog\/2007\/04\/03\/mfc-in-orcas-support-for-vistas-command-button\/","article:published_time":"2007-04-03T05:00:00+00:00","article:modified_time":"2013-08-13T07:35:22+00:00","twitter:card":"summary","twitter:title":"MFC in Orcas: support for Vista\u2019s command button"},"aioseo_meta_data":{"post_id":"24","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-18 21:04:15","updated":"2025-12-12 07:07:08","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"author_meta":{"display_name":"Marius Bancila","author_link":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/"},"featured_img":null,"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Marius Bancila","author_link":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/"},"uagb_comment_info":2,"uagb_excerpt":"MFC in Orcas comes with several important changes, such as support for Vista specific command button and split button. I have put together a small demo application displaying a command button with the tex Say &#8220;Hello Vista&#8221; and the note &#8220;Click on this button to show a &#8220;Hello Vista&#8221; message!&#8221;. The command button is still&hellip;","coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/c\/mfc\/\" class=\"advgb-post-tax-term\">MFC<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">MFC<\/span>"]}},"comment_count":"2","relative_dates":{"created":"Posted 20 years ago","modified":"Updated 13 years ago"},"absolute_dates":{"created":"Posted on April 3, 2007","modified":"Updated on August 13, 2013"},"absolute_dates_time":{"created":"Posted on April 3, 2007 12:00 am","modified":"Updated on August 13, 2013 9:35 am"},"featured_img_caption":"","series_order":"","jetpack_shortlink":"https:\/\/wp.me\/pYNdv-o","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":2,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":1608,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions\/1608"}],"wp:attachment":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}