Commit 9bfcbefd authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

- remove unused IDS_FILE_MOVE_ERROR

- use SetWindowFont() instead of SendMessage(WM_SETFONT) - remove unused comment - use GET_X_LPARAM() instead of GET_X_LPARAM() - remove old _ROS_ preprocessor statements
parent ecd78d78
...@@ -182,5 +182,4 @@ STRINGTABLE ...@@ -182,5 +182,4 @@ STRINGTABLE
{ {
IDS_FONT_SEL_DLG_NAME "Applying font settings" IDS_FONT_SEL_DLG_NAME "Applying font settings"
IDS_FONT_SEL_ERROR "Error while selecting new font." IDS_FONT_SEL_ERROR "Error while selecting new font."
IDS_FILE_MOVE_ERROR "Error while moving file or directory."
} }
...@@ -183,5 +183,4 @@ STRINGTABLE ...@@ -183,5 +183,4 @@ STRINGTABLE
{ {
IDS_FONT_SEL_DLG_NAME "Applica le impostazioni dei font" IDS_FONT_SEL_DLG_NAME "Applica le impostazioni dei font"
IDS_FONT_SEL_ERROR "Si verificato un errore durante la selezione del nuovo font." IDS_FONT_SEL_ERROR "Si verificato un errore durante la selezione del nuovo font."
IDS_FILE_MOVE_ERROR "Si verificato un errore durante lo spostamento del file o della directory."
} }
...@@ -183,5 +183,4 @@ STRINGTABLE ...@@ -183,5 +183,4 @@ STRINGTABLE
{ {
IDS_FONT_SEL_DLG_NAME "Wprowadzanie ustawie czcionki" IDS_FONT_SEL_DLG_NAME "Wprowadzanie ustawie czcionki"
IDS_FONT_SEL_ERROR "Bd przy wybieraniu czcionki" IDS_FONT_SEL_ERROR "Bd przy wybieraniu czcionki"
IDS_FILE_MOVE_ERROR "Bd przy przenoszeniu pliku."
} }
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
/* string table */ /* string table */
#define IDS_FONT_SEL_DLG_NAME 1101 #define IDS_FONT_SEL_DLG_NAME 1101
#define IDS_FONT_SEL_ERROR 1103 #define IDS_FONT_SEL_ERROR 1103
#define IDS_FILE_MOVE_ERROR 1104
/* range for drive bar command ids: 0x9000..0x90FF */ /* range for drive bar command ids: 0x9000..0x90FF */
#ifdef __WINE__ #ifdef __WINE__
......
...@@ -2083,7 +2083,7 @@ static HWND create_header(HWND parent, Pane* pane, int id) ...@@ -2083,7 +2083,7 @@ static HWND create_header(HWND parent, Pane* pane, int id)
if (!hwnd) if (!hwnd)
return 0; return 0;
SendMessage(hwnd, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), FALSE); SetWindowFont(hwnd, GetStockObject(DEFAULT_GUI_FONT), FALSE);
hdi.mask = HDI_TEXT|HDI_WIDTH|HDI_FORMAT; hdi.mask = HDI_TEXT|HDI_WIDTH|HDI_FORMAT;
...@@ -2321,7 +2321,7 @@ static void create_tree_window(HWND parent, Pane* pane, int id, int id_header) ...@@ -2321,7 +2321,7 @@ static void create_tree_window(HWND parent, Pane* pane, int id, int id_header)
SetWindowLong(pane->hwnd, GWL_USERDATA, (LPARAM)pane); SetWindowLong(pane->hwnd, GWL_USERDATA, (LPARAM)pane);
g_orgTreeWndProc = SubclassWindow(pane->hwnd, TreeWndProc); g_orgTreeWndProc = SubclassWindow(pane->hwnd, TreeWndProc);
SendMessage(pane->hwnd, WM_SETFONT, (WPARAM)Globals.hfont, FALSE); SetWindowFont(pane->hwnd, Globals.hfont, FALSE);
/* insert entries into listbox */ /* insert entries into listbox */
if (entry) if (entry)
...@@ -3363,8 +3363,6 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam ...@@ -3363,8 +3363,6 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
LPDRAWITEMSTRUCT dis = (LPDRAWITEMSTRUCT)lparam; LPDRAWITEMSTRUCT dis = (LPDRAWITEMSTRUCT)lparam;
Entry* entry = (Entry*) dis->itemData; Entry* entry = (Entry*) dis->itemData;
/*dis->rcItem.top*=2;
dis->rcItem.bottom*=2;*/
if (dis->CtlID == IDW_TREE_LEFT) if (dis->CtlID == IDW_TREE_LEFT)
draw_item(&child->left, dis, entry, -1); draw_item(&child->left, dis, entry, -1);
else else
...@@ -3414,7 +3412,7 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam ...@@ -3414,7 +3412,7 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
case WM_LBUTTONDOWN: { case WM_LBUTTONDOWN: {
RECT rt; RECT rt;
int x = LOWORD(lparam); int x = GET_X_LPARAM(lparam);
GetClientRect(hwnd, &rt); GetClientRect(hwnd, &rt);
...@@ -3964,11 +3962,9 @@ int winefile_main(HINSTANCE hinstance, HWND hwndParent, int cmdshow) ...@@ -3964,11 +3962,9 @@ int winefile_main(HINSTANCE hinstance, HWND hwndParent, int cmdshow)
InitInstance(hinstance); InitInstance(hinstance);
#ifndef _ROS_ /* don't maximize if being called from the ROS desktop */
if (cmdshow == SW_SHOWNORMAL) if (cmdshow == SW_SHOWNORMAL)
/*TODO: read window placement from registry */ /*TODO: read window placement from registry */
cmdshow = SW_MAXIMIZE; cmdshow = SW_MAXIMIZE;
#endif
show_frame(hwndParent, cmdshow); show_frame(hwndParent, cmdshow);
...@@ -3989,8 +3985,6 @@ int winefile_main(HINSTANCE hinstance, HWND hwndParent, int cmdshow) ...@@ -3989,8 +3985,6 @@ int winefile_main(HINSTANCE hinstance, HWND hwndParent, int cmdshow)
} }
#ifndef _ROS_
int APIENTRY WinMain(HINSTANCE hinstance, int APIENTRY WinMain(HINSTANCE hinstance,
HINSTANCE previnstance, HINSTANCE previnstance,
LPSTR cmdline, LPSTR cmdline,
...@@ -4005,5 +3999,3 @@ int APIENTRY WinMain(HINSTANCE hinstance, ...@@ -4005,5 +3999,3 @@ int APIENTRY WinMain(HINSTANCE hinstance,
return 0; return 0;
} }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment