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
48fcccd8
Commit
48fcccd8
authored
Oct 10, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tab: Support for TCN_KEYDOWN notification.
parent
64102f5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tab.c
dlls/comctl32/tab.c
+11
-3
No files found.
dlls/comctl32/tab.c
View file @
48fcccd8
...
...
@@ -46,7 +46,6 @@
* NM_RELEASEDCAPTURE
* TCN_FOCUSCHANGE
* TCN_GETOBJECT
* TCN_KEYDOWN
*
* Macros:
* TabCtrl_AdjustRect
...
...
@@ -488,9 +487,18 @@ TAB_GetItemRect(const TAB_INFO *infoPtr, INT item, RECT *rect)
*
* This method is called to handle keyboard input
*/
static
LRESULT
TAB_KeyDown
(
TAB_INFO
*
infoPtr
,
WPARAM
keyCode
)
static
LRESULT
TAB_KeyDown
(
TAB_INFO
*
infoPtr
,
WPARAM
keyCode
,
LPARAM
lParam
)
{
INT
newItem
=
-
1
;
NMTCKEYDOWN
nm
;
/* TCN_KEYDOWN notification sent always */
nm
.
hdr
.
hwndFrom
=
infoPtr
->
hwnd
;
nm
.
hdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwnd
,
GWLP_ID
);
nm
.
hdr
.
code
=
TCN_KEYDOWN
;
nm
.
wVKey
=
keyCode
;
nm
.
flags
=
lParam
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nm
.
hdr
.
idFrom
,
(
LPARAM
)
&
nm
);
switch
(
keyCode
)
{
...
...
@@ -3473,7 +3481,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break
;
/* Don't disturb normal focus behavior */
case
WM_KEYDOWN
:
return
TAB_KeyDown
(
infoPtr
,
wParam
);
return
TAB_KeyDown
(
infoPtr
,
wParam
,
lParam
);
case
WM_NCHITTEST
:
return
TAB_NCHitTest
(
infoPtr
,
lParam
);
...
...
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