diff --git a/reactos/dll/win32/browseui/CMakeLists.txt b/reactos/dll/win32/browseui/CMakeLists.txt index ca4c40817d3..12d9899635b 100644 --- a/reactos/dll/win32/browseui/CMakeLists.txt +++ b/reactos/dll/win32/browseui/CMakeLists.txt @@ -66,4 +66,5 @@ add_importlibs(browseui kernel32 ntdll) +add_pch(browseui precomp.h) add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/browseui/aclmulti.cpp b/reactos/dll/win32/browseui/aclmulti.cpp index c34fe5bf4fc..69df206b1a8 100644 --- a/reactos/dll/win32/browseui/aclmulti.cpp +++ b/reactos/dll/win32/browseui/aclmulti.cpp @@ -19,18 +19,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "wine/debug.h" -#include "aclmulti.h" +#include "precomp.h" WINE_DEFAULT_DEBUG_CHANNEL(browseui); diff --git a/reactos/dll/win32/browseui/addressband.cpp b/reactos/dll/win32/browseui/addressband.cpp index 0010f5f2daf..9b9e744618a 100644 --- a/reactos/dll/win32/browseui/addressband.cpp +++ b/reactos/dll/win32/browseui/addressband.cpp @@ -21,17 +21,7 @@ /* Implements the navigation band of the cabinet window */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "addressband.h" +#include "precomp.h" /* TODO: diff --git a/reactos/dll/win32/browseui/addresseditbox.cpp b/reactos/dll/win32/browseui/addresseditbox.cpp index 7d36ff3dfd7..2b96d4148f3 100644 --- a/reactos/dll/win32/browseui/addresseditbox.cpp +++ b/reactos/dll/win32/browseui/addresseditbox.cpp @@ -21,17 +21,7 @@ /* This class handles the combo box of the address band. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "addresseditbox.h" +#include "precomp.h" /* TODO: Add auto completion support diff --git a/reactos/dll/win32/browseui/bandproxy.cpp b/reactos/dll/win32/browseui/bandproxy.cpp index 1d75e436af4..3d14b646c45 100644 --- a/reactos/dll/win32/browseui/bandproxy.cpp +++ b/reactos/dll/win32/browseui/bandproxy.cpp @@ -24,19 +24,7 @@ Used by the address band to dispatch navigation changes to the main browser obje TODO: */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "bandproxy.h" +#include "precomp.h" CBandProxy::CBandProxy() { diff --git a/reactos/dll/win32/browseui/bandsite.cpp b/reactos/dll/win32/browseui/bandsite.cpp index c3e2e6ad1a0..a751281c8be 100644 --- a/reactos/dll/win32/browseui/bandsite.cpp +++ b/reactos/dll/win32/browseui/bandsite.cpp @@ -19,18 +19,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "wine/debug.h" -#include "bandsite.h" +#include "precomp.h" WINE_DEFAULT_DEBUG_CHANNEL(browseui); diff --git a/reactos/dll/win32/browseui/bandsitemenu.cpp b/reactos/dll/win32/browseui/bandsitemenu.cpp index fee02afb225..6258b03e587 100644 --- a/reactos/dll/win32/browseui/bandsitemenu.cpp +++ b/reactos/dll/win32/browseui/bandsitemenu.cpp @@ -19,18 +19,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "bandsitemenu.h" -#include "wine/debug.h" +#include "precomp.h" WINE_DEFAULT_DEBUG_CHANNEL(browseui); diff --git a/reactos/dll/win32/browseui/basebar.cpp b/reactos/dll/win32/browseui/basebar.cpp index 1e4caaaa594..db7bed557f3 100644 --- a/reactos/dll/win32/browseui/basebar.cpp +++ b/reactos/dll/win32/browseui/basebar.cpp @@ -21,15 +21,7 @@ /* This class knows how to contain base bar site in a cabinet window. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "precomp.h" /* Base bar that contains a vertical or horizontal explorer band. It also diff --git a/reactos/dll/win32/browseui/basebarsite.cpp b/reactos/dll/win32/browseui/basebarsite.cpp index 730c26dbd3e..08498c09ed0 100644 --- a/reactos/dll/win32/browseui/basebarsite.cpp +++ b/reactos/dll/win32/browseui/basebarsite.cpp @@ -22,15 +22,7 @@ Base bar that contains a vertical or horizontal explorer band. It also provides resizing abilities. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "precomp.h" /* TODO: diff --git a/reactos/dll/win32/browseui/brandband.cpp b/reactos/dll/win32/browseui/brandband.cpp index a33eb7ca563..892a8fe7ab8 100644 --- a/reactos/dll/win32/browseui/brandband.cpp +++ b/reactos/dll/win32/browseui/brandband.cpp @@ -22,19 +22,7 @@ Implements the logo band of a cabinet window. Most remarkable feature is the animation. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "brandband.h" +#include "precomp.h" /* TODO: diff --git a/reactos/dll/win32/browseui/browseui.cpp b/reactos/dll/win32/browseui/browseui.cpp index cea61760b90..752a5726889 100644 --- a/reactos/dll/win32/browseui/browseui.cpp +++ b/reactos/dll/win32/browseui/browseui.cpp @@ -18,26 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "aclmulti.h" -#include "addressband.h" -#include "addresseditbox.h" -#include "bandproxy.h" -#include "bandsite.h" -#include "bandsitemenu.h" -#include "brandband.h" -#include "internettoolbar.h" +#include "precomp.h" WINE_DEFAULT_DEBUG_CHANNEL(browseui); diff --git a/reactos/dll/win32/browseui/browseui.rbuild b/reactos/dll/win32/browseui/browseui.rbuild index 63415e6f93e..cafad1fb26e 100644 --- a/reactos/dll/win32/browseui/browseui.rbuild +++ b/reactos/dll/win32/browseui/browseui.rbuild @@ -45,4 +45,5 @@ utility.cpp dllinstall.c browseui.rc + precomp.h diff --git a/reactos/dll/win32/browseui/browseuiord.cpp b/reactos/dll/win32/browseui/browseuiord.cpp index 7f3ac3b3c79..cbbe93547ae 100644 --- a/reactos/dll/win32/browseui/browseuiord.cpp +++ b/reactos/dll/win32/browseui/browseuiord.cpp @@ -18,12 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include +#include "precomp.h" extern DWORD WINAPI BrowserThreadProc(LPVOID lpThreadParameter); diff --git a/reactos/dll/win32/browseui/commonbrowser.cpp b/reactos/dll/win32/browseui/commonbrowser.cpp index 87e4b7b8a04..5543e5924a2 100644 --- a/reactos/dll/win32/browseui/commonbrowser.cpp +++ b/reactos/dll/win32/browseui/commonbrowser.cpp @@ -18,19 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "commonbrowser.h" +#include "precomp.h" CCommonBrowser::CCommonBrowser() { diff --git a/reactos/dll/win32/browseui/globalfoldersettings.cpp b/reactos/dll/win32/browseui/globalfoldersettings.cpp index 73ef09345d6..e042aa2d2c1 100644 --- a/reactos/dll/win32/browseui/globalfoldersettings.cpp +++ b/reactos/dll/win32/browseui/globalfoldersettings.cpp @@ -18,19 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "globalfoldersettings.h" +#include "precomp.h" CGlobalFolderSettings::CGlobalFolderSettings() { diff --git a/reactos/dll/win32/browseui/internettoolbar.cpp b/reactos/dll/win32/browseui/internettoolbar.cpp index bfad8a5bd9c..d0e69944b6c 100644 --- a/reactos/dll/win32/browseui/internettoolbar.cpp +++ b/reactos/dll/win32/browseui/internettoolbar.cpp @@ -22,20 +22,7 @@ Implements a class that knows how to hold and manage the menu band, brand band, toolbar, and address band for an explorer window */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "internettoolbar.h" +#include "precomp.h" // navigation controls and menubar just send a message to parent window /* diff --git a/reactos/dll/win32/browseui/precomp.h b/reactos/dll/win32/browseui/precomp.h new file mode 100644 index 00000000000..263499d0325 --- /dev/null +++ b/reactos/dll/win32/browseui/precomp.h @@ -0,0 +1,32 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "resource.h" +#include "wine/debug.h" +#include "aclmulti.h" +#include "addressband.h" +#include "addresseditbox.h" +#include "bandproxy.h" +#include "bandsite.h" +#include "bandsitemenu.h" +#include "brandband.h" +#include "internettoolbar.h" +#include "commonbrowser.h" +#include "globalfoldersettings.h" +#include "regtreeoptions.h" +#include "newatlinterfaces.h" +#include "utility.h" diff --git a/reactos/dll/win32/browseui/regtreeoptions.cpp b/reactos/dll/win32/browseui/regtreeoptions.cpp index 11009327f73..a9ae73c6399 100644 --- a/reactos/dll/win32/browseui/regtreeoptions.cpp +++ b/reactos/dll/win32/browseui/regtreeoptions.cpp @@ -18,19 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "regtreeoptions.h" +#include "precomp.h" CRegTreeOptions::CRegTreeOptions() { diff --git a/reactos/dll/win32/browseui/shellbrowser.cpp b/reactos/dll/win32/browseui/shellbrowser.cpp index 758f2aa2dbd..b050772af9f 100644 --- a/reactos/dll/win32/browseui/shellbrowser.cpp +++ b/reactos/dll/win32/browseui/shellbrowser.cpp @@ -18,23 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "resource.h" -#include "newatlinterfaces.h" +#include "precomp.h" /* TODO: diff --git a/reactos/dll/win32/browseui/toolsband.cpp b/reactos/dll/win32/browseui/toolsband.cpp index dd7d0f76ce6..c472f6943ea 100644 --- a/reactos/dll/win32/browseui/toolsband.cpp +++ b/reactos/dll/win32/browseui/toolsband.cpp @@ -21,43 +21,12 @@ /* Implements the toolbar band of a cabinet window */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "precomp.h" /* TODO: **Fix GetBandInfo to calculate size correctly */ -static const int gBackCommandID = 0xa121; -static const int gForwardCommandID = 0xa122; -static const int gUpLevelCommandID = 0xa022; -static const int gSearchCommandID = 1003; -static const int gFoldersCommandID = 1004; -static const int gMoveToCommandID = 0x701f; -static const int gCopyToCommandID = 0x701e; -static const int gDeleteCommandID = 0x7011; -static const int gUndoCommandID = 0x701b; -static const int gViewsCommandID = 0x7031; -static const int gStopCommandID = 1010; -static const int gRefreshCommandID = 0xa220; -static const int gHomeCommandID = 1012; -static const int gMapDriveCommandID = 41089; -static const int gDisconnectCommandID = 41090; -static const int gFavoritesCommandID = 1015; -static const int gHistoryCommandID = 1016; -static const int gFullScreenCommandID = 1017; -static const int gPropertiesCommandID = 0x7013; -static const int gCutCommandID = 0x7018; -static const int gCopyCommandID = 0x7019; -static const int gPasteCommandID = 0x701a; -static const int gFolderOptionsCommandID = 41251; class CToolsBand : public CWindowImpl, diff --git a/reactos/dll/win32/browseui/travellog.cpp b/reactos/dll/win32/browseui/travellog.cpp index d05daa27175..83821b74760 100644 --- a/reactos/dll/win32/browseui/travellog.cpp +++ b/reactos/dll/win32/browseui/travellog.cpp @@ -40,16 +40,7 @@ TODO: Implement Revert */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "precomp.h" class CTravelEntry : public CComObjectRootEx, diff --git a/reactos/dll/win32/browseui/utility.cpp b/reactos/dll/win32/browseui/utility.cpp index dd1367367f7..9ade3fc36e5 100644 --- a/reactos/dll/win32/browseui/utility.cpp +++ b/reactos/dll/win32/browseui/utility.cpp @@ -1,6 +1,5 @@ -#include -#include "utility.h" +#include "precomp.h" void *operator new(size_t size) {