Francois Gouget : user32: Use MSGBOX_IDICON throughout instead of sometimes using stc1 and sometimes 1088 .

Alexandre Julliard julliard at winehq.org
Mon May 16 11:36:46 CDT 2011


Module: wine
Branch: master
Commit: dc63061af12462c5f670c68ae6b627112349cde9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dc63061af12462c5f670c68ae6b627112349cde9

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun May 15 11:29:38 2011 +0200

user32: Use MSGBOX_IDICON throughout instead of sometimes using stc1 and sometimes 1088.

---

 dlls/user32/msgbox.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/user32/msgbox.c b/dlls/user32/msgbox.c
index effe09b..ba18076 100644
--- a/dlls/user32/msgbox.c
+++ b/dlls/user32/msgbox.c
@@ -33,7 +33,7 @@
 WINE_DEFAULT_DEBUG_CHANNEL(dialog);
 WINE_DECLARE_DEBUG_CHANNEL(msgbox);
 
-#define MSGBOX_IDICON 1088
+#define MSGBOX_IDICON stc1
 #define MSGBOX_IDTEXT 100
 #define IDS_ERROR     2
 
@@ -175,23 +175,23 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
     /* Set the icon */
     switch(lpmb->dwStyle & MB_ICONMASK) {
     case MB_ICONEXCLAMATION:
-	SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
+	SendDlgItemMessageW(hwnd, MSGBOX_IDICON, STM_SETICON,
 			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_EXCLAMATION), 0);
 	break;
     case MB_ICONQUESTION:
-	SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
+	SendDlgItemMessageW(hwnd, MSGBOX_IDICON, STM_SETICON,
 			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_QUESTION), 0);
 	break;
     case MB_ICONASTERISK:
-	SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
+	SendDlgItemMessageW(hwnd, MSGBOX_IDICON, STM_SETICON,
 			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_ASTERISK), 0);
 	break;
     case MB_ICONHAND:
-      SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
+      SendDlgItemMessageW(hwnd, MSGBOX_IDICON, STM_SETICON,
 			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_HAND), 0);
       break;
     case MB_USERICON:
-      SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
+      SendDlgItemMessageW(hwnd, MSGBOX_IDICON, STM_SETICON,
 			  (WPARAM)LoadIconW(lpmb->hInstance, lpmb->lpszIcon), 0);
       break;
     default:




More information about the wine-cvs mailing list