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
ee09534c
Commit
ee09534c
authored
Oct 03, 2009
by
Joel Holdsworth
Committed by
Alexandre Julliard
Oct 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Replaced file dialog house icon with the shell icon for desktop.
parent
d222e8ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
800.bmp
dlls/comdlg32/800.bmp
+0
-0
cdlg_xx.rc
dlls/comdlg32/cdlg_xx.rc
+0
-3
filedlg.c
dlls/comdlg32/filedlg.c
+19
-8
No files found.
dlls/comdlg32/800.bmp
deleted
100644 → 0
View file @
d222e8ed
1.3 KB
dlls/comdlg32/cdlg_xx.rc
View file @
ee09534c
...
@@ -71,9 +71,6 @@ PD32_PORTRAIT ICON pd32_portrait.ico
...
@@ -71,9 +71,6 @@ PD32_PORTRAIT ICON pd32_portrait.ico
/* @makedep: pd32_landscape.ico */
/* @makedep: pd32_landscape.ico */
PD32_LANDSCAPE ICON pd32_landscape.ico
PD32_LANDSCAPE ICON pd32_landscape.ico
/* @makedep: 800.bmp */
800 BITMAP DISCARDABLE LOADONCALL "800.bmp"
/* @makedep: folder.ico */
/* @makedep: folder.ico */
FOLDER ICON folder.ico
FOLDER ICON folder.ico
...
...
dlls/comdlg32/filedlg.c
View file @
ee09534c
...
@@ -1320,15 +1320,16 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1320,15 +1320,16 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
{
VIEW_LIST
,
FCIDM_TB_SMALLICON
,
TBSTATE_ENABLED
,
BTNS_BUTTON
,
{
0
,
0
},
0
,
0
},
{
VIEW_LIST
,
FCIDM_TB_SMALLICON
,
TBSTATE_ENABLED
,
BTNS_BUTTON
,
{
0
,
0
},
0
,
0
},
{
VIEW_DETAILS
,
FCIDM_TB_REPORTVIEW
,
TBSTATE_ENABLED
,
BTNS_BUTTON
,
{
0
,
0
},
0
,
0
},
{
VIEW_DETAILS
,
FCIDM_TB_REPORTVIEW
,
TBSTATE_ENABLED
,
BTNS_BUTTON
,
{
0
,
0
},
0
,
0
},
};
};
TBADDBITMAP
tba
[
2
];
static
const
TBADDBITMAP
tba
=
{
HINST_COMMCTRL
,
IDB_VIEW_SMALL_COLOR
};
RECT
rectTB
;
RECT
rectTB
;
RECT
rectlook
;
RECT
rectlook
;
FileOpenDlgInfos
*
fodInfos
=
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
tba
[
0
].
hInst
=
HINST_COMMCTRL
;
HIMAGELIST
toolbarImageList
;
tba
[
0
].
nID
=
IDB_VIEW_SMALL_COLOR
;
SHFILEINFOA
shFileInfo
;
tba
[
1
].
hInst
=
COMDLG32_hInstance
;
ITEMIDLIST
*
desktopPidl
;
tba
[
1
].
nID
=
800
;
FileOpenDlgInfos
*
fodInfos
=
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
TRACE
(
"%p
\n
"
,
fodInfos
);
TRACE
(
"%p
\n
"
,
fodInfos
);
...
@@ -1378,9 +1379,19 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1378,9 +1379,19 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
/* FIXME: use TB_LOADIMAGES when implemented */
/* FIXME: use TB_LOADIMAGES when implemented */
/* SendMessageW(fodInfos->DlgInfos.hwndTB, TB_LOADIMAGES, IDB_VIEW_SMALL_COLOR, HINST_COMMCTRL);*/
/* SendMessageW(fodInfos->DlgInfos.hwndTB, TB_LOADIMAGES, IDB_VIEW_SMALL_COLOR, HINST_COMMCTRL);*/
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_SETMAXTEXTROWS
,
0
,
0
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_SETMAXTEXTROWS
,
0
,
0
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
12
,
(
LPARAM
)
&
tba
[
0
]);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
12
,
(
LPARAM
)
&
tba
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
1
,
(
LPARAM
)
&
tba
[
1
]);
/* Retrieve and add desktop icon to the toolbar */
toolbarImageList
=
(
HIMAGELIST
)
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_GETIMAGELIST
,
0
,
0L
);
SHGetSpecialFolderLocation
(
hwnd
,
CSIDL_DESKTOP
,
&
desktopPidl
);
SHGetFileInfoA
((
LPCSTR
)
desktopPidl
,
0
,
&
shFileInfo
,
sizeof
(
shFileInfo
),
SHGFI_PIDL
|
SHGFI_ICON
|
SHGFI_SMALLICON
);
ImageList_AddIcon
(
toolbarImageList
,
shFileInfo
.
hIcon
);
DestroyIcon
(
shFileInfo
.
hIcon
);
CoTaskMemFree
(
desktopPidl
);
/* Finish Toolbar Construction */
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBUTTONSW
,
9
,
(
LPARAM
)
tbb
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBUTTONSW
,
9
,
(
LPARAM
)
tbb
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_AUTOSIZE
,
0
,
0
);
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_AUTOSIZE
,
0
,
0
);
...
...
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