[ATL][SHELL32][EXPLORER] Disable ATLASSERT (#3527)
[reactos.git] / base / shell / explorer / syspager.cpp
index d6f729d..a71d3cf 100644 (file)
@@ -1231,10 +1231,8 @@ void CNotifyToolbar::Initialize(HWND hWndParent, CBalloonQueue * queue)
         TBSTYLE_FLAT | TBSTYLE_TOOLTIPS | TBSTYLE_WRAPABLE | TBSTYLE_TRANSPARENT |
         CCS_TOP | CCS_NORESIZE | CCS_NOPARENTALIGN | CCS_NODIVIDER;
 
-    HWND toolbar = CToolbar::Create(hWndParent, styles);
-    //HACK: We have not created this toolbar properly, so we need to subclass it now!
-    m_hWnd = NULL;
-    SubclassWindow(toolbar);
+    // HACK & FIXME: CORE-17505
+    SubclassWindow(CToolbar::Create(hWndParent, styles));
 
     // Force the toolbar tooltips window to always show tooltips even if not foreground
     HWND tooltipsWnd = (HWND)SendMessageW(TB_GETTOOLTIPS);