Author: cfinck
Date: Sat Aug 25 21:24:27 2007
New Revision: 28553
URL:
http://svn.reactos.org/svn/reactos?rev=28553&view=rev
Log:
- Hardcode the Window Class string, there is no reason for it to be in localized resource
files
- Remove duplicate header inclusions
Modified:
trunk/rosapps/magnify/lang/de-DE.rc
trunk/rosapps/magnify/lang/en-US.rc
trunk/rosapps/magnify/lang/fr-FR.rc
trunk/rosapps/magnify/lang/uk-UA.rc
trunk/rosapps/magnify/magnifier.c
Modified: trunk/rosapps/magnify/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/magnify/lang/de-DE.rc?rev=…
==============================================================================
--- trunk/rosapps/magnify/lang/de-DE.rc (original)
+++ trunk/rosapps/magnify/lang/de-DE.rc Sat Aug 25 21:24:27 2007
@@ -61,5 +61,4 @@
STRINGTABLE
BEGIN
IDS_APP_TITLE "Bildschirm-Lupe"
- IDC_MAGNIFIER "BILDSCHIRM-LUPE"
END
Modified: trunk/rosapps/magnify/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/magnify/lang/en-US.rc?rev=…
==============================================================================
--- trunk/rosapps/magnify/lang/en-US.rc (original)
+++ trunk/rosapps/magnify/lang/en-US.rc Sat Aug 25 21:24:27 2007
@@ -61,5 +61,4 @@
STRINGTABLE
BEGIN
IDS_APP_TITLE "Magnifier"
- IDC_MAGNIFIER "MAGNIFIER"
END
Modified: trunk/rosapps/magnify/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/magnify/lang/fr-FR.rc?rev=…
==============================================================================
--- trunk/rosapps/magnify/lang/fr-FR.rc (original)
+++ trunk/rosapps/magnify/lang/fr-FR.rc Sat Aug 25 21:24:27 2007
@@ -61,5 +61,4 @@
STRINGTABLE
BEGIN
IDS_APP_TITLE "Loupe"
- IDC_MAGNIFIER "LOUPE"
END
Modified: trunk/rosapps/magnify/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/magnify/lang/uk-UA.rc?rev=…
==============================================================================
--- trunk/rosapps/magnify/lang/uk-UA.rc (original)
+++ trunk/rosapps/magnify/lang/uk-UA.rc Sat Aug 25 21:24:27 2007
@@ -69,5 +69,4 @@
STRINGTABLE
BEGIN
IDS_APP_TITLE "Åêðàííà ëóïà"
- IDC_MAGNIFIER "MAGNIFIER"
END
Modified: trunk/rosapps/magnify/magnifier.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/magnify/magnifier.c?rev=28…
==============================================================================
--- trunk/rosapps/magnify/magnifier.c (original)
+++ trunk/rosapps/magnify/magnifier.c Sat Aug 25 21:24:27 2007
@@ -8,14 +8,11 @@
*/
#include <windows.h>
-//#include <stdio.h>
#include <shellapi.h>
-
-#include "shellapi.h"
-#include "windows.h"
-
#include "magnifier.h"
#include "resource.h"
+
+const TCHAR szWindowClass[] = TEXT("MAGNIFIER");
#define MAX_LOADSTRING 100
@@ -24,7 +21,6 @@
HWND hMainWnd;
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
-TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
#define REPAINT_SPEED 100
@@ -57,7 +53,6 @@
// Initialize global strings
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
- LoadString(hInstance, IDC_MAGNIFIER, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);
// Perform application initialization: