<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[A question about dark mode, plugins, and an owner-draw ComboBox]]></title><description><![CDATA[<p dir="auto">I’m working on a <a href="https://github.com/Coises/SearchPlusPlus/" rel="nofollow ugc">plugin</a> and I have a couple questions about dark mode. I’m hoping someone who reads this will know the answers. I have looked at the code, but I don’t really follow everything it’s doing.</p>
<p dir="auto">My Settings dialog uses a ComboBox with style:</p>
<p dir="auto">CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | WS_VSCROLL | WS_TABSTOP</p>
<p dir="auto">I’m sending an NPPM_DARKMODESUBCLASSANDTHEME message with wParam = NppDarkMode::dmfInit at the end of my WM_INITDIALOG process in the hopes of not antagonizing users who have dark mode enabled.</p>
<p dir="auto">The ComboBox is fine in light mode but it is messed up in dark mode.</p>
<ul>
<li>
<p dir="auto">Am I correct in thinking that the dark mode subclass process does not support owner-draw combo boxes?</p>
</li>
<li>
<p dir="auto">Is there a way to exempt just that one control from the processing and try to figure out myself how to set the right colors, or do I need to drop the NPPM_DARKMODESUBCLASSANDTHEME message and either stay in light mode or handle all of the dark mode processing in my code? (Staying in light mode is an option; it’s not like users have the Settings dialog open all the time. The main dialog, fortunately, doesn’t seem to have any controls the dark mode handler doesn’t like. Yet. But I may need to go to owner-draw buttons at some point, and perhaps they will have the same problem.)</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/topic/27486/a-question-about-dark-mode-plugins-and-an-owner-draw-combobox</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 03:40:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27486.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Apr 2026 22:51:38 GMT</pubDate><ttl>60</ttl></channel></rss>