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
1fd63057
Commit
1fd63057
authored
Feb 12, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
Feb 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WM_ACTIVATE default processing should set window focus.
Should fix focus problems in non-managed mode.
parent
4a8639cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
defwnd.c
windows/defwnd.c
+8
-1
No files found.
windows/defwnd.c
View file @
1fd63057
...
...
@@ -225,9 +225,16 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT32 msg, WPARAM32 wParam,
return
(
LOWORD
(
lParam
)
==
HTCAPTION
)
?
MA_NOACTIVATE
:
MA_ACTIVATE
;
case
WM_ACTIVATE
:
if
(
LOWORD
(
wParam
)
!=
WA_INACTIVE
)
/* The default action in Windows is to set the keyboard focus to
* the window, if it's being activated and not minimized */
if
(
LOWORD
(
wParam
)
!=
WA_INACTIVE
)
{
/* I don't know who put this SetWindowPos here, it does not
* seem very logical to have it here... (FIXME?) */
SetWindowPos32
(
wndPtr
->
hwndSelf
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
if
(
!
(
wndPtr
->
dwStyle
&
WS_MINIMIZE
))
SetFocus32
(
wndPtr
->
hwndSelf
);
}
break
;
case
WM_ERASEBKGND
:
...
...
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