[CHARMAP] Rename OnCreate functions. #179
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 23 Dec 2017 12:46:14 +0000 (13:46 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 23 Dec 2017 12:46:33 +0000 (13:46 +0100)
base/applications/charmap/charmap.c
base/applications/charmap/map.c

index f233863..5cd864e 100644 (file)
@@ -439,8 +439,9 @@ AdvancedDlgProc(HWND hDlg,
     return FALSE;
 }
 #endif
+
 static int
-OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
+PanelOnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
 {
     HMENU hSysMenu;
     WCHAR lpAboutText[256];
@@ -488,7 +489,7 @@ PanelWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     switch (msg) {
     case WM_CREATE:
-        return OnCreate(hWnd, wParam, lParam);
+        return PanelOnCreate(hWnd, wParam, lParam);
 
     case WM_CLOSE:
         DestroyWindow(hWnd);
index 3ce259f..a8a9c8a 100644 (file)
@@ -376,9 +376,9 @@ OnClick(PMAP infoPtr,
 
 static
 BOOL
-OnCreate(PMAP infoPtr,
-         HWND hwnd,
-         HWND hParent)
+MapOnCreate(PMAP infoPtr,
+            HWND hwnd,
+            HWND hParent)
 {
     RECT rc;
     BOOL Ret = FALSE;
@@ -558,9 +558,9 @@ MapWndProc(HWND hwnd,
     {
         case WM_CREATE:
         {
-            if (!OnCreate(infoPtr,
-                          hwnd,
-                          ((LPCREATESTRUCTW)lParam)->hwndParent))
+            if (!MapOnCreate(infoPtr,
+                             hwnd,
+                             ((LPCREATESTRUCTW)lParam)->hwndParent))
             {
                 return (LRESULT)-1;
             }