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
21272b31
Commit
21272b31
authored
Jan 20, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make MCIWnd play a bit better as an MDI child.
parent
50a783f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
mciwnd.c
dlls/msvideo/mciwnd.c
+11
-14
No files found.
dlls/msvideo/mciwnd.c
View file @
21272b31
...
...
@@ -417,16 +417,15 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
TRACE
(
"%p %04x %08x %08lx
\n
"
,
hWnd
,
wMsg
,
wParam
,
lParam
);
mwi
=
(
MCIWndInfo
*
)
GetWindowLongW
(
hWnd
,
0
);
if
(
!
mwi
)
{
if
(
wMsg
==
WM_CREATE
)
return
MCIWND_Create
(
hWnd
,
(
CREATESTRUCTW
*
)
lParam
);
if
(
!
mwi
&&
wMsg
!=
WM_CREATE
)
return
DefWindowProcW
(
hWnd
,
wMsg
,
wParam
,
lParam
);
}
switch
(
wMsg
)
{
case
WM_CREATE
:
MCIWND_Create
(
hWnd
,
(
CREATESTRUCTW
*
)
lParam
);
break
;
case
WM_DESTROY
:
if
(
mwi
->
uTimer
)
KillTimer
(
hWnd
,
mwi
->
uTimer
);
...
...
@@ -439,7 +438,7 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
DestroyWindow
(
GetDlgItem
(
hWnd
,
CTL_MENU
));
DestroyWindow
(
GetDlgItem
(
hWnd
,
CTL_PLAYSTOP
));
DestroyWindow
(
GetDlgItem
(
hWnd
,
CTL_TRACKBAR
));
return
0
;
break
;
case
WM_PAINT
:
{
...
...
@@ -468,14 +467,12 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
return
0
;
case
WM_SIZE
:
{
SetWindowPos
(
GetDlgItem
(
hWnd
,
CTL_PLAYSTOP
),
0
,
0
,
HIWORD
(
lParam
)
-
32
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hWnd
,
CTL_MENU
),
0
,
32
,
HIWORD
(
lParam
)
-
32
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hWnd
,
CTL_TRACKBAR
),
0
,
64
,
HIWORD
(
lParam
)
-
32
,
LOWORD
(
lParam
)
-
64
,
32
,
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hWnd
,
CTL_PLAYSTOP
),
0
,
0
,
HIWORD
(
lParam
)
-
32
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hWnd
,
CTL_MENU
),
0
,
32
,
HIWORD
(
lParam
)
-
32
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hWnd
,
CTL_TRACKBAR
),
0
,
64
,
HIWORD
(
lParam
)
-
32
,
LOWORD
(
lParam
)
-
64
,
32
,
SWP_NOACTIVATE
);
MCIWND_notify_size
(
mwi
);
return
0
;
}
MCIWND_notify_size
(
mwi
);
break
;
case
MM_MCINOTIFY
:
MCIWND_notify_mode
(
mwi
);
...
...
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