Author: dreimer
Date: Thu Feb 19 04:09:19 2009
New Revision: 39678
URL:
http://svn.reactos.org/svn/reactos?rev=39678&view=rev
Log:
Sync xcopy, winhlp32 and wordpad to Wine HEAD.
Added:
trunk/reactos/base/applications/wordpad/Sv.rc (with props)
Modified:
trunk/reactos/base/applications/cmdutils/xcopy/xcopy.c
trunk/reactos/base/applications/winhlp32/lang/sv-SE.rc
trunk/reactos/base/applications/winhlp32/winhelp.c
trunk/reactos/base/applications/wordpad/print.c
trunk/reactos/base/applications/wordpad/rsrc.rc
trunk/reactos/base/applications/wordpad/wordpad.c
Modified: trunk/reactos/base/applications/cmdutils/xcopy/xcopy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/xcopy/xcopy.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/xcopy/xcopy.c [iso-8859-1] Thu Feb 19
04:09:19 2009
@@ -984,7 +984,8 @@
#define MAX_WRITECONSOLE_SIZE 65535
va_list parms;
- DWORD len, nOut;
+ DWORD nOut;
+ int len;
DWORD res = 0;
/*
@@ -1003,6 +1004,10 @@
va_start(parms, format);
len = vsnprintfW(output_bufW, MAX_WRITECONSOLE_SIZE/sizeof(WCHAR), format, parms);
va_end(parms);
+ if (len < 0) {
+ WINE_FIXME("String too long.\n");
+ return 0;
+ }
/* Try to write as unicode all the time we think its a console */
if (toConsole) {
Modified: trunk/reactos/base/applications/winhlp32/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winhlp32…
==============================================================================
--- trunk/reactos/base/applications/winhlp32/lang/sv-SE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/winhlp32/lang/sv-SE.rc [iso-8859-1] Thu Feb 19
04:09:19 2009
@@ -5,6 +5,7 @@
* Swedish language by Karl Backström <karl_b(a)geocities.com>
* Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
* Copyright 2007, 2008 Daniel Nylander <po(a)danielnylander.se>
+ * Copyright 2009 Anders Jonsson
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -51,9 +52,9 @@
MENUITEM "Historik", MNID_OPTS_HISTORY
POPUP "Typsnitt"
BEGIN
- MENUITEM "Liten", MNID_OPTS_FONTS_SMALL
- MENUITEM "Normal", MNID_OPTS_FONTS_NORMAL
- MENUITEM "Stor", MNID_OPTS_FONTS_LARGE
+ MENUITEM "Litet", MNID_OPTS_FONTS_SMALL
+ MENUITEM "Normalt", MNID_OPTS_FONTS_NORMAL
+ MENUITEM "Stort", MNID_OPTS_FONTS_LARGE
END
MENUITEM "Använd systemfärger", MNID_OPTS_SYSTEM_COLORS
}
@@ -68,10 +69,26 @@
}
}
+IDD_INDEX DIALOG DISCARDABLE 0, 0, 200, 190 LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
+STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+FONT 8, "MS Shell Dlg"
+CAPTION "Index"
+{
+ LISTBOX IDC_INDEXLIST, 10, 10, 180, 150, LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_BORDER
+}
+
+IDD_SEARCH DIALOG DISCARDABLE 0, 0, 200, 190 LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
+STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+FONT 8, "MS Shell Dlg"
+CAPTION "Sök"
+{
+ LTEXT "Inte implementerat ännu", -1, 10, 10, 180, 150
+}
+
/* Strings */
STRINGTABLE DISCARDABLE LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
{
-STID_WINE_HELP, "WINE Hjälp"
+STID_WINE_HELP, "Wine Hjälp"
STID_WHERROR, "FEL"
STID_WARNING, "VARNING"
STID_INFO, "Information"
@@ -86,3 +103,26 @@
STID_NO_RICHEDIT "Kan inte hitta en implementation av richedit... Avslutar"
STID_PSH_INDEX, "Hjälprubriker: "
}
+
+CONTEXT_MENU MENU LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
+BEGIN
+ POPUP ""
+ BEGIN
+ MENUITEM "Kommentar...", MNID_CTXT_ANNOTATE
+ MENUITEM "Kopiera", MNID_CTXT_COPY
+ MENUITEM "Skriv ut...", MNID_CTXT_PRINT
+ POPUP "Typsnitt"
+ BEGIN
+ MENUITEM "Litet", MNID_CTXT_FONTS_SMALL
+ MENUITEM "Normalt", MNID_CTXT_FONTS_NORMAL
+ MENUITEM "Stort", MNID_CTXT_FONTS_LARGE
+ END
+ POPUP "Hjälp alltid synlig"
+ BEGIN
+ MENUITEM "Standard", MNID_CTXT_HELP_DEFAULT
+ MENUITEM "Synlig", MNID_CTXT_HELP_VISIBLE
+ MENUITEM "Ej synlig", MNID_CTXT_HELP_NONVISIBLE
+ END
+ MENUITEM "Använd systemfärger", MNID_CTXT_SYSTEM_COLORS
+ END
+END
Modified: trunk/reactos/base/applications/winhlp32/winhelp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winhlp32…
==============================================================================
--- trunk/reactos/base/applications/winhlp32/winhelp.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/winhlp32/winhelp.c [iso-8859-1] Thu Feb 19 04:09:19
2009
@@ -274,7 +274,7 @@
{
strcpy(mwi.type, "primary");
strcpy(mwi.name, "main");
- if (!LoadString(Globals.hInstance, STID_WINE_HELP,
+ if (hlpfile && !LoadString(Globals.hInstance, STID_WINE_HELP,
mwi.caption, sizeof(mwi.caption)))
strcpy(mwi.caption, hlpfile->lpszTitle);
mwi.origin.x = mwi.origin.y = mwi.size.cx = mwi.size.cy = CW_USEDEFAULT;
Added: trunk/reactos/base/applications/wordpad/Sv.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/Sv.rc (added)
+++ trunk/reactos/base/applications/wordpad/Sv.rc [iso-8859-1] Thu Feb 19 04:09:19 2009
@@ -1,0 +1,247 @@
+/*
+ * Copyright 2009 by Anders Jonsson
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
+
+#pragma code_page(65001)
+
+IDM_MAINMENU MENU DISCARDABLE
+BEGIN
+ POPUP "&Fil"
+ BEGIN
+ MENUITEM "&Nytt...\tCtrl+N", ID_FILE_NEW
+ MENUITEM "&Ãppna...\tCtrl+O", ID_FILE_OPEN
+ MENUITEM "&Spara\tCtrl+S", ID_FILE_SAVE
+ MENUITEM "Spara s&om...", ID_FILE_SAVEAS
+ MENUITEM SEPARATOR
+ MENUITEM "Skriv &ut...\tCtrl+P", ID_PRINT
+ MENUITEM "&Förhandsgranskning...", ID_PREVIEW
+ MENUITEM "U&tskriftsformat...", ID_PRINTSETUP
+ MENUITEM SEPARATOR
+ MENUITEM "&Avsluta", ID_FILE_EXIT
+ END
+ POPUP "&Redigera"
+ BEGIN
+ MENUITEM "&Ã
ngra\tCtrl+Z", ID_EDIT_UNDO
+ MENUITEM "Ã
&terställ\tCtrl+Y", ID_EDIT_REDO
+ MENUITEM SEPARATOR
+ MENUITEM "Klipp &ut\tCtrl+X", ID_EDIT_CUT
+ MENUITEM "&Kopiera\tCtrl+C", ID_EDIT_COPY
+ MENUITEM "Klistra &in\tCtrl+V", ID_EDIT_PASTE
+ MENUITEM "Ta &bort\tDEL", ID_EDIT_CLEAR
+ MENUITEM "&Markera allt\tCtrl+A", ID_EDIT_SELECTALL
+ MENUITEM SEPARATOR
+ MENUITEM "&Sök...\tCrtl+F", ID_FIND
+ MENUITEM "Sök &nästa\tF3", ID_FIND_NEXT
+ MENUITEM "&Ersätt...\tCtrl+H", ID_REPLACE
+ MENUITEM SEPARATOR
+ MENUITEM "Sk&rivskyddat", ID_EDIT_READONLY
+ MENUITEM "&Ãndrat", ID_EDIT_MODIFIED
+ MENUITEM SEPARATOR
+ POPUP "E&xtra"
+ BEGIN
+ MENUITEM "&Information om markerad text",
ID_EDIT_SELECTIONINFO
+ MENUITEM "&Teckenformat",
ID_EDIT_CHARFORMAT
+ MENUITEM "&Standardteckenformat",
ID_EDIT_DEFCHARFORMAT
+ MENUITEM "Stycke&format",
ID_EDIT_PARAFORMAT
+ MENUITEM "&Hämta text",
ID_EDIT_GETTEXT
+ END
+ END
+ POPUP "&Visa"
+ BEGIN
+ MENUITEM "&Verktygsfält", ID_TOGGLE_TOOLBAR
+ MENUITEM "&Formatfält", ID_TOGGLE_FORMATBAR
+ MENUITEM "&Linjal", ID_TOGGLE_RULER
+ MENUITEM "&Statusfält", ID_TOGGLE_STATUSBAR
+ MENUITEM SEPARATOR
+ MENUITEM "&Alternativ...", ID_VIEWPROPERTIES
+ END
+ POPUP "&Infoga"
+ BEGIN
+ MENUITEM "&Datum och tid...", ID_DATETIME
+ END
+ POPUP "F&ormat"
+ BEGIN
+ MENUITEM "T&ecken...", ID_FONTSETTINGS
+ MENUITEM "&Punktuppställning" ID_BULLET
+ MENUITEM "&Stycke..." ID_PARAFORMAT
+ MENUITEM "&Tabulatorer..." ID_TABSTOPS
+ POPUP "&Bakgrund"
+ BEGIN
+ MENUITEM "&System\tCtrl+1", ID_BACK_1
+ MENUITEM "Anteckningslapps-&gult\tCtrl+2", ID_BACK_2
+ END
+ END
+ POPUP "&Hjälp"
+ BEGIN
+ MENUITEM "&Om Wine Wordpad" ID_ABOUT
+ END
+END
+
+IDM_POPUP MENU DISCARDABLE
+BEGIN
+ POPUP ""
+ BEGIN
+ MENUITEM "Klipp &ut", ID_EDIT_CUT
+ MENUITEM "&Kopiera", ID_EDIT_COPY
+ MENUITEM "Klistra &in", ID_EDIT_PASTE
+ MENUITEM SEPARATOR
+ MENUITEM "&Punktuppställning" ID_BULLET
+ MENUITEM "&Stycke..." ID_PARAFORMAT
+ END
+END
+
+IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
+STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+CAPTION "Datum och tid"
+FONT 10, "MS Sans Serif"
+BEGIN
+ LTEXT "Tillgängliga format",-1,3,2,100,15
+ LISTBOX IDC_DATETIME,3,12,80,65,LBS_NOINTEGRALHEIGHT | LBS_NOTIFY
+ PUSHBUTTON "&OK",IDOK,87,12,40,12
+ PUSHBUTTON "&Avbryt",IDCANCEL,87,26,40,12
+END
+
+IDD_NEWFILE DIALOG DISCARDABLE 30, 20, 140, 80
+STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+CAPTION "Ny"
+FONT 10, "MS Sans Serif"
+BEGIN
+ LTEXT "Ny dokumenttyp",-1,3,2,100,15
+ LISTBOX IDC_NEWFILE,3,12,90,65,LBS_NOINTEGRALHEIGHT
+ PUSHBUTTON "&OK",IDOK,97,12,40,12
+ PUSHBUTTON "&Avbryt",IDCANCEL,97,26,40,12
+END
+
+IDD_PARAFORMAT DIALOG DISCARDABLE 30, 20, 200, 110
+STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+Caption "Formatera stycke"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Indrag", -1, 10, 10, 120, 68
+ LTEXT "Vänster", -1, 15, 22, 40, 13
+ EDITTEXT IDC_PARA_LEFT, 55, 20, 60, 13
+ LTEXT "Höger", -1, 15, 40, 40, 13
+ EDITTEXT IDC_PARA_RIGHT, 55, 38, 60, 13
+ LTEXT "Första rad", -1, 15, 58, 40, 13
+ EDITTEXT IDC_PARA_FIRST, 55, 56, 60, 13
+ LTEXT "Justering", -1, 15, 87, 40, 13
+ COMBOBOX IDC_PARA_ALIGN, 55, 85, 60, 60, CBS_DROPDOWNLIST
+ PUSHBUTTON "&OK", IDOK, 137, 15, 50, 15
+ PUSHBUTTON "&Avbryt", IDCANCEL, 137, 33, 50, 15
+END
+
+IDD_TABSTOPS DIALOG DISCARDABLE 30, 20, 200, 110
+STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+Caption "Tabulatorer"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Tabulatorstopp", -1, 10, 10, 120, 90
+ COMBOBOX IDC_TABSTOPS, 20, 20, 100, 60, CBS_SIMPLE | CBS_SORT
+ DEFPUSHBUTTON "Lägg &till", ID_TAB_ADD, 20, 80, 45, 15
+ PUSHBUTTON "Ta &bort", ID_TAB_DEL, 72, 80, 45, 15
+ PUSHBUTTON "&OK", IDOK, 137, 15, 50, 15
+ PUSHBUTTON "&Avbryt", IDCANCEL, 137, 33, 50, 15
+ PUSHBUTTON "Ta bort a&lla", ID_TAB_EMPTY, 137, 51, 50, 15
+END
+
+IDD_FORMATOPTS DIALOG DISCARDABLE 0, 0, 280, 110
+STYLE DS_SYSMODAL
+Caption ""
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Radbrytning", -1, 10, 10, 130, 85
+ RADIOBUTTON "&Ingen radbrytning", IDC_PAGEFMT_WN, 18, 25, 117, 15
+ RADIOBUTTON "&Bryt text vid fönsterkanten", IDC_PAGEFMT_WW, 18, 45,
117, 15
+ RADIOBUTTON "Bryt text vid &marginalen", IDC_PAGEFMT_WM, 18, 65, 117,
15
+ GROUPBOX "Verktygsrader", -1, 150, 10, 120, 85
+ CHECKBOX "&Verktygsrad", IDC_PAGEFMT_TB, 160, 20, 80, 15
+ CHECKBOX "&Formatrad", IDC_PAGEFMT_FB, 160, 38, 80, 15
+ CHECKBOX "&Linjal", IDC_PAGEFMT_RU, 160, 56, 80, 15
+ CHECKBOX "&Statusrad", IDC_PAGEFMT_SB, 160, 74, 80, 15
+ LTEXT "", IDC_PAGEFMT_ID, 0,0,0,0
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_RICHTEXT_FILES_RTF, "Rich text-format (*.rtf)"
+ STRING_TEXT_FILES_TXT, "Textdokument (*.txt)"
+ STRING_TEXT_FILES_UNICODE_TXT, "Unicode-textdokument (*.txt)"
+ STRING_ALL_FILES, "Alla filer (*.*)"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_ALIGN_LEFT, "Vänsterställt"
+ STRING_ALIGN_RIGHT, "Högerställt"
+ STRING_ALIGN_CENTER, "Centrerat"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_NEWFILE_RICHTEXT, "Rich text-dokument"
+ STRING_NEWFILE_TXT, "Textdokument"
+ STRING_NEWFILE_TXT_UNICODE, "Textdokument (Unicode)"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_PRINTER_FILES_PRN, "Skrivarfiler (*.PRN)"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_VIEWPROPS_TITLE, "Alternativ"
+ STRING_VIEWPROPS_TEXT, "Text"
+ STRING_VIEWPROPS_RICHTEXT, "Rich text"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_PREVIEW_PRINT, "Skriv ut"
+ STRING_PREVIEW_NEXTPAGE, "Nästa sida"
+ STRING_PREVIEW_PREVPAGE, "Föregående sida"
+ STRING_PREVIEW_TWOPAGES, "Två sidor"
+ STRING_PREVIEW_ONEPAGE, "En sida"
+ STRING_PREVIEW_CLOSE, "Stäng"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_UNITS_CM, "cm"
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ STRING_DEFAULT_FILENAME, "Dokument"
+ STRING_PROMPT_SAVE_CHANGES, "Spara ändringar i '%s'?"
+ STRING_SEARCH_FINISHED, "Sökningen i dokumentet har slutförts."
+ STRING_LOAD_RICHED_FAILED, "Misslyckades att ladda
RichEdit-biblioteket."
+ STRING_SAVE_LOSEFORMATTING, "Du har valt att spara i rent textformat, " \
+ "vilket kommer leda till att all formatering
förloras. " \
+ "Ãr du säker att du vill göra detta?"
+ STRING_INVALID_NUMBER, "Ogiltigt talformat"
+ STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not
supported"
+ STRING_WRITE_FAILED, "Kunde inte spara filen."
+ STRING_WRITE_ACCESS_DENIED, "Du har inte tillgång till att spara
filen."
+ STRING_OPEN_FAILED, "Kunde inte öppna filen."
+ STRING_OPEN_ACCESS_DENIED, "Du har inte tillgång till att öppna
filen."
+ STRING_PRINTING_NOT_IMPLEMENTED, "Utskrift ej implementerat."
+END
+
+#pragma code_page(default)
Propchange: trunk/reactos/base/applications/wordpad/Sv.rc
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/base/applications/wordpad/print.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/print.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/wordpad/print.c [iso-8859-1] Thu Feb 19 04:09:19 2009
@@ -95,7 +95,7 @@
LoadStringW(hInstance, string, text, MAX_STRING_LEN);
hButton = CreateWindowW(WC_BUTTONW, text,
WS_VISIBLE | WS_CHILD, 5, 5, 100, 15,
- hRebarWnd, (HMENU)ULongToHandle(command), hInstance, NULL);
+ hRebarWnd, ULongToHandle(command), hInstance, NULL);
rb.cbSize = sizeof(rb);
rb.fMask = RBBIM_SIZE | RBBIM_CHILDSIZE | RBBIM_STYLE | RBBIM_CHILD | RBBIM_IDEALSIZE
| RBBIM_ID;
@@ -226,12 +226,12 @@
ofn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT;
ofn.hwndOwner = hMainWnd;
ofn.lpstrFilter = file_filter;
- ofn.lpstrFile = (LPWSTR)file;
+ ofn.lpstrFile = file;
ofn.nMaxFile = MAX_PATH;
- ofn.lpstrDefExt = (LPWSTR)defExt;
+ ofn.lpstrDefExt = defExt;
if(GetSaveFileNameW(&ofn))
- return (LPWSTR)file;
+ return file;
else
return FALSE;
}
Modified: trunk/reactos/base/applications/wordpad/rsrc.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/rsrc.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/wordpad/rsrc.rc [iso-8859-1] Thu Feb 19 04:09:19 2009
@@ -77,5 +77,6 @@
#include "Pt.rc"
#include "Ru.rc"
#include "Si.rc"
+#include "Sv.rc"
#include "Tr.rc"
#include "Zh.rc"
Modified: trunk/reactos/base/applications/wordpad/wordpad.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/wordpad.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/wordpad/wordpad.c [iso-8859-1] Thu Feb 19 04:09:19
2009
@@ -301,7 +301,7 @@
if(lstrcmpW(sizeBuffer, wszNewFontSize))
{
float size = 0;
- if(number_from_string((LPCWSTR) wszNewFontSize, &size, FALSE)
+ if(number_from_string(wszNewFontSize, &size, FALSE)
&& size > 0)
{
set_size(size);
@@ -322,7 +322,7 @@
cbItem.iItem = -1;
wsprintfW(buffer, stringFormat, size);
- cbItem.pszText = (LPWSTR)buffer;
+ cbItem.pszText = buffer;
SendMessageW(hSizeListWnd, CBEM_INSERTITEMW, 0, (LPARAM)&cbItem);
}
@@ -494,7 +494,7 @@
SendMessageW(hEditorWnd, EM_GETCHARFORMAT, SCF_SELECTION, (LPARAM)&format);
if(lstrcmpW(format.szFaceName, wszNewFaceName))
- set_font((LPCWSTR) wszNewFaceName);
+ set_font(wszNewFaceName);
}
static void add_font(LPCWSTR fontName, DWORD fontType, HWND hListWnd, const
NEWTEXTMETRICEXW *ntmc)
@@ -1412,11 +1412,11 @@
WCHAR buffer[MAX_STRING_LEN];
HWND hListWnd = GetDlgItem(hWnd, IDC_NEWFILE);
- LoadStringW(hInstance, STRING_NEWFILE_RICHTEXT, (LPWSTR)buffer,
MAX_STRING_LEN);
+ LoadStringW(hInstance, STRING_NEWFILE_RICHTEXT, buffer, MAX_STRING_LEN);
SendMessageW(hListWnd, LB_ADDSTRING, 0, (LPARAM)&buffer);
- LoadStringW(hInstance, STRING_NEWFILE_TXT, (LPWSTR)buffer,
MAX_STRING_LEN);
+ LoadStringW(hInstance, STRING_NEWFILE_TXT, buffer, MAX_STRING_LEN);
SendMessageW(hListWnd, LB_ADDSTRING, 0, (LPARAM)&buffer);
- LoadStringW(hInstance, STRING_NEWFILE_TXT_UNICODE, (LPWSTR)buffer,
MAX_STRING_LEN);
+ LoadStringW(hInstance, STRING_NEWFILE_TXT_UNICODE, buffer,
MAX_STRING_LEN);
SendMessageW(hListWnd, LB_ADDSTRING, 0, (LPARAM)&buffer);
SendMessageW(hListWnd, LB_SETSEL, TRUE, 0);