OSDN Git Service

Remove unneeded use of MAKEINTRESOURCE macro
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 14 May 2016 21:17:33 +0000 (06:17 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 14 May 2016 21:17:33 +0000 (06:17 +0900)
Externals/crystaledit/editlib/ccrystaltextview.cpp
Externals/crystaledit/editlib/ccrystaltextview2.cpp
Src/Common/MessageBoxDialog.cpp

index 28b3578..4aca010 100644 (file)
@@ -3787,11 +3787,11 @@ OnSetCursor (CWnd * pWnd, UINT nHitTest, UINT message)
               //  [JRT]:  Support For Disabling Drag and Drop...
               if (!m_bDisableDragAndDrop)   // If Drag And Drop Not Disabled
 
-                ::SetCursor (::LoadCursor (NULL, MAKEINTRESOURCE (IDC_ARROW)));     // Set To Arrow Cursor
+                ::SetCursor (::LoadCursor (NULL, IDC_ARROW));     // Set To Arrow Cursor
 
             }
           else
-            ::SetCursor (::LoadCursor (NULL, MAKEINTRESOURCE (IDC_IBEAM)));
+            ::SetCursor (::LoadCursor (NULL, IDC_IBEAM));
         }
       return true;
     }
index 9119527..7d99c30 100644 (file)
@@ -763,7 +763,7 @@ OnMouseMove (UINT nFlags, CPoint point)
             }
 
           //  Moving to normal selection mode
-          ::SetCursor (::LoadCursor (NULL, MAKEINTRESOURCE (IDC_IBEAM)));
+          ::SetCursor (::LoadCursor (NULL, IDC_IBEAM));
           m_bLineSelection = m_bWordSelection = false;
         }
 
index e1e71f4..7d9bbfa 100644 (file)
@@ -1192,32 +1192,28 @@ void CMessageBoxDialog::ParseStyle ( )
                        case MB_ICONEXCLAMATION:
 
                                // Load the icon with the exclamation mark.
-                               m_hIcon = AfxGetApp()->LoadStandardIcon(
-                                       MAKEINTRESOURCE(IDI_EXCLAMATION));
+                               m_hIcon = AfxGetApp()->LoadStandardIcon(IDI_EXCLAMATION);
 
                                break;
 
                        case MB_ICONHAND:
 
                                // Load the icon with the error symbol.
-                               m_hIcon = AfxGetApp()->LoadStandardIcon(
-                                       MAKEINTRESOURCE(IDI_HAND));
+                               m_hIcon = AfxGetApp()->LoadStandardIcon(IDI_HAND);
 
                                break;
 
                        case MB_ICONQUESTION:
 
                                // Load the icon with the question mark.
-                               m_hIcon = AfxGetApp()->LoadStandardIcon(
-                                       MAKEINTRESOURCE(IDI_QUESTION));
+                               m_hIcon = AfxGetApp()->LoadStandardIcon(IDI_QUESTION);
 
                                break;
 
                        case MB_ICONASTERISK:
 
                                // Load the icon with the information symbol.
-                               m_hIcon = AfxGetApp()->LoadStandardIcon(
-                                       MAKEINTRESOURCE(IDI_ASTERISK));
+                               m_hIcon = AfxGetApp()->LoadStandardIcon(IDI_ASTERISK);
 
                                break;