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
2be7ffdf
Commit
2be7ffdf
authored
Mar 01, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use NSContainer as 'This' of its window.
parent
4f75f846
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
nsembed.c
dlls/mshtml/nsembed.c
+5
-6
No files found.
dlls/mshtml/nsembed.c
View file @
2be7ffdf
...
...
@@ -81,23 +81,23 @@ static ATOM nscontainer_class;
static
LRESULT
WINAPI
nsembed_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HTMLDocument
*
This
;
NSContainer
*
This
;
nsresult
nsres
;
static
const
WCHAR
wszTHIS
[]
=
{
'T'
,
'H'
,
'I'
,
'S'
,
0
};
if
(
msg
==
WM_CREATE
)
{
This
=
*
(
HTMLDocument
**
)
lParam
;
This
=
*
(
NSContainer
**
)
lParam
;
SetPropW
(
hwnd
,
wszTHIS
,
This
);
}
else
{
This
=
(
HTMLDocument
*
)
GetPropW
(
hwnd
,
wszTHIS
);
This
=
(
NSContainer
*
)
GetPropW
(
hwnd
,
wszTHIS
);
}
switch
(
msg
)
{
case
WM_SIZE
:
TRACE
(
"(%p)->(WM_SIZE)
\n
"
,
This
);
nsres
=
nsIBaseWindow_SetSize
(
This
->
nscontainer
->
window
,
nsres
=
nsIBaseWindow_SetSize
(
This
->
window
,
LOWORD
(
lParam
),
HIWORD
(
lParam
),
TRUE
);
if
(
NS_FAILED
(
nsres
))
WARN
(
"SetSize failed: %08lx
\n
"
,
nsres
);
...
...
@@ -106,7 +106,6 @@ static LRESULT WINAPI nsembed_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
);
}
static
void
register_nscontainer_class
(
void
)
{
static
WNDCLASSEXW
wndclass
=
{
...
...
@@ -1034,7 +1033,7 @@ void NSContainer_Create(HTMLDocument *doc)
ret
->
hwnd
=
CreateWindowExW
(
0
,
wszNsContainer
,
NULL
,
WS_CHILD
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
,
0
,
0
,
100
,
100
,
GetDesktopWindow
(),
NULL
,
hInst
,
doc
);
GetDesktopWindow
(),
NULL
,
hInst
,
ret
);
nsres
=
nsIBaseWindow_InitWindow
(
ret
->
window
,
ret
->
hwnd
,
NULL
,
0
,
0
,
100
,
100
);
if
(
NS_SUCCEEDED
(
nsres
))
{
...
...
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