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
7285f468
Commit
7285f468
authored
Jan 16, 2004
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Jan 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of control focus.
parent
794e0462
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
childwnd.c
programs/regedit/childwnd.c
+7
-1
listview.c
programs/regedit/listview.c
+1
-1
main.c
programs/regedit/main.c
+2
-1
No files found.
programs/regedit/childwnd.c
View file @
7285f468
...
...
@@ -126,6 +126,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
pChildWnd
->
hWnd
=
hWnd
;
pChildWnd
->
hTreeWnd
=
CreateTreeView
(
hWnd
,
pChildWnd
->
szPath
,
TREE_WINDOW
);
pChildWnd
->
hListWnd
=
CreateListView
(
hWnd
,
LIST_WINDOW
/*, pChildWnd->szPath*/
);
SetFocus
(
pChildWnd
->
hTreeWnd
);
break
;
case
WM_COMMAND
:
if
(
!
_CmdWndProc
(
hWnd
,
message
,
wParam
,
lParam
))
{
...
...
@@ -243,12 +244,17 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
}
}
break
;
case
NM_SETFOCUS
:
pChildWnd
->
nFocusPanel
=
1
;
break
;
default:
goto
def
;
}
}
else
if
((
int
)
wParam
==
LIST_WINDOW
)
{
if
(
!
SendMessage
(
pChildWnd
->
hListWnd
,
message
,
wParam
,
lParam
))
{
if
(((
LPNMHDR
)
lParam
)
->
code
==
NM_SETFOCUS
)
{
pChildWnd
->
nFocusPanel
=
0
;
}
else
if
(
!
SendMessage
(
pChildWnd
->
hListWnd
,
message
,
wParam
,
lParam
))
{
goto
def
;
}
}
...
...
programs/regedit/listview.c
View file @
7285f468
...
...
@@ -375,7 +375,7 @@ HWND CreateListView(HWND hwndParent, int id)
/* Get the dimensions of the parent window's client area, and create the list view control. */
GetClientRect
(
hwndParent
,
&
rcClient
);
hwndLV
=
CreateWindowEx
(
WS_EX_CLIENTEDGE
,
WC_LISTVIEW
,
_T
(
"List View"
),
WS_VISIBLE
|
WS_CHILD
|
LVS_REPORT
|
LVS_EDITLABELS
,
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
LVS_REPORT
|
LVS_EDITLABELS
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
hwndParent
,
(
HMENU
)
id
,
hInst
,
NULL
);
if
(
!
hwndLV
)
return
NULL
;
...
...
programs/regedit/main.c
View file @
7285f468
...
...
@@ -186,7 +186,8 @@ int APIENTRY WinMain(HINSTANCE hInstance,
/* Main message loop */
while
(
GetMessage
(
&
msg
,
(
HWND
)
NULL
,
0
,
0
))
{
if
(
!
TranslateAccelerator
(
msg
.
hwnd
,
hAccel
,
&
msg
))
{
if
(
!
TranslateAccelerator
(
msg
.
hwnd
,
hAccel
,
&
msg
)
&&
!
IsDialogMessage
(
hFrameWnd
,
&
msg
))
{
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
}
...
...
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