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
c0a3cb13
Commit
c0a3cb13
authored
Aug 08, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build with older compilers.
parent
c652f341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
treeview.c
programs/regedit/treeview.c
+5
-2
No files found.
programs/regedit/treeview.c
View file @
c0a3cb13
...
...
@@ -19,6 +19,9 @@
*/
#define WIN32_LEAN_AND_MEAN
/* Exclude rarely-used stuff from Windows headers */
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include <windows.h>
#include <commctrl.h>
#include <stdlib.h>
...
...
@@ -90,7 +93,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPTSTR label, HK
tvi
.
iSelectedImage
=
Image_Open
;
tvi
.
cChildren
=
dwChildren
;
tvi
.
lParam
=
(
LPARAM
)
hKey
;
tvins
.
item
=
tvi
;
tvins
.
u
.
item
=
tvi
;
if
(
hKey
)
tvins
.
hInsertAfter
=
(
HTREEITEM
)
TVI_LAST
;
else
tvins
.
hInsertAfter
=
(
HTREEITEM
)
TVI_SORT
;
tvins
.
hParent
=
hParent
;
...
...
@@ -115,7 +118,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName)
tvi
.
cChildren
=
5
;
/* Save the heading level in the item's application-defined data area. */
tvi
.
lParam
=
(
LPARAM
)
NULL
;
tvins
.
item
=
tvi
;
tvins
.
u
.
item
=
tvi
;
tvins
.
hInsertAfter
=
(
HTREEITEM
)
TVI_FIRST
;
tvins
.
hParent
=
TVI_ROOT
;
/* Add the item to the tree view control. */
...
...
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