Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a34dc5b5
Commit
a34dc5b5
authored
Jan 20, 2004
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Jan 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regedit GUI enhancements with new Windows-like icons.
parent
c378ade9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
26 deletions
+34
-26
.cvsignore
programs/regedit/.cvsignore
+6
-3
Makefile.in
programs/regedit/Makefile.in
+6
-3
resource.h
programs/regedit/resource.h
+6
-4
resource.rc
programs/regedit/resource.rc
+0
-0
treeview.c
programs/regedit/treeview.c
+16
-16
No files found.
programs/regedit/.cvsignore
View file @
a34dc5b5
Makefile
folder1.bmp
folder2.bmp
folder3.bmp
bin.ico
computer.ico
folder.ico
folderopen.ico
regedit.exe.dbg.c
regedit.exe.spec.c
regedit.ico
rsrc.res
string.ico
programs/regedit/Makefile.in
View file @
a34dc5b5
...
...
@@ -23,9 +23,12 @@ C_SRCS = \
RC_SRCS
=
rsrc.rc
RC_BINSRC
=
resource.rc
RC_BINARIES
=
\
folder1.bmp
\
folder2.bmp
\
folder3.bmp
bin.ico
\
computer.ico
\
folder.ico
\
folderopen.ico
\
regedit.ico
\
string.ico
PLTESTS
=
\
tests/regedit.pl
...
...
programs/regedit/resource.h
View file @
a34dc5b5
...
...
@@ -31,16 +31,18 @@
#define IDS_LIST_COLUMN_LAST 93
#define IDD_ABOUTBOX 103
#define IDS_APP_TITLE 103
#define IDI_REGEDIT 10
7
#define IDI_REGEDIT 10
0
#define IDI_SMALL 108
#define IDC_REGEDIT 109
#define IDC_REGEDIT_FRAME 110
#define IDR_REGEDIT_MENU 130
#define IDD_DIALOG1 131
#define ID
B
_OPEN_FILE 132
#define ID
I
_OPEN_FILE 132
#define IDD_DIALOG2 132
#define IDB_CLOSED_FILE 133
#define IDB_ROOT 134
#define IDI_CLOSED_FILE 133
#define IDI_ROOT 134
#define IDI_STRING 135
#define IDI_BIN 136
#define IDR_POPUP_MENUS 137
#define IDC_LICENSE_EDIT 1029
#define ID_REGISTRY_EXIT 32770
...
...
programs/regedit/resource.rc
View file @
a34dc5b5
This diff is collapsed.
Click to expand it.
programs/regedit/treeview.c
View file @
a34dc5b5
...
...
@@ -41,9 +41,9 @@ int Image_Root;
static
LPTSTR
pathBuffer
;
#define CX_
BITMAP
16
#define CY_
BITMAP
16
#define NUM_
BITMAPS
3
#define CX_
ICON
16
#define CY_
ICON
16
#define NUM_
ICONS
3
static
BOOL
get_item_path
(
HWND
hwndTV
,
HTREEITEM
hItem
,
HKEY
*
phKey
,
LPTSTR
*
pKeyPath
,
int
*
pPathLen
,
int
*
pMaxLen
)
{
...
...
@@ -165,28 +165,28 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName)
static
BOOL
InitTreeViewImageLists
(
HWND
hwndTV
)
{
HIMAGELIST
himl
;
/* handle to image list */
H
BITMAP
hbmp
;
/* handle to bitmap
*/
H
ICON
hico
;
/* handle to icon
*/
/* Create the image list. */
if
((
himl
=
ImageList_Create
(
CX_
BITMAP
,
CY_BITMAP
,
FALSE
,
NUM_BITMAPS
,
0
))
==
NULL
)
if
((
himl
=
ImageList_Create
(
CX_
ICON
,
CY_ICON
,
ILC_MASK
,
0
,
NUM_ICONS
))
==
NULL
)
return
FALSE
;
/* Add the open file, closed file, and document bitmaps. */
hbmp
=
LoadBitmap
(
hInst
,
MAKEINTRESOURCE
(
IDB_OPEN_FILE
));
Image_Open
=
ImageList_Add
(
himl
,
hbmp
,
NULL
);
DeleteObject
(
hbmp
);
hico
=
LoadIcon
(
hInst
,
MAKEINTRESOURCE
(
IDI_OPEN_FILE
));
Image_Open
=
ImageList_AddIcon
(
himl
,
hico
);
hbmp
=
LoadBitmap
(
hInst
,
MAKEINTRESOURCE
(
IDB_CLOSED_FILE
));
Image_Closed
=
ImageList_Add
(
himl
,
hbmp
,
NULL
);
DeleteObject
(
hbmp
);
hico
=
LoadIcon
(
hInst
,
MAKEINTRESOURCE
(
IDI_CLOSED_FILE
));
Image_Closed
=
ImageList_AddIcon
(
himl
,
hico
);
hbmp
=
LoadBitmap
(
hInst
,
MAKEINTRESOURCE
(
IDB_ROOT
));
Image_Root
=
ImageList_Add
(
himl
,
hbmp
,
NULL
);
DeleteObject
(
hbmp
);
hico
=
LoadIcon
(
hInst
,
MAKEINTRESOURCE
(
IDI_ROOT
));
Image_Root
=
ImageList_AddIcon
(
himl
,
hico
);
/* Fail if not all of the images were added. */
if
(
ImageList_GetImageCount
(
himl
)
<
3
)
return
FALSE
;
if
(
ImageList_GetImageCount
(
himl
)
<
NUM_ICONS
)
{
return
FALSE
;
}
/* Associate the image list with the tree view control. */
TreeView_SetImageList
(
hwndTV
,
himl
,
TVSIL_NORMAL
);
...
...
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