- Update to r53061
[reactos.git] / dll / win32 / browseui / internettoolbar.cpp
index c4f6bd0..d0e6994 100644 (file)
 Implements a class that knows how to hold and manage the menu band, brand band,
 toolbar, and address band for an explorer window
 */
-#include <windows.h>
-#include <shlobj.h>
-#include <shlobj_undoc.h>
-#include <shlguid.h>
-#include <shlguid_undoc.h>
-#include <tchar.h>
-#include <exdisp.h>
-#include <exdispid.h>
-#include <objbase.h>
-#include <atlbase.h>
-#include <atlcom.h>
-#include <atlwin.h>
-#include "resource.h"
-#include "internettoolbar.h"
+#include "precomp.h"
 
 // navigation controls and menubar just send a message to parent window
 /*
@@ -414,10 +401,16 @@ HRESULT STDMETHODCALLTYPE CMenuCallback::CallbackSM(LPSMDATA psmd, UINT uMsg, WP
                        {
                        SMINFO *infoPtr = (SMINFO *)lParam;
                        if ((infoPtr->dwMask & SMIM_FLAGS) != 0)
+                       {
                                if (psmd->uId == FCIDM_MENU_FAVORITES)
+                               {
                                        infoPtr->dwFlags |= SMIF_DROPCASCADE;
-                               else{
-                                       infoPtr->dwFlags |= SMIF_TRACKPOPUP;}
+                               }
+                               else
+                               {
+                                       infoPtr->dwFlags |= SMIF_TRACKPOPUP;
+                               }
+                       }
                        if ((infoPtr->dwMask & SMIM_ICON) != 0)
                                infoPtr->iIcon = -1;
                        }
@@ -1213,7 +1206,7 @@ LRESULT CInternetToolbar::OnSearch(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOO
        CComPtr<IObjectWithSite>                                objectWithSite;
        CComPtr<IContextMenu>                                   contextMenu;
        CMINVOKECOMMANDINFO                                             commandInfo;
-       char                                                                    *searchGUID = "{169A0691-8DF9-11d1-A1C4-00C04FD75D13}";
+       const char                                                              *searchGUID = "{169A0691-8DF9-11d1-A1C4-00C04FD75D13}";
        HRESULT                                                                 hResult;
 
        // TODO: Query shell if this command is enabled first