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
5f2e8b7f
Commit
5f2e8b7f
authored
Aug 09, 2004
by
Jon Griffiths
Committed by
Alexandre Julliard
Aug 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete the about dialog font when the dialog is closed.
parent
4d73f222
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
shell32_main.c
dlls/shell32/shell32_main.c
+11
-10
No files found.
dlls/shell32/shell32_main.c
View file @
5f2e8b7f
...
...
@@ -625,6 +625,7 @@ typedef struct
LPCWSTR
szApp
;
LPCWSTR
szOtherStuff
;
HICON
hIcon
;
HFONT
hFont
;
}
ABOUT_INFO
;
#define IDC_STATIC_TEXT 100
...
...
@@ -634,8 +635,6 @@ typedef struct
#define DROP_FIELD_TOP (-15)
#define DROP_FIELD_HEIGHT 15
static
HFONT
hIconTitleFont
;
static
BOOL
__get_dropline
(
HWND
hWnd
,
LPRECT
lprect
)
{
HWND
hWndCtl
=
GetDlgItem
(
hWnd
,
IDC_WINE_TEXT
);
if
(
hWndCtl
)
...
...
@@ -755,13 +754,7 @@ INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
SetWindowTextW
(
GetDlgItem
(
hWnd
,
IDC_STATIC_TEXT
),
info
->
szOtherStuff
);
hWndCtl
=
GetDlgItem
(
hWnd
,
IDC_LISTBOX
);
SendMessageW
(
hWndCtl
,
WM_SETREDRAW
,
0
,
0
);
if
(
!
hIconTitleFont
)
{
LOGFONTW
logFont
;
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
hIconTitleFont
=
CreateFontIndirectW
(
&
logFont
);
}
SendMessageW
(
hWndCtl
,
WM_SETFONT
,
(
WPARAM
)
hIconTitleFont
,
0
);
SendMessageW
(
hWndCtl
,
WM_SETFONT
,
(
WPARAM
)
info
->
hFont
,
0
);
while
(
*
pstr
)
{
WCHAR
name
[
64
];
...
...
@@ -842,8 +835,10 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
HICON
hIcon
)
{
ABOUT_INFO
info
;
LOGFONTW
logFont
;
HRSRC
hRes
;
LPVOID
template
;
BOOL
bRet
;
TRACE
(
"
\n
"
);
...
...
@@ -854,8 +849,14 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
info
.
szApp
=
szApp
;
info
.
szOtherStuff
=
szOtherStuff
;
info
.
hIcon
=
hIcon
?
hIcon
:
LoadIconW
(
0
,
(
LPWSTR
)
IDI_WINLOGO
);
return
DialogBoxIndirectParamW
((
HINSTANCE
)
GetWindowLongW
(
hWnd
,
GWL_HINSTANCE
),
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
info
.
hFont
=
CreateFontIndirectW
(
&
logFont
);
bRet
=
DialogBoxIndirectParamW
((
HINSTANCE
)
GetWindowLongW
(
hWnd
,
GWL_HINSTANCE
),
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
DeleteObject
(
info
.
hFont
);
return
bRet
;
}
/*************************************************************************
...
...
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