Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e5d414ea
Commit
e5d414ea
authored
Oct 07, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Oct 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Immediately refresh child windows after changing the font.
parent
3a3307d4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
23 deletions
+30
-23
En.rc
programs/winefile/En.rc
+0
-1
It.rc
programs/winefile/It.rc
+0
-1
Pl.rc
programs/winefile/Pl.rc
+0
-1
resource.h
programs/winefile/resource.h
+1
-2
winefile.c
programs/winefile/winefile.c
+27
-14
winefile.h
programs/winefile/winefile.h
+2
-4
No files found.
programs/winefile/En.rc
View file @
e5d414ea
...
@@ -181,7 +181,6 @@ FONT 8, "MS Shell Dlg"
...
@@ -181,7 +181,6 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE
STRINGTABLE
{
{
IDS_FONT_SEL_DLG_NAME "Applying font settings"
IDS_FONT_SEL_DLG_NAME "Applying font settings"
IDS_FONT_SEL_DLG_INFO "Changed font settings apply only to newly started windows."
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."
IDS_FILE_MOVE_ERROR "Error while moving file or directory."
}
}
programs/winefile/It.rc
View file @
e5d414ea
...
@@ -182,7 +182,6 @@ FONT 8, "MS Shell Dlg"
...
@@ -182,7 +182,6 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE
STRINGTABLE
{
{
IDS_FONT_SEL_DLG_NAME "Applica le impostazioni dei font"
IDS_FONT_SEL_DLG_NAME "Applica le impostazioni dei font"
IDS_FONT_SEL_DLG_INFO "I cambiamenti alle impostazioni dei font vengono applicati solo alle finestre apertesuccesivamente."
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."
IDS_FILE_MOVE_ERROR "Si verificato un errore durante lo spostamento del file o della directory."
}
}
programs/winefile/Pl.rc
View file @
e5d414ea
...
@@ -182,7 +182,6 @@ FONT 8, "MS Shell Dlg"
...
@@ -182,7 +182,6 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE
STRINGTABLE
{
{
IDS_FONT_SEL_DLG_NAME "Wprowadzanie ustawie czcionki"
IDS_FONT_SEL_DLG_NAME "Wprowadzanie ustawie czcionki"
IDS_FONT_SEL_DLG_INFO "Nowe ustawienia czcionki zadziaaj jedynie dla nowo otwartych okien."
IDS_FONT_SEL_ERROR "Bd przy wybieraniu czcionki"
IDS_FONT_SEL_ERROR "Bd przy wybieraniu czcionki"
IDS_FILE_MOVE_ERROR "Bd przy przenoszeniu pliku."
IDS_FILE_MOVE_ERROR "Bd przy przenoszeniu pliku."
}
}
programs/winefile/resource.h
View file @
e5d414ea
/*
/*
* Copyright 2000 Martin Fuchs
* Copyright 2000
, 2003
Martin Fuchs
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -72,7 +72,6 @@
...
@@ -72,7 +72,6 @@
/* string table */
/* string table */
#define IDS_FONT_SEL_DLG_NAME 1101
#define IDS_FONT_SEL_DLG_NAME 1101
#define IDS_FONT_SEL_DLG_INFO 1102
#define IDS_FONT_SEL_ERROR 1103
#define IDS_FONT_SEL_ERROR 1103
#define IDS_FILE_MOVE_ERROR 1104
#define IDS_FILE_MOVE_ERROR 1104
...
...
programs/winefile/winefile.c
View file @
e5d414ea
/*
/*
* Winefile
* Winefile
*
*
* Copyright 2000 Martin Fuchs
* Copyright 2000
, 2003, 2004
Martin Fuchs
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -1490,7 +1490,7 @@ static HWND create_child_window(ChildWnd* child)
...
@@ -1490,7 +1490,7 @@ static HWND create_child_window(ChildWnd* child)
mcs
.
y
=
child
->
pos
.
rcNormalPosition
.
top
;
mcs
.
y
=
child
->
pos
.
rcNormalPosition
.
top
;
mcs
.
cx
=
child
->
pos
.
rcNormalPosition
.
right
-
child
->
pos
.
rcNormalPosition
.
left
;
mcs
.
cx
=
child
->
pos
.
rcNormalPosition
.
right
-
child
->
pos
.
rcNormalPosition
.
left
;
mcs
.
cy
=
child
->
pos
.
rcNormalPosition
.
bottom
-
child
->
pos
.
rcNormalPosition
.
top
;
mcs
.
cy
=
child
->
pos
.
rcNormalPosition
.
bottom
-
child
->
pos
.
rcNormalPosition
.
top
;
mcs
.
style
=
1
;
mcs
.
style
=
0
;
mcs
.
lParam
=
0
;
mcs
.
lParam
=
0
;
hcbthook
=
SetWindowsHookEx
(
WH_CBT
,
CBTProc
,
0
,
GetCurrentThreadId
());
hcbthook
=
SetWindowsHookEx
(
WH_CBT
,
CBTProc
,
0
,
GetCurrentThreadId
());
...
@@ -1817,12 +1817,13 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
...
@@ -1817,12 +1817,13 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
case
ID_WINDOW_ARRANGE
:
case
ID_WINDOW_ARRANGE
:
SendMessage
(
Globals
.
hmdiclient
,
WM_MDIICONARRANGE
,
0
,
0
);
SendMessage
(
Globals
.
hmdiclient
,
WM_MDIICONARRANGE
,
0
,
0
);
break
;
break
;
case
ID_SELECT_FONT
:
{
case
ID_SELECT_FONT
:
{
TCHAR
dlg_name
[
BUFFER_LEN
],
dlg_info
[
BUFFER_LEN
];
CHOOSEFONT
chFont
;
CHOOSEFONT
chFont
;
LOGFONT
lFont
;
LOGFONT
lFont
;
HDC
hdc
=
GetDC
(
hwnd
);
HDC
hdc
=
GetDC
(
hwnd
);
char
dlg_name
[
255
],
dlg_info
[
255
];
chFont
.
lStructSize
=
sizeof
(
CHOOSEFONT
);
chFont
.
lStructSize
=
sizeof
(
CHOOSEFONT
);
chFont
.
hwndOwner
=
hwnd
;
chFont
.
hwndOwner
=
hwnd
;
chFont
.
hDC
=
NULL
;
chFont
.
hDC
=
NULL
;
...
@@ -1837,20 +1838,32 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
...
@@ -1837,20 +1838,32 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
chFont
.
nFontType
=
SIMULATED_FONTTYPE
;
chFont
.
nFontType
=
SIMULATED_FONTTYPE
;
chFont
.
nSizeMin
=
0
;
chFont
.
nSizeMin
=
0
;
chFont
.
nSizeMax
=
24
;
chFont
.
nSizeMax
=
24
;
if
(
ChooseFont
(
&
chFont
))
{
LoadString
(
Globals
.
hInstance
,
IDS_FONT_SEL_DLG_NAME
,
dlg_name
,
MAX_LOAD_STRING
);
if
(
ChooseFont
(
&
chFont
))
{
LoadString
(
Globals
.
hInstance
,
IDS_FONT_SEL_DLG_INFO
,
dlg_info
,
MAX_LOAD_STRING
)
;
HWND
childWnd
;
MessageBox
(
hwnd
,
dlg_info
,
dlg_name
,
MB_OK
|
MB_ICONINFORMATION
);
Globals
.
hfont
=
CreateFontIndirect
(
&
lFont
);
Globals
.
hfont
=
CreateFontIndirect
(
&
lFont
);
SelectFont
(
hdc
,
Globals
.
hfont
);
SelectFont
(
hdc
,
Globals
.
hfont
);
GetTextExtentPoint32
(
hdc
,
TEXT
(
" "
),
1
,
&
Globals
.
spaceSize
);
GetTextExtentPoint32
(
hdc
,
TEXT
(
" "
),
1
,
&
Globals
.
spaceSize
);
/* change font in all open child windows */
for
(
childWnd
=
GetWindow
(
Globals
.
hmdiclient
,
GW_CHILD
);
childWnd
;
childWnd
=
GetNextWindow
(
childWnd
,
GW_HWNDNEXT
))
{
ChildWnd
*
child
=
(
ChildWnd
*
)
GetWindowLong
(
childWnd
,
GWL_USERDATA
);
SetWindowFont
(
child
->
left
.
hwnd
,
Globals
.
hfont
,
TRUE
);
SetWindowFont
(
child
->
right
.
hwnd
,
Globals
.
hfont
,
TRUE
);
ListBox_SetItemHeight
(
child
->
left
.
hwnd
,
1
,
max
(
Globals
.
spaceSize
.
cy
,
IMAGE_HEIGHT
+
3
));
ListBox_SetItemHeight
(
child
->
right
.
hwnd
,
1
,
max
(
Globals
.
spaceSize
.
cy
,
IMAGE_HEIGHT
+
3
));
InvalidateRect
(
child
->
left
.
hwnd
,
NULL
,
TRUE
);
InvalidateRect
(
child
->
right
.
hwnd
,
NULL
,
TRUE
);
}
}
}
else
if
(
CommDlgExtendedError
())
{
else
if
(
CommDlgExtendedError
())
{
LoadString
(
Globals
.
hInstance
,
IDS_FONT_SEL_DLG_NAME
,
dlg_name
,
MAX_LOAD_STRING
);
LoadString
(
Globals
.
hInstance
,
IDS_FONT_SEL_DLG_NAME
,
dlg_name
,
BUFFER_LEN
);
LoadString
(
Globals
.
hInstance
,
IDS_FONT_SEL_ERROR
,
dlg_info
,
MAX_LOAD_STRING
);
LoadString
(
Globals
.
hInstance
,
IDS_FONT_SEL_ERROR
,
dlg_info
,
BUFFER_LEN
);
MessageBox
(
hwnd
,
dlg_info
,
dlg_name
,
MB_OK
);
MessageBox
(
hwnd
,
dlg_info
,
dlg_name
,
MB_OK
);
}
}
ReleaseDC
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
break
;
break
;
}
}
...
...
programs/winefile/winefile.h
View file @
e5d414ea
/*
/*
* Copyright 2000 Martin Fuchs
* Copyright 2000
, 2003, 2004
Martin Fuchs
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -75,9 +75,7 @@ enum IMAGE {
...
@@ -75,9 +75,7 @@ enum IMAGE {
IMG_FOLDER
,
IMG_OPEN_FOLDER
,
IMG_FOLDER_PLUS
,
IMG_OPEN_PLUS
,
IMG_OPEN_MINUS
,
IMG_FOLDER
,
IMG_OPEN_FOLDER
,
IMG_FOLDER_PLUS
,
IMG_OPEN_PLUS
,
IMG_OPEN_MINUS
,
IMG_FOLDER_UP
,
IMG_FOLDER_CUR
IMG_FOLDER_UP
,
IMG_FOLDER_CUR
};
};
#ifndef MAX_LOAD_STRING
#define MAX_LOAD_STRING 256
#endif
#define IMAGE_WIDTH 16
#define IMAGE_WIDTH 16
#define IMAGE_HEIGHT 13
#define IMAGE_HEIGHT 13
#define SPLIT_WIDTH 5
#define SPLIT_WIDTH 5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment