[BROWSEUI/SHELLBARS] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 9 Dec 2017 19:46:40 +0000 (20:46 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 9 Dec 2017 19:46:40 +0000 (20:46 +0100)
dll/win32/browseui/shellbars/CBandSiteMenu.cpp
dll/win32/browseui/shellbars/CISFBand.cpp
dll/win32/browseui/shellbars/CISFBand.h
dll/win32/browseui/shellbars/CMakeLists.txt
dll/win32/browseui/shellbars/shellbars.h

index d940389..4f7af9b 100644 (file)
@@ -20,7 +20,8 @@
  */
 
 #include "shellbars.h"
-#include <strsafe.h>
+
+#include <browseui_undoc.h>
 
 /* The menu consists of 3 parts. The first is loaded from the resources,
    the second is populated with the classes of the CATID_DeskBand comcat
index 24426f6..670e647 100644 (file)
@@ -7,11 +7,9 @@
  */
 
 #include "shellbars.h"
-#include <commoncontrols.h>
-#include <strsafe.h>
 
-#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
-#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
+#include <commoncontrols.h>
+#include <shellapi.h>
 
 /*
 TODO:
index 04e6811..73882c3 100644 (file)
@@ -5,6 +5,7 @@
  * PURPOSE:     Quick Launch Toolbar (Taskbar Shell Extension)
  * PROGRAMMERS: Shriraj Sawant a.k.a SR13 <sr.official@hotmail.com>
  */
+
 #pragma once
 
 class CISFBand :
index f42c74f..ec87d6c 100644 (file)
@@ -1,3 +1,4 @@
+
 PROJECT(SHELL)
 
 set_cpp(WITH_RUNTIME)
@@ -12,13 +13,15 @@ list(APPEND SOURCE
     CBandSiteMenu.cpp
     CBaseBar.cpp
     CISFBand.cpp
-    CSHEnumClassesOfCategories.cpp)
+    CSHEnumClassesOfCategories.cpp
+    shellbars.h)
 
 add_library(shellbars ${SOURCE})
-add_dependencies(shellbars xdk)
-
-target_link_libraries(shellbars atlnew)
 
 if(NOT MSVC)
     add_target_compile_flags(shellbars "-Wno-unused-but-set-variable")
 endif()
+
+add_pch(shellbars shellbars.h SOURCE)
+target_link_libraries(shellbars atlnew)
+add_dependencies(shellbars xdk)
index b6ebf70..59221c4 100644 (file)
@@ -7,10 +7,7 @@
 
 #include <windef.h>
 #include <winbase.h>
-#include <wincon.h>
-#include <wingdi.h>
 #include <shlobj.h>
-#include <shellapi.h>
 #include <shlobj_undoc.h>
 #include <shlguid_undoc.h>
 #include <shdeprecated.h>
 #include <atlcom.h>
 #include <atlwin.h>
 #include <atlsimpcoll.h>
-#include <undocuser.h>
 #include <shlwapi.h>
 #include <shlwapi_undoc.h>
 #include <undocshell.h>
 #include <shellutils.h>
-#include <browseui_undoc.h>
+#include <strsafe.h>
+
 #include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(browseui);
 
 #include "../resource.h"
 
@@ -33,8 +31,6 @@
 #include "CBandSiteMenu.h"
 #include "CISFBand.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(browseui);
-
 #define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
 #define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
 
@@ -46,4 +42,4 @@ WINE_DEFAULT_DEBUG_CHANNEL(browseui);
 #define CISFBand_CreateInstance RSHELL_CISFBand_CreateInstance
 #endif
 
-#endif /* _BROWSEUI_PCH_ */
+#endif /* _SHELLBARS_PCH_ */