[ros-diffs] [cwittich] 23436: -removed DefWindowProc from the Dialog WndProcs

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Aug 3 17:57:10 CEST 2006


Author: cwittich
Date: Thu Aug  3 19:57:10 2006
New Revision: 23436

URL: http://svn.reactos.org/svn/reactos?rev=23436&view=rev
Log:
-removed DefWindowProc from the Dialog WndProcs

Modified:
    trunk/reactos/dll/win32/msgina/gui.c

Modified: trunk/reactos/dll/win32/msgina/gui.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev=23436&r1=23435&r2=23436&view=diff
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c (original)
+++ trunk/reactos/dll/win32/msgina/gui.c Thu Aug  3 19:57:10 2006
@@ -226,7 +226,7 @@
 			SetFocus(GetDlgItem(hwndDlg, IDC_USERNAME));
 
 			pgContext->hBitmap = LoadImage(hDllInstance, MAKEINTRESOURCE(IDI_ROSLOGO), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
-			break;
+			return TRUE;
 		}
 		case WM_PAINT:
 		{
@@ -238,12 +238,12 @@
 				DrawState(hdc, NULL, NULL, (LPARAM)pgContext->hBitmap, (WPARAM)0, 0, 0, 0, 0, DST_BITMAP);
 				EndPaint(hwndDlg, &ps);
 			}
-			break;
+			return TRUE;
 		}
 		case WM_DESTROY:
 		{
 			DeleteObject(pgContext->hBitmap);
-			break;
+			return TRUE;
 		}
 		case WM_COMMAND:
 		{
@@ -281,7 +281,7 @@
 		}
 	}
 
-	return DefWindowProc(hwndDlg, uMsg, wParam, lParam);
+	return FALSE;
 }
 
 static INT_PTR CALLBACK
@@ -318,7 +318,7 @@
 		case WM_INITDIALOG:
 		{
 			SetFocus(GetDlgItem(hwndDlg, IDNO));
-			break;
+			return TRUE;
 		}
 		case WM_CLOSE:
 		{
@@ -327,7 +327,7 @@
 		}
 	}
 
-	return DefWindowProc(hwndDlg, uMsg, wParam, lParam);
+	return FALSE;
 }
 
 static INT




More information about the Ros-diffs mailing list