<p>I&#39;m not sure how it will only use theming for version 6 without sxs. Will the control have to manually check the manifest?</p>
<p>I am a bit familiar with how to use the themes to draw controls and that shouldn&#39;t be an issue.</p>
<p>At the moment i&#39;m more confused with this window class redirect thing. I&#39;ve been trying to find someone who knows a bit about it. Without much luck.</p>
<div class="gmail_quote">On Mar 15, 2011 9:19 PM, &quot;Nikolay Sivov&quot; &lt;<a href="mailto:bunglehead@gmail.com">bunglehead@gmail.com</a>&gt; wrote:<br type="attribution">&gt; On 3/15/2011 05:25, Frank Richter wrote:<br>
&gt;&gt; On 11.03.2011 10:28, Nikolay Sivov wrote:<br>&gt;&gt;&gt; In version 6 all user32 controls are reimplemented with theme support in<br>&gt;&gt;&gt; comctl32, while user32 classes are kept of course. This is done with<br>
&gt;&gt;&gt; specific entries in comctl32 manifest, on load comctl32 all builtin<br>&gt;&gt;&gt; classes are re-registered to the ones from comctl32. I definitely want<br>&gt;&gt;&gt; to see some solution for that, having themed comctl32 controls while<br>
&gt;&gt;&gt; scrollbars and buttons are drawn with default appearance makes theme<br>&gt;&gt;&gt; support kind of useless.<br>&gt;&gt; Buttons: technically, I don&#39;t think you need SxS class redirection for<br>&gt;&gt; that. The issue with the current �subclassing� is that, well, the button<br>
&gt;&gt; can&#39;t really be subclassed for theming - IIRC some state changes don&#39;t<br>&gt;&gt; trigger a �paint� message but only cause internal painting - this can&#39;t<br>&gt;&gt; be caught lass function and breaks theming.<br>
&gt;&gt; What MS supposedly did was to simply copy&#39;n&#39;paste the controls code into<br>&gt;&gt; comctl32 and add theming. That would certainly allow properly themed<br>&gt;&gt; buttons. And SxS class redirection...<br>
&gt; We need a way to make comctl32 controls available, not always but only <br>&gt; when it&#39;s requested to use version 6.<br>&gt; Native does that with class redirection.<br>&gt; <br>&gt; I&#39;m not sure it&#39;s ok to use comctl32 always for builtin classes.<br>
&gt;&gt; Scroll bars, are, IIRC, a different beast - window scroll bars are not<br>&gt;&gt; controls but handled/drawn by DefWndProc. No idea how native themes<br>&gt;&gt; these. Maybe some mojo to override/hook into DefWndProc?<br>
&gt; That&#39;s not true. Scrollbar could be a normal control too. I have no idea <br>&gt; how themes work with window scrollbars though.<br>&gt;&gt; -f.r.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt; <br></div>