[DEVMGR]
[reactos.git] / reactos / dll / win32 / devmgr / devmgmt / MainWindow.cpp
index dae7fba..50dc3a9 100644 (file)
@@ -93,7 +93,6 @@ CDeviceManager::~CDeviceManager(void)
 {
 }
 
-
 bool
 CDeviceManager::Create(_In_ HWND /*hWndParent*/,
                        _In_ HINSTANCE hInst,
@@ -132,7 +131,6 @@ CDeviceManager::Create(_In_ HWND /*hWndParent*/,
 }
 
 
-
 /* PRIVATE METHODS **********************************************/
 
 bool
@@ -256,11 +254,25 @@ CDeviceManager::RefreshView(_In_ ViewType Type,
     // Get the menu item id
     switch (Type)
     {
-        case DevicesByType: CheckId = IDC_DEVBYTYPE; break;
-        case DevicesByConnection: CheckId = IDC_DEVBYCONN; break;
-        case ResourcesByType: CheckId = IDC_RESBYTYPE; break;
-        case ResourcesByConnection: CheckId = IDC_RESBYCONN; break;
-        default: ATLASSERT(FALSE); break;
+        case DevicesByType:
+            CheckId = IDC_DEVBYTYPE;
+            break;
+
+        case DevicesByConnection:
+            CheckId = IDC_DEVBYCONN;
+            break;
+
+        case ResourcesByType:
+            CheckId = IDC_RESBYTYPE;
+            break;
+
+        case ResourcesByConnection:
+            CheckId = IDC_RESBYCONN;
+            break;
+
+        default:
+            ATLASSERT(FALSE);
+            break;
     }
 
     // Set the new check item
@@ -291,7 +303,8 @@ CDeviceManager::CreateToolBar(void)
                                  (HMENU)IDC_TOOLBAR,
                                  g_hThisInstance,
                                  NULL);
-    if (m_hToolBar == NULL) return FALSE;
+    if (m_hToolBar == NULL)
+        return FALSE;
 
     // Don't show clipped buttons
     SendMessageW(m_hToolBar,
@@ -395,8 +408,6 @@ void CDeviceManager::UpdateToolbar()
     SendMessageW(m_hToolBar, TB_SETSTATE, IDC_DISABLE_DRV, MAKELPARAM(State, 0));
 }
 
-
-
 bool
 CDeviceManager::StatusBarLoadString(_In_ HWND hStatusBar,
                                     _In_ INT PartId,
@@ -781,7 +792,7 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd,
             if (wParam == DBT_DEVNODES_CHANGED)
             {
                 //
-                // The OS can send multiple change messages in quick sucsession. To avoid
+                // The OS can send multiple change messages in quick succession. To avoid
                 // refreshing multiple times (and to avoid waiting in the message thread)
                 // we set a timer to run in 500ms, which should leave enough time for all
                 // the messages to come through. Wrap so we don't set multiple timers
@@ -793,6 +804,7 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd,
             }
             break;
         }
+
         case WM_TIMER:
         {
             if (wParam == REFRESH_TIMER)
@@ -829,9 +841,11 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd,
         }
 
         case WM_ACTIVATE:
+        {
             if (LOWORD(hwnd))
                 This->OnActivate();
             break;
+        }
 
         case WM_DESTROY:
         {