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
a5816064
Commit
a5816064
authored
Apr 09, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix Win64 warnings.
parent
7656d886
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
listview.c
programs/regedit/listview.c
+5
-5
main.c
programs/regedit/main.c
+1
-1
main.h
programs/regedit/main.h
+2
-2
treeview.c
programs/regedit/treeview.c
+2
-2
No files found.
programs/regedit/listview.c
View file @
a5816064
...
...
@@ -43,7 +43,7 @@ typedef struct tagLINE_INFO
*/
static
WNDPROC
g_orgListWndProc
;
static
DWORD
g_columnToSort
=
~
0U
L
;
static
DWORD
g_columnToSort
=
~
0U
;
static
BOOL
g_invertSort
=
FALSE
;
static
LPTSTR
g_valueName
;
static
LPTSTR
g_currentPath
;
...
...
@@ -327,7 +327,7 @@ static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSor
if
(
!
l
->
name
)
return
-
1
;
if
(
!
r
->
name
)
return
+
1
;
if
(
g_columnToSort
==
~
0U
L
)
if
(
g_columnToSort
==
~
0U
)
g_columnToSort
=
0
;
if
(
g_columnToSort
==
1
&&
l
->
dwValType
!=
r
->
dwValType
)
...
...
@@ -454,7 +454,7 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
}
HWND
CreateListView
(
HWND
hwndParent
,
int
id
)
HWND
CreateListView
(
HWND
hwndParent
,
UINT
id
)
{
RECT
rcClient
;
HWND
hwndLV
;
...
...
@@ -467,7 +467,7 @@ HWND CreateListView(HWND hwndParent, int id)
hwndLV
=
CreateWindowEx
(
WS_EX_CLIENTEDGE
,
WC_LISTVIEW
,
_T
(
"List View"
),
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
LVS_REPORT
|
LVS_EDITLABELS
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
hwndParent
,
(
HMENU
)
id
,
hInst
,
NULL
);
hwndParent
,
(
HMENU
)
ULongToHandle
(
id
)
,
hInst
,
NULL
);
if
(
!
hwndLV
)
return
NULL
;
SendMessage
(
hwndLV
,
LVM_SETEXTENDEDLISTVIEWSTYLE
,
0
,
LVS_EX_FULLROWSELECT
);
...
...
@@ -510,7 +510,7 @@ BOOL RefreshListView(HWND hwndLV, HKEY hKeyRoot, LPCTSTR keyPath, LPCTSTR highli
free
(((
LINE_INFO
*
)
item
.
lParam
)
->
name
);
HeapFree
(
GetProcessHeap
(),
0
,
(
void
*
)
item
.
lParam
);
}
g_columnToSort
=
~
0U
L
;
g_columnToSort
=
~
0U
;
SendMessage
(
hwndLV
,
LVM_DELETEALLITEMS
,
0
,
0L
);
/* get size information and resize the buffers if necessary */
...
...
programs/regedit/main.c
View file @
a5816064
...
...
@@ -118,7 +118,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
DWORD dwError = GetLastError();
} */
hFrameWnd
=
CreateWindowEx
(
0
,
(
LPCTSTR
)(
int
)
hFrameWndClass
,
szTitle
,
hFrameWnd
=
CreateWindowEx
(
0
,
MAKEINTRESOURCE
(
hFrameWndClass
)
,
szTitle
,
WS_OVERLAPPEDWINDOW
|
WS_EX_CLIENTEDGE
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
NULL
,
hMenuFrame
,
hInstance
,
NULL
/*lpParam*/
);
...
...
programs/regedit/main.h
View file @
a5816064
...
...
@@ -106,7 +106,7 @@ extern void SetupStatusBar(HWND hWnd, BOOL bResize);
extern
void
UpdateStatusBar
(
void
);
/* listview.c */
extern
HWND
CreateListView
(
HWND
hwndParent
,
int
id
);
extern
HWND
CreateListView
(
HWND
hwndParent
,
UINT
id
);
extern
BOOL
RefreshListView
(
HWND
hwndLV
,
HKEY
hKeyRoot
,
LPCTSTR
keyPath
,
LPCTSTR
highlightValue
);
extern
HWND
StartValueRename
(
HWND
hwndLV
);
extern
LPCTSTR
GetValueName
(
HWND
hwndLV
);
...
...
@@ -114,7 +114,7 @@ extern BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Res
extern
BOOL
IsDefaultValue
(
HWND
hwndLV
,
int
i
);
/* treeview.c */
extern
HWND
CreateTreeView
(
HWND
hwndParent
,
LPTSTR
pHostName
,
int
id
);
extern
HWND
CreateTreeView
(
HWND
hwndParent
,
LPTSTR
pHostName
,
UINT
id
);
extern
BOOL
RefreshTreeView
(
HWND
hWndTV
);
extern
BOOL
OnTreeExpanding
(
HWND
hWnd
,
NMTREEVIEW
*
pnmtv
);
extern
LPTSTR
GetItemPath
(
HWND
hwndTV
,
HTREEITEM
hItem
,
HKEY
*
phRootKey
);
...
...
programs/regedit/treeview.c
View file @
a5816064
...
...
@@ -650,7 +650,7 @@ BOOL OnTreeExpanding(HWND hwndTV, NMTREEVIEW* pnmtv)
* Returns the handle to the new control if successful, or NULL otherwise.
* hwndParent - handle to the control's parent window.
*/
HWND
CreateTreeView
(
HWND
hwndParent
,
LPTSTR
pHostName
,
int
id
)
HWND
CreateTreeView
(
HWND
hwndParent
,
LPTSTR
pHostName
,
UINT
id
)
{
RECT
rcClient
;
HWND
hwndTV
;
...
...
@@ -660,7 +660,7 @@ HWND CreateTreeView(HWND hwndParent, LPTSTR pHostName, int id)
hwndTV
=
CreateWindowEx
(
WS_EX_CLIENTEDGE
,
WC_TREEVIEW
,
_T
(
"Tree View"
),
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
TVS_HASLINES
|
TVS_HASBUTTONS
|
TVS_LINESATROOT
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
hwndParent
,
(
HMENU
)
id
,
hInst
,
NULL
);
hwndParent
,
(
HMENU
)
ULongToHandle
(
id
)
,
hInst
,
NULL
);
/* Initialize the image list, and add items to the control. */
if
(
!
InitTreeViewImageLists
(
hwndTV
)
||
!
InitTreeViewItems
(
hwndTV
,
pHostName
))
{
DestroyWindow
(
hwndTV
);
...
...
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