[RAPPS] CMainWindow: Make SelectedEnumType a member
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 28 Apr 2019 15:08:55 +0000 (18:08 +0300)
committerMark Jansen <mark.jansen@reactos.org>
Mon, 19 Aug 2019 22:43:47 +0000 (00:43 +0200)
base/applications/rapps/gui.cpp
base/applications/rapps/include/winmain.h
base/applications/rapps/winmain.cpp

index be6da8f..adba84a 100644 (file)
@@ -792,12 +792,14 @@ class CMainWindow :
     BOOL bUpdating;
 
     ATL::CStringW szSearchPattern;
+    INT SelectedEnumType;
 
 public:
     CMainWindow() :
         m_ClientPanel(NULL),
         pLink(NULL),
-        bSearchEnabled(FALSE)
+        bSearchEnabled(FALSE),
+        SelectedEnumType(ENUM_ALL_INSTALLED)
     {
     }
 
index bee3b96..d941e52 100644 (file)
@@ -25,7 +25,6 @@ typedef SETTINGS_INFO *PSETTINGS_INFO;
 
 extern HWND hMainWnd;
 extern HINSTANCE hInst;
-extern INT SelectedEnumType;
 extern SETTINGS_INFO SettingsInfo;
 
 VOID SaveSettings(HWND hwnd);
index 5d731c5..58e100d 100644 (file)
@@ -15,7 +15,6 @@
 
 HWND hMainWnd;
 HINSTANCE hInst;
-INT SelectedEnumType = ENUM_ALL_INSTALLED;
 SETTINGS_INFO SettingsInfo;
 
 class CRAppsModule : public CComModule