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
577e2298
Commit
577e2298
authored
Apr 13, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Apr 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preliminary support for MB_*MODAL styles.
parent
6d09bf77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
msgbox.c
windows/msgbox.c
+19
-2
No files found.
windows/msgbox.c
View file @
577e2298
...
...
@@ -180,7 +180,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSA lpmb)
/* Resize the window */
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
wwidth
,
wheight
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
/* Position the icon */
SetWindowPos
(
GetDlgItem
(
hwnd
,
MSGBOX_IDICON
),
0
,
ileft
,
(
tiheight
-
iheight
)
/
2
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
...
...
@@ -204,6 +204,23 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSA lpmb)
bpos
+=
bw
+
bspace
;
}
}
/* handle modal MessageBoxes */
if
(
lpmb
->
dwStyle
&
(
MB_TASKMODAL
|
MB_SYSTEMMODAL
))
{
FIXME
(
"%s modal msgbox ! Not modal yet.
\n
"
,
lpmb
->
dwStyle
&
MB_TASKMODAL
?
"task"
:
"system"
);
/* Probably do EnumTaskWindows etc. here for TASKMODAL
* and work your way up to the top - I'm lazy (HWND_TOP) */
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
if
(
lpmb
->
dwStyle
&
MB_TASKMODAL
)
/* at least MB_TASKMODAL seems to imply a ShowWindow */
ShowWindow
(
hwnd
,
SW_SHOW
);
}
if
(
lpmb
->
dwStyle
&
MB_APPLMODAL
)
FIXME
(
"app modal msgbox ! Not modal yet.
\n
"
);
return
hFont
;
}
...
...
@@ -240,7 +257,7 @@ static LRESULT CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message,
default:
/* Ok. Ignore all the other messages */
TRACE
(
"Message number
%i
is being ignored.
\n
"
,
message
);
TRACE
(
"Message number
0x%04x
is being ignored.
\n
"
,
message
);
break
;
}
return
0
;
...
...
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