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
43faed99
Commit
43faed99
authored
Aug 18, 1999
by
Thuy Nguyen
Committed by
Alexandre Julliard
Aug 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the PSH_USEICONID/PSH_USEHICON and the PSP_USETITLE
flags.
parent
0007842e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
propsheet.c
dlls/comctl32/propsheet.c
+33
-0
No files found.
dlls/comctl32/propsheet.c
View file @
43faed99
...
...
@@ -17,6 +17,7 @@
#include "winnls.h"
#include "comctl32.h"
#include "debugtools.h"
#include "heap.h"
/******************************************************************************
...
...
@@ -273,6 +274,13 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEA lppsp,
TRACE
(
"Tab %d %s
\n
"
,
index
,
debugstr_w
((
LPCWSTR
)
p
));
p
+=
lstrlenW
((
LPCWSTR
)
p
)
+
1
;
if
(
dwFlags
&
PSP_USETITLE
)
{
psInfo
->
proppage
[
index
].
pszText
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lppsp
->
pszTitle
);
}
/*
* Build the image list for icons
*/
...
...
@@ -1290,6 +1298,31 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
HWND
hwndTabCtrl
=
GetDlgItem
(
hwnd
,
IDC_TABCONTROL
);
LPCPROPSHEETPAGEA
ppshpage
;
/*
* Small icon in the title bar.
*/
if
((
psInfo
->
ppshheader
->
dwFlags
&
PSH_USEICONID
)
||
(
psInfo
->
ppshheader
->
dwFlags
&
PSH_USEHICON
))
{
HICON
hIcon
;
int
icon_cx
=
GetSystemMetrics
(
SM_CXSMICON
);
int
icon_cy
=
GetSystemMetrics
(
SM_CYSMICON
);
if
(
psInfo
->
ppshheader
->
dwFlags
&
PSH_USEICONID
)
hIcon
=
LoadImageA
(
psInfo
->
ppshheader
->
hInstance
,
psInfo
->
ppshheader
->
u1
.
pszIcon
,
IMAGE_ICON
,
icon_cx
,
icon_cy
,
LR_DEFAULTCOLOR
);
else
hIcon
=
psInfo
->
ppshheader
->
u1
.
hIcon
;
SendMessageA
(
hwnd
,
WM_SETICON
,
0
,
hIcon
);
}
if
(
psInfo
->
ppshheader
->
dwFlags
&
PSH_USEHICON
)
SendMessageA
(
hwnd
,
WM_SETICON
,
0
,
psInfo
->
ppshheader
->
u1
.
hIcon
);
psInfo
->
strPropertiesFor
=
strCaption
;
GetWindowTextA
(
hwnd
,
psInfo
->
strPropertiesFor
,
MAX_CAPTION_LENGTH
);
...
...
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