@@ -515,14 +515,17 @@ void CSkinFile::DrawPreview(CDC* pDC, CRect rect)
515515 point.SetPoint (layout_item.x , layout_item.y );
516516 point.Offset (pos.x , pos.y );
517517 CRect rect (point, CSize (layout_item.width , m_layout_info.text_height ));
518+ ITMPlugin* plugin = theApp.m_plugins .GetPluginByItem (plugin_item);
519+ if (plugin != nullptr && plugin->GetAPIVersion () >= 2 )
520+ {
521+ plugin->OnExtenedInfo (ITMPlugin::EI_DRAW_TASKBAR_WND, L" 0" );
522+ }
518523 if (plugin_item->IsCustomDraw ())
519524 {
520525 int brightness{ (GetRValue (cl) + GetGValue (cl) + GetBValue (cl)) / 2 };
521- ITMPlugin* plugin = theApp.m_plugins .GetPluginByItem (plugin_item);
522526 if (plugin != nullptr && plugin->GetAPIVersion () >= 2 )
523527 {
524528 plugin->OnExtenedInfo (ITMPlugin::EI_VALUE_TEXT_COLOR, std::to_wstring (cl).c_str ());
525- plugin->OnExtenedInfo (ITMPlugin::EI_DRAW_TASKBAR_WND, L" 0" );
526529 }
527530 draw.GetDC ()->SetTextColor (cl);
528531 plugin_item->DrawItem (draw.GetDC ()->GetSafeHdc (), point.x , point.y , layout_item.width , m_layout_info.text_height , brightness >= 128 );
@@ -726,14 +729,18 @@ void CSkinFile::DrawItemsInfo(IDrawCommon& drawer, Layout& layout, CFont& font)
726729 cl = iter->second ;
727730 else if (!text_colors.empty ())
728731 cl = text_colors.begin ()->second ;
732+ ITMPlugin* plugin = theApp.m_plugins .GetPluginByItem (plugin_item);
733+ if (plugin != nullptr && plugin->GetAPIVersion () >= 2 )
734+ {
735+ plugin->OnExtenedInfo (ITMPlugin::EI_DRAW_TASKBAR_WND, L" 0" );
736+ }
729737 if (plugin_item->IsCustomDraw ())
730738 {
731739 int brightness{ (GetRValue (cl) + GetGValue (cl) + GetBValue (cl)) / 2 };
732740 ITMPlugin* plugin = theApp.m_plugins .GetPluginByItem (plugin_item);
733741 if (plugin != nullptr && plugin->GetAPIVersion () >= 2 )
734742 {
735743 plugin->OnExtenedInfo (ITMPlugin::EI_VALUE_TEXT_COLOR, std::to_wstring (cl).c_str ());
736- plugin->OnExtenedInfo (ITMPlugin::EI_DRAW_TASKBAR_WND, L" 0" );
737744 }
738745 drawer.GetDC ()->SetTextColor (cl);
739746 drawer.GetDC ()->SetBkMode (TRANSPARENT);
0 commit comments