<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Rounded Corners on Windows 11</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Rounded Corners on Windows 11]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 09:13:49 +0000</pubDate>
  <lastBuildDate>Wed, 26 Jan 2022 15:30:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24223</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Hi cepde,I totally missed the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78383&amp;title=rounded-corners-on-windows-11#78383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 26 January 2022 at 3:30pm<br /><br /><div>Hi cepde,</div><div><br></div><div>I totally missed the XTP_ID_RIBBONBACKSTAGE_BACK and implemented my own "Back" button. So I just called to add that command to my backstage and then to set the control to manual update and enabled it. Worked fine. But, I have no tooltip string or image. Did you create your own image and add it to the image manager? When I added the command, the toolkit pro DLL was the main resource handle. No string there so CJ just went the whole MFC route to find a string (none found on my box, which wouldn't have been correct in any case).</div><div><br></div><div>Does CJ have its own icon? We provide our own translations so the image is my only impediment to using the CJ "Back" command.<br></div>]]>
   </description>
   <pubDate>Wed, 26 Jan 2022 15:30:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78383&amp;title=rounded-corners-on-windows-11#78383</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Unfortunately it is really tough...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78382&amp;title=rounded-corners-on-windows-11#78382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 26 January 2022 at 3:10pm<br /><br />Unfortunately it is really tough to resize our app if shadows is off. At least on my 4k monitor. I spend a lot of time trying to get the resize cursor icon to show up and not go away when I press the mouse button. Probably my achy shaky hand.<br>]]>
   </description>
   <pubDate>Wed, 26 Jan 2022 15:10:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78382&amp;title=rounded-corners-on-windows-11#78382</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Its fine I guess. It had a lot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78350&amp;title=rounded-corners-on-windows-11#78350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9372">dbrookes</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 20 December 2021 at 12:46am<br /><br />Its fine I guess. It had a lot of bugs on release but they've been ironing them out. Its more or less just a reskin of Windows 10 with some extra features like WSLG. They didn't even increment the NT version which is surprising. <br>]]>
   </description>
   <pubDate>Mon, 20 Dec 2021 00:46:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78350&amp;title=rounded-corners-on-windows-11#78350</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Can you please tell me what you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78294&amp;title=rounded-corners-on-windows-11#78294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9514">SueDowell</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 26 October 2021 at 8:17am<br /><br />Can you please tell me what you think of Windows 11? Is it good or the usual?)]]>
   </description>
   <pubDate>Tue, 26 Oct 2021 08:17:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78294&amp;title=rounded-corners-on-windows-11#78294</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : I have m_bAllowDwm set to FALSE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78287&amp;title=rounded-corners-on-windows-11#78287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9372">dbrookes</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 11 October 2021 at 8:59pm<br /><br /><div>I have m_bAllowDwm set to FALSE by the looks of it (its been like that for years). It looks like the Office 2013/2016 frame theme automatically turns it off anyway.<br></div><div><br></div><div>Maybe try it on the ribbon sample and see what happens. I've not noticed issues yet.</div><div><br></div><div>About the snap menu layout. I looked at this as well. That works okay with XTP's frame hook if you are using menu bar + toolbars since XTP handles WM_NCHITTEST there. However, if you are using a ribbon bar the maximize button (and others) are part of the ribbon bar itself which is not in the non client area, therefore no WM_NCHITTEST. You just have to press the shortcut to get to it (Win + Z).<br></div>]]>
   </description>
   <pubDate>Mon, 11 Oct 2021 20:59:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78287&amp;title=rounded-corners-on-windows-11#78287</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Thanks for posting, and I can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78281&amp;title=rounded-corners-on-windows-11#78281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 11 October 2021 at 9:45am<br /><br />Thanks for posting, and I can add this for more info:<div><a href="http://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-rounded-corners" target="_blank" rel="nofollow">https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-rounded-corners</a></div><div><br></div><div>But, this probably only works when?</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>pCommandBars-&gt;GetFrameHook()-&gt;m_bAllowDwm = TRUE;</div><div></pre></td></tr></table></div><div><br></div><div>And in my attempt to use DWM, I got this funny looking drawing error, cutting the top of the full page backstage back arrow, using the Office 2016 themes:</div><div>(corrected: maybe it is drawing white on white, why it looks clipped?)</div><div><img src="uploads/686/XTToolkit_DWM_Office_2016_Drawing_Error.png" height="66" width="622" border="0" /><br></div><div><br></div><div>Will CodeJock need to implement the rounded corners in the themes directly?</div><div><br></div><div>PS, also notice the new&nbsp;<a href="http://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu" target="_blank" rel="nofollow">https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu</a>&nbsp;Windows 11 feature, that probably also needs to be implemented into the themes?</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 11 Oct 2021 09:45:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78281&amp;title=rounded-corners-on-windows-11#78281</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Thanks, another great contribute....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78279&amp;title=rounded-corners-on-windows-11#78279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9461">Pesci7</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 11 October 2021 at 6:36am<br /><br /><div>Thanks, another great contribute. It works on the main window and also on the splash screen.</div><div>Is it possible to have rounded corner also on context menu?</div><div><br></div><div>The drawback is that we have again the problem of catching the border of the window for resizing.<br></div>]]>
   </description>
   <pubDate>Mon, 11 Oct 2021 06:36:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78279&amp;title=rounded-corners-on-windows-11#78279</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : Windows 11 won&amp;#039;t enable it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78278&amp;title=rounded-corners-on-windows-11#78278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9372">dbrookes</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 11 October 2021 at 3:40am<br /><br /><div>Windows 11 won't enable it by default when the application is drawing its own window frame. They talk a little bit about it here <a href="https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-rounded-corners" target="_blank" rel="nofollow">https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-rounded-corners</a> and how to force enable it using dwmapi.</div><div><br></div><div>I've tested forcing rounded corners with XTP frame hook theming and it <i>seems </i>to work okay.<br></div><div><br></div><div>Here is a sample I have tested with:<br></div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>///<br>/// \enum CornerPreference<br>/// <br></div><div>enum class CornerPreference<br>&nbsp; {<br>&nbsp; Default&nbsp;&nbsp;&nbsp; = 0, ///&lt; Let the system decide to round window corners.<br>&nbsp; DoNotRound = 1, ///&lt; Never round window corners.<br>&nbsp; Round&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 2, ///&lt; Round corners if appropriate.<br>&nbsp; RoundSmall = 3, ///&lt; Round corners if appropriate (with small radius).<br>&nbsp; };</div><div><br></div><div>HRESULT UpdateWindows11RoundCorners(HWND hWnd, CornerPreference cornerPreference)<br>&nbsp; {<br>&nbsp; typedef HRESULT(WINAPI *PFNSETWINDOWATTRIBUTE)(HWND hWnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute);<br><br>&nbsp; // We don't build against the Windows 11 SDK so we define these ourselves. These are normally<br>&nbsp; // defined in dwmapi.h header.<br><br>&nbsp; ///<br>&nbsp; /// \enum DWMWINDOWATTRIBUTE<br>&nbsp; /// <br>&nbsp; enum DWMWINDOWATTRIBUTE<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; DWMWA_WINDOW_CORNER_PREFERENCE = 33<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp; ///<br>&nbsp; /// \enum DWM_WINDOW_CORNER_PREFERENCE<br>&nbsp; /// <br>&nbsp; enum DWM_WINDOW_CORNER_PREFERENCE<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; DWMWCP_DEFAULT&nbsp;&nbsp;&nbsp; = 0,<br>&nbsp;&nbsp;&nbsp; DWMWCP_DONOTROUND = 1,<br>&nbsp;&nbsp;&nbsp; DWMWCP_ROUND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 2,<br>&nbsp;&nbsp;&nbsp; DWMWCP_ROUNDSMALL = 3<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp; HMODULE hDwmApi = ::LoadLibrary(_T("dwmapi.dll"));<br>&nbsp; if (hDwmApi)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; auto *pfnSetWindowAttribute = reinterpret_cast&lt;PFNSETWINDOWATTRIBUTE&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::GetProcAddress(hDwmApi, "DwmSetWindowAttribute"));<br>&nbsp;&nbsp;&nbsp; if (pfnSetWindowAttribute)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto preference = static_cast&lt;DWM_WINDOW_CORNER_PREFERENCE&gt;(cornerPreference);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return pfnSetWindowAttribute(hWnd, DWMWA_WINDOW_CORNER_PREFERENCE, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;preference, sizeof(DWM_WINDOW_CORNER_PREFERENCE));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; ::FreeLibrary(hDwmApi);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp; return E_FAIL;<br>&nbsp; }<br></div><div></pre></td></tr></table></div><div><br></div><div>One thing you'll need to do with XTP frame hook is disable XTP's frame shadows as they won't work correctly with the rounded corners, as you'd probably expect. If that set window attribute function succeeds you should call pCommandBars-&gt;GetFrameHook()-&gt;DisableShadows(). Your window should then be using the built-in system shadows instead (at least ours seems to).<br></div>]]>
   </description>
   <pubDate>Mon, 11 Oct 2021 03:40:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78278&amp;title=rounded-corners-on-windows-11#78278</guid>
  </item> 
  <item>
   <title><![CDATA[Rounded Corners on Windows 11 : How do we get rounded windows...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78275&amp;title=rounded-corners-on-windows-11#78275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 24223<br /><strong>Posted:</strong> 08 October 2021 at 5:43am<br /><br />How do we get rounded windows corners on Windows 11 using the Office themes?]]>
   </description>
   <pubDate>Fri, 08 Oct 2021 05:43:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24223&amp;PID=78275&amp;title=rounded-corners-on-windows-11#78275</guid>
  </item> 
 </channel>
</rss>