<?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[HowTo set hIconTab for DockingDlgInterface?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">i create a DockingDlgInterface and show it.<br />
But i will set the tTbData::hIconTab.</p>
<p dir="auto">The icons is stored in resource file</p>
<p dir="auto">i hav try :</p>
<pre><code>bool ChangeIDDialog::ShowDLG(bool bShow)
{
  bool mustShow = bShow &amp;&amp; !isVisible();
    if (mustShow)
    {
      if (!isCreated())
      {
        tTbData data = { 0 };
        create(&amp;data);
        data.uMask = DWS_DF_CONT_RIGHT;
        data.pszModuleName = getPluginFileName();
        data.pszName = this-&gt;titel.c_str();
        // try 1 == NULL
	data.hIconTab = (HICON)::LoadImage(getHinst(), MAKEINTRESOURCE(IDPNG_CHANGE), IMAGE_BITMAP, 16, 16, LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT);
        // try 2 == NULL
	data.hIconTab = (HICON)::LoadIcon(getHinst(), MAKEINTRESOURCE(IDPNG_CHANGE));
	// the dlgDlg should be the index of funcItem where the current function pointer is
	data.dlgID = static_cast&lt;int&gt;(MyMenuId::Menue_Measure_SetID);
	::SendMessage(_hParent, NPPM_DMMREGASDCKDLG, 0, (LPARAM)&amp;data);				
      }
      DockingDlgInterface::display(bShow);
    }
    return mustShow;
}
</code></pre>
<p dir="auto">the  data.hIconTab  is allways NULL.</p>
<p dir="auto">I have also try with bmp instance of png, also NULL.</p>
<p dir="auto">The resource IDPNG_CHANGE is compiled into dll, see with “Resource Hacker”.</p>
<p dir="auto">How can i use the recource image for hIconTab?</p>
<p dir="auto">regards Mario</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25215/howto-set-hicontab-for-dockingdlginterface</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 19:18:04 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25215.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Dec 2023 20:41:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Sat, 06 Jan 2024 13:11:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10071">@ThosRTanner</a> said:</p>
<blockquote>
<p dir="auto">I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.</p>
</blockquote>
<p dir="auto">More of an official announcement for it is <a href="https://community.notepad-plus-plus.org/topic/25320">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91765</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91765</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 06 Jan 2024 13:11:21 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Thu, 21 Dec 2023 18:55:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/91371">HowTo set hIconTab for DockingDlgInterface?</a>:</p>
<blockquote>
<p dir="auto">should I open an issue on the site for the project to continue discussing, so as to not annoy uninterested readers here?</p>
</blockquote>
<p dir="auto"><a href="https://github.com/ThosRTanner/Docking_Dialogue_Interface/issues/1" rel="nofollow ugc">https://github.com/ThosRTanner/Docking_Dialogue_Interface/issues/1</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91378</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91378</guid><dc:creator><![CDATA[rdipardo]]></dc:creator><pubDate>Thu, 21 Dec 2023 18:55:14 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Thu, 21 Dec 2023 12:59:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10071">@ThosRTanner</a></p>
<p dir="auto">I gave it a quick try (with Vis. Studio 2022 Community Ed.) but was confused by this from the docs:</p>
<p dir="auto"><em>The layout of this assumes you have created a repositories directory and cloned the notepad++ template repo and this repo into there.</em></p>
<p dir="auto">Since there are no releases of this, I simply got a zip of the code and extracted it to a folder.  Building the .sln I got not-found errors regarding <code>PluginInterface.h</code> which reminded me that I needed the real “notepad++ template” code, so I went and got that, but I was unsure where to put it in the source tree…</p>
<hr />
<p dir="auto">Later EDIT:</p>
<p dir="auto">In Vis. Studio’s “Solution Explorer” for the new template code, I see there’s a  <em>Notepad++ Headers</em> folder which references <code>PluginInterface.h</code>.  Looking at what path it thinks that is at, I see it is at the same level as the base folder for this new template, thus I think this is what’s needed:</p>
<ul>
<li><code>...\myfolder\Docking_Dialogue_Interface-master\</code>  &lt;-- new template code</li>
<li><code>...\myfolder\plugintemplate\</code>  &lt;-- official Notepad++ template code</li>
</ul>
<p dir="auto">With this, the “not found” problems seem to be cleared up, but I get some different errors from that point onward…</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10071">@ThosRTanner</a> , should I open an issue on the site for the project to continue discussing, so as to not annoy uninterested readers here?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91371</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91371</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 21 Dec 2023 12:59:28 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Mon, 18 Dec 2023 11:35:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10071">@ThosRTanner</a> said in <a href="/post/91286">HowTo set hIconTab for DockingDlgInterface?</a>:</p>
<blockquote>
<p dir="auto">Feel free to play with it/raise issues/…</p>
</blockquote>
<p dir="auto">It is now officially on my to-do list.  :-)<br />
Thanks for your efforts.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91295</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91295</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 Dec 2023 11:35:12 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Sun, 17 Dec 2023 18:04:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> Working on it here. I will probably fiddle with the API (and clang settings)  and the documentation is definitely still in need of serious work, but it builds and runs</p>
<p dir="auto">C++17 is required.</p>
<p dir="auto">Feel free to play with it/raise issues/…</p>
<p dir="auto"><a href="https://github.com/ThosRTanner/Docking_Dialogue_Interface" rel="nofollow ugc">https://github.com/ThosRTanner/Docking_Dialogue_Interface</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91286</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91286</guid><dc:creator><![CDATA[ThosRTanner]]></dc:creator><pubDate>Sun, 17 Dec 2023 18:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Sat, 09 Dec 2023 22:43:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@Michael-Vincent</a></p>
<p dir="auto">thanks, that it</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91087</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91087</guid><dc:creator><![CDATA[MarioRosi]]></dc:creator><pubDate>Sat, 09 Dec 2023 22:43:17 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Fri, 08 Dec 2023 21:17:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17930">@MarioRosi</a> said in <a href="/post/91040">HowTo set hIconTab for DockingDlgInterface?</a>:</p>
<blockquote>
<p dir="auto">But the DockingDlgInterface don not display the icon…</p>
</blockquote>
<p dir="auto">Your mask is not set correctly:</p>
<pre><code>data.uMask = DWS_DF_CONT_RIGHT | DWS_ICONTAB;
</code></pre>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91062</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91062</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 08 Dec 2023 21:17:07 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Fri, 08 Dec 2023 20:34:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10071">@ThosRTanner</a> said in <a href="/post/91060">HowTo set hIconTab for DockingDlgInterface?</a>:</p>
<blockquote>
<p dir="auto">I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.</p>
</blockquote>
<p dir="auto">Yes, please!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91061</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91061</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 08 Dec 2023 20:34:58 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Fri, 08 Dec 2023 20:34:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17930">@MarioRosi</a> Have you set the <code>DWS_ICONTAB</code> bit in <code>data.uMask</code>?</p>
<p dir="auto">You need to set that for the icon to display.</p>
<p dir="auto">I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91060</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91060</guid><dc:creator><![CDATA[ThosRTanner]]></dc:creator><pubDate>Fri, 08 Dec 2023 20:34:20 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Fri, 08 Dec 2023 15:38:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/27184">@Coises</a></p>
<p dir="auto">thanks for the idea.</p>
<p dir="auto">It is a partial solution. With an icon its create the icon-handle with</p>
<pre><code>...
data.hIconTab = (HICON)::LoadIcon(getHinst(), MAKEINTRESOURCE(IDI_CHANGE));
...
</code></pre>
<p dir="auto">But the DockingDlgInterface don not display the icon…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91040</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91040</guid><dc:creator><![CDATA[MarioRosi]]></dc:creator><pubDate>Fri, 08 Dec 2023 15:38:08 GMT</pubDate></item><item><title><![CDATA[Reply to HowTo set hIconTab for DockingDlgInterface? on Thu, 07 Dec 2023 23:58:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17930">@MarioRosi</a></p>
<p dir="auto">I <em>think</em> that you cannot convert a png into an icon in this way. If an icon is expected, I believe that’s what you must supply.</p>
<p dir="auto">Perhaps try this with a *.ico file, just as a test. If that works, then you’ll know you need to convert your png into an ico before adding it to your resources.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91011</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91011</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Thu, 07 Dec 2023 23:58:36 GMT</pubDate></item></channel></rss>