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
2faf2cf9
Commit
2faf2cf9
authored
Dec 10, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Dec 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform 16/32A/32W message mapping for posted messages.
parent
7b7e2d43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
13 deletions
+21
-13
menu.c
controls/menu.c
+1
-1
message.h
include/message.h
+3
-3
queue.h
include/queue.h
+8
-2
dialog.c
windows/dialog.c
+1
-1
message.c
windows/message.c
+0
-0
nonclient.c
windows/nonclient.c
+5
-5
queue.c
windows/queue.c
+3
-1
No files found.
controls/menu.c
View file @
2faf2cf9
...
...
@@ -2609,7 +2609,7 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
/* we have to keep the message in the queue until it's
* clear that menu loop is not over yet. */
if
(
!
MSG_InternalGetMessage
(
&
msg
,
msg
.
hwnd
,
mt
.
hOwnerWnd
,
if
(
!
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
msg
.
hwnd
,
mt
.
hOwnerWnd
,
MSGF_MENU
,
PM_NOREMOVE
,
!
enterIdleSent
,
&
enterIdleSent
))
break
;
TranslateMessage
(
&
msg
);
...
...
include/message.h
View file @
2faf2cf9
...
...
@@ -13,9 +13,9 @@
extern
DWORD
MSG_WineStartTicks
;
/* Ticks at Wine startup */
/* message.c */
extern
BOOL
MSG_InternalGetMessage
(
MSG
*
msg
,
HWND
hwnd
,
HWND
hwndOwner
,
WPARAM
code
,
WORD
flags
,
BOOL
sendIdle
,
BOOL
*
idleSent
);
extern
BOOL
MSG_InternalGetMessage
(
int
type
,
MSG
*
msg
,
HWND
hwnd
,
HWND
hwndOwner
,
WPARAM
code
,
WORD
flags
,
BOOL
sendIdle
,
BOOL
*
idleSent
);
/* timer.c */
extern
BOOL
TIMER_Init
(
void
);
...
...
include/queue.h
View file @
2faf2cf9
...
...
@@ -15,13 +15,19 @@
/* Message as stored in the queue (contains the extraInfo field) */
typedef
struct
tagQMSG
{
int
type
;
MSG
msg
;
DWORD
extraInfo
;
/* Only in 3.1 */
DWORD
extraInfo
;
/* Only in 3.1 */
struct
tagQMSG
*
nextMsg
;
struct
tagQMSG
*
prevMsg
;
}
QMSG
;
#define QMSG_WIN16 0
#define QMSG_WIN32A 1
#define QMSG_WIN32W 2
#define QMSG_HARDWARE 3
typedef
struct
tagSMSG
{
...
...
@@ -160,7 +166,7 @@ extern void QUEUE_DecTimerCount( HQUEUE16 hQueue );
extern
BOOL
QUEUE_CreateSysMsgQueue
(
int
size
);
extern
BOOL
QUEUE_DeleteMsgQueue
(
HQUEUE16
hQueue
);
extern
HTASK16
QUEUE_GetQueueTask
(
HQUEUE16
hQueue
);
extern
BOOL
QUEUE_AddMsg
(
HQUEUE16
hQueue
,
MSG
*
msg
,
DWORD
extraInfo
);
extern
BOOL
QUEUE_AddMsg
(
HQUEUE16
hQueue
,
int
type
,
MSG
*
msg
,
DWORD
extraInfo
);
extern
QMSG
*
QUEUE_FindMsg
(
MESSAGEQUEUE
*
msgQueue
,
HWND
hwnd
,
int
first
,
int
last
);
extern
void
QUEUE_RemoveMsg
(
MESSAGEQUEUE
*
msgQueue
,
QMSG
*
qmsg
);
...
...
windows/dialog.c
View file @
2faf2cf9
...
...
@@ -945,7 +945,7 @@ INT DIALOG_DoDialogBox( HWND hwnd, HWND owner )
{
EnableWindow
(
owner
,
FALSE
);
ShowWindow
(
hwnd
,
SW_SHOW
);
while
(
MSG_InternalGetMessage
(
&
msg
,
hwnd
,
owner
,
MSGF_DIALOGBOX
,
while
(
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
hwnd
,
owner
,
MSGF_DIALOGBOX
,
PM_REMOVE
,
!
(
wndPtr
->
dwStyle
&
DS_NOIDLEMSG
),
NULL
))
{
if
(
!
IsDialogMessageA
(
hwnd
,
&
msg
))
...
...
windows/message.c
View file @
2faf2cf9
This diff is collapsed.
Click to expand it.
windows/nonclient.c
View file @
2faf2cf9
...
...
@@ -2045,7 +2045,7 @@ static LONG NC_StartSizeMove( WND* wndPtr, WPARAM16 wParam,
{
while
(
!
hittest
)
{
MSG_InternalGetMessage
(
&
msg
,
0
,
0
,
MSGF_SIZE
,
PM_REMOVE
,
FALSE
,
NULL
);
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
MSGF_SIZE
,
PM_REMOVE
,
FALSE
,
NULL
);
switch
(
msg
.
message
)
{
case
WM_MOUSEMOVE
:
...
...
@@ -2206,7 +2206,7 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam )
{
int
dx
=
0
,
dy
=
0
;
MSG_InternalGetMessage
(
&
msg
,
0
,
0
,
MSGF_SIZE
,
PM_REMOVE
,
FALSE
,
NULL
);
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
MSGF_SIZE
,
PM_REMOVE
,
FALSE
,
NULL
);
/* Exit on button-up, Return, or Esc */
if
((
msg
.
message
==
WM_LBUTTONUP
)
||
...
...
@@ -2395,7 +2395,7 @@ static void NC_TrackMinMaxBox95( HWND hwnd, WORD wParam )
do
{
BOOL
oldstate
=
pressed
;
MSG_InternalGetMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
CONV_POINT32TO16
(
&
msg
.
pt
,
&
pt16
);
pressed
=
(
NC_HandleNCHitTest
(
hwnd
,
pt16
)
==
wParam
);
...
...
@@ -2445,7 +2445,7 @@ static void NC_TrackMinMaxBox( HWND hwnd, WORD wParam )
do
{
BOOL
oldstate
=
pressed
;
MSG_InternalGetMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
CONV_POINT32TO16
(
&
msg
.
pt
,
&
pt16
);
pressed
=
(
NC_HandleNCHitTest
(
hwnd
,
pt16
)
==
wParam
);
...
...
@@ -2501,7 +2501,7 @@ NC_TrackCloseButton95 (HWND hwnd, WORD wParam)
do
{
BOOL
oldstate
=
pressed
;
MSG_InternalGetMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
CONV_POINT32TO16
(
&
msg
.
pt
,
&
pt16
);
pressed
=
(
NC_HandleNCHitTest
(
hwnd
,
pt16
)
==
wParam
);
...
...
windows/queue.c
View file @
2faf2cf9
...
...
@@ -973,7 +973,7 @@ void QUEUE_ReceiveMessage( MESSAGEQUEUE *queue )
*
* Add a message to the queue. Return FALSE if queue is full.
*/
BOOL
QUEUE_AddMsg
(
HQUEUE16
hQueue
,
MSG
*
msg
,
DWORD
extraInfo
)
BOOL
QUEUE_AddMsg
(
HQUEUE16
hQueue
,
int
type
,
MSG
*
msg
,
DWORD
extraInfo
)
{
MESSAGEQUEUE
*
msgQueue
;
QMSG
*
qmsg
;
...
...
@@ -991,6 +991,7 @@ BOOL QUEUE_AddMsg( HQUEUE16 hQueue, MSG *msg, DWORD extraInfo )
EnterCriticalSection
(
&
msgQueue
->
cSection
);
/* Store message */
qmsg
->
type
=
type
;
qmsg
->
msg
=
*
msg
;
qmsg
->
extraInfo
=
extraInfo
;
...
...
@@ -1228,6 +1229,7 @@ void hardware_event( UINT message, WPARAM wParam, LPARAM lParam,
msg
->
pt
.
x
=
xPos
;
msg
->
pt
.
y
=
yPos
;
qmsg
->
extraInfo
=
extraInfo
;
qmsg
->
type
=
QMSG_HARDWARE
;
LeaveCriticalSection
(
&
sysMsgQueue
->
cSection
);
...
...
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