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
73efbff4
Commit
73efbff4
authored
Mar 28, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Implement BaseControlWindow.
parent
189800e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
window.c
dlls/strmbase/window.c
+0
-0
strmbase.h
include/wine/strmbase.h
+66
-0
No files found.
dlls/strmbase/window.c
View file @
73efbff4
This diff is collapsed.
Click to expand it.
include/wine/strmbase.h
View file @
73efbff4
...
@@ -407,6 +407,7 @@ typedef struct tagBaseWindow
...
@@ -407,6 +407,7 @@ typedef struct tagBaseWindow
}
BaseWindow
;
}
BaseWindow
;
typedef
LPWSTR
(
WINAPI
*
BaseWindow_GetClassWindowStyles
)(
BaseWindow
*
This
,
DWORD
*
pClassStyles
,
DWORD
*
pWindowStyles
,
DWORD
*
pWindowStylesEx
);
typedef
LPWSTR
(
WINAPI
*
BaseWindow_GetClassWindowStyles
)(
BaseWindow
*
This
,
DWORD
*
pClassStyles
,
DWORD
*
pWindowStyles
,
DWORD
*
pWindowStylesEx
);
typedef
RECT
(
WINAPI
*
BaseWindow_GetDefaultRect
)(
BaseWindow
*
This
);
typedef
BOOL
(
WINAPI
*
BaseWindow_PossiblyEatMessage
)(
BaseWindow
*
This
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
typedef
BOOL
(
WINAPI
*
BaseWindow_PossiblyEatMessage
)(
BaseWindow
*
This
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
typedef
LRESULT
(
WINAPI
*
BaseWindow_OnReceiveMessage
)(
BaseWindow
*
This
,
HWND
hwnd
,
INT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
typedef
LRESULT
(
WINAPI
*
BaseWindow_OnReceiveMessage
)(
BaseWindow
*
This
,
HWND
hwnd
,
INT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
typedef
BOOL
(
WINAPI
*
BaseWindow_OnSize
)(
BaseWindow
*
This
,
LONG
Height
,
LONG
Width
);
typedef
BOOL
(
WINAPI
*
BaseWindow_OnSize
)(
BaseWindow
*
This
,
LONG
Height
,
LONG
Width
);
...
@@ -415,6 +416,7 @@ typedef struct BaseWindowFuncTable
...
@@ -415,6 +416,7 @@ typedef struct BaseWindowFuncTable
{
{
/* Required */
/* Required */
BaseWindow_GetClassWindowStyles
pfnGetClassWindowStyles
;
BaseWindow_GetClassWindowStyles
pfnGetClassWindowStyles
;
BaseWindow_GetDefaultRect
pfnGetDefaultRect
;
/* Optional, WinProc Related */
/* Optional, WinProc Related */
BaseWindow_OnReceiveMessage
pfnOnReceiveMessage
;
BaseWindow_OnReceiveMessage
pfnOnReceiveMessage
;
BaseWindow_PossiblyEatMessage
pfnPossiblyEatMessage
;
BaseWindow_PossiblyEatMessage
pfnPossiblyEatMessage
;
...
@@ -426,9 +428,73 @@ HRESULT WINAPI BaseWindow_Destroy(BaseWindow *pBaseWindow);
...
@@ -426,9 +428,73 @@ HRESULT WINAPI BaseWindow_Destroy(BaseWindow *pBaseWindow);
HRESULT
WINAPI
BaseWindowImpl_PrepareWindow
(
BaseWindow
*
This
);
HRESULT
WINAPI
BaseWindowImpl_PrepareWindow
(
BaseWindow
*
This
);
HRESULT
WINAPI
BaseWindowImpl_DoneWithWindow
(
BaseWindow
*
This
);
HRESULT
WINAPI
BaseWindowImpl_DoneWithWindow
(
BaseWindow
*
This
);
RECT
WINAPI
BaseWindowImpl_GetDefaultRect
(
BaseWindow
*
This
);
LRESULT
WINAPI
BaseWindowImpl_OnReceiveMessage
(
BaseWindow
*
This
,
HWND
hwnd
,
INT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
WINAPI
BaseWindowImpl_OnReceiveMessage
(
BaseWindow
*
This
,
HWND
hwnd
,
INT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
BOOL
WINAPI
BaseWindowImpl_OnSize
(
BaseWindow
*
This
,
LONG
Height
,
LONG
Width
);
BOOL
WINAPI
BaseWindowImpl_OnSize
(
BaseWindow
*
This
,
LONG
Height
,
LONG
Width
);
#ifdef __IVideoWindow_FWD_DEFINED__
typedef
struct
tagBaseControlWindow
{
BaseWindow
baseWindow
;
IVideoWindow
IVideoWindow_iface
;
BOOL
AutoShow
;
HWND
hwndDrain
;
HWND
hwndOwner
;
BaseFilter
*
pFilter
;
CRITICAL_SECTION
*
pInterfaceLock
;
BasePin
*
pPin
;
}
BaseControlWindow
;
HRESULT
WINAPI
BaseControlWindow_Init
(
BaseControlWindow
*
pControlWindow
,
const
IVideoWindowVtbl
*
lpVtbl
,
BaseFilter
*
owner
,
CRITICAL_SECTION
*
lock
,
BasePin
*
pPin
,
const
BaseWindowFuncTable
*
pFuncsTable
);
BOOL
WINAPI
BaseControlWindowImpl_PossiblyEatMessage
(
BaseWindow
*
This
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
HRESULT
WINAPI
BaseControlWindowImpl_GetTypeInfoCount
(
IVideoWindow
*
iface
,
UINT
*
pctinfo
);
HRESULT
WINAPI
BaseControlWindowImpl_GetTypeInfo
(
IVideoWindow
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
);
HRESULT
WINAPI
BaseControlWindowImpl_GetIDsOfNames
(
IVideoWindow
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
);
HRESULT
WINAPI
BaseControlWindowImpl_Invoke
(
IVideoWindow
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExepInfo
,
UINT
*
puArgErr
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Caption
(
IVideoWindow
*
iface
,
BSTR
strCaption
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Caption
(
IVideoWindow
*
iface
,
BSTR
*
strCaption
);
HRESULT
WINAPI
BaseControlWindowImpl_put_WindowStyle
(
IVideoWindow
*
iface
,
LONG
WindowStyle
);
HRESULT
WINAPI
BaseControlWindowImpl_get_WindowStyle
(
IVideoWindow
*
iface
,
LONG
*
WindowStyle
);
HRESULT
WINAPI
BaseControlWindowImpl_put_WindowStyleEx
(
IVideoWindow
*
iface
,
LONG
WindowStyleEx
);
HRESULT
WINAPI
BaseControlWindowImpl_get_WindowStyleEx
(
IVideoWindow
*
iface
,
LONG
*
WindowStyleEx
);
HRESULT
WINAPI
BaseControlWindowImpl_put_AutoShow
(
IVideoWindow
*
iface
,
LONG
AutoShow
);
HRESULT
WINAPI
BaseControlWindowImpl_get_AutoShow
(
IVideoWindow
*
iface
,
LONG
*
AutoShow
);
HRESULT
WINAPI
BaseControlWindowImpl_put_WindowState
(
IVideoWindow
*
iface
,
LONG
WindowState
);
HRESULT
WINAPI
BaseControlWindowImpl_get_WindowState
(
IVideoWindow
*
iface
,
LONG
*
WindowState
);
HRESULT
WINAPI
BaseControlWindowImpl_put_BackgroundPalette
(
IVideoWindow
*
iface
,
LONG
BackgroundPalette
);
HRESULT
WINAPI
BaseControlWindowImpl_get_BackgroundPalette
(
IVideoWindow
*
iface
,
LONG
*
pBackgroundPalette
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Visible
(
IVideoWindow
*
iface
,
LONG
Visible
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Visible
(
IVideoWindow
*
iface
,
LONG
*
pVisible
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Left
(
IVideoWindow
*
iface
,
LONG
Left
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Left
(
IVideoWindow
*
iface
,
LONG
*
pLeft
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Width
(
IVideoWindow
*
iface
,
LONG
Width
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Width
(
IVideoWindow
*
iface
,
LONG
*
pWidth
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Top
(
IVideoWindow
*
iface
,
LONG
Top
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Top
(
IVideoWindow
*
iface
,
LONG
*
pTop
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Height
(
IVideoWindow
*
iface
,
LONG
Height
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Height
(
IVideoWindow
*
iface
,
LONG
*
pHeight
);
HRESULT
WINAPI
BaseControlWindowImpl_put_Owner
(
IVideoWindow
*
iface
,
OAHWND
Owner
);
HRESULT
WINAPI
BaseControlWindowImpl_get_Owner
(
IVideoWindow
*
iface
,
OAHWND
*
Owner
);
HRESULT
WINAPI
BaseControlWindowImpl_put_MessageDrain
(
IVideoWindow
*
iface
,
OAHWND
Drain
);
HRESULT
WINAPI
BaseControlWindowImpl_get_MessageDrain
(
IVideoWindow
*
iface
,
OAHWND
*
Drain
);
HRESULT
WINAPI
BaseControlWindowImpl_get_BorderColor
(
IVideoWindow
*
iface
,
LONG
*
Color
);
HRESULT
WINAPI
BaseControlWindowImpl_put_BorderColor
(
IVideoWindow
*
iface
,
LONG
Color
);
HRESULT
WINAPI
BaseControlWindowImpl_get_FullScreenMode
(
IVideoWindow
*
iface
,
LONG
*
FullScreenMode
);
HRESULT
WINAPI
BaseControlWindowImpl_put_FullScreenMode
(
IVideoWindow
*
iface
,
LONG
FullScreenMode
);
HRESULT
WINAPI
BaseControlWindowImpl_SetWindowForeground
(
IVideoWindow
*
iface
,
LONG
Focus
);
HRESULT
WINAPI
BaseControlWindowImpl_SetWindowPosition
(
IVideoWindow
*
iface
,
LONG
Left
,
LONG
Top
,
LONG
Width
,
LONG
Height
);
HRESULT
WINAPI
BaseControlWindowImpl_GetWindowPosition
(
IVideoWindow
*
iface
,
LONG
*
pLeft
,
LONG
*
pTop
,
LONG
*
pWidth
,
LONG
*
pHeight
);
HRESULT
WINAPI
BaseControlWindowImpl_NotifyOwnerMessage
(
IVideoWindow
*
iface
,
OAHWND
hwnd
,
LONG
uMsg
,
LONG_PTR
wParam
,
LONG_PTR
lParam
);
HRESULT
WINAPI
BaseControlWindowImpl_GetMinIdealImageSize
(
IVideoWindow
*
iface
,
LONG
*
pWidth
,
LONG
*
pHeight
);
HRESULT
WINAPI
BaseControlWindowImpl_GetMaxIdealImageSize
(
IVideoWindow
*
iface
,
LONG
*
pWidth
,
LONG
*
pHeight
);
HRESULT
WINAPI
BaseControlWindowImpl_GetRestorePosition
(
IVideoWindow
*
iface
,
LONG
*
pLeft
,
LONG
*
pTop
,
LONG
*
pWidth
,
LONG
*
pHeight
);
HRESULT
WINAPI
BaseControlWindowImpl_HideCursor
(
IVideoWindow
*
iface
,
LONG
HideCursor
);
HRESULT
WINAPI
BaseControlWindowImpl_IsCursorHidden
(
IVideoWindow
*
iface
,
LONG
*
CursorHidden
);
#endif
/* Dll Functions */
/* Dll Functions */
BOOL
WINAPI
STRMBASE_DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
);
BOOL
WINAPI
STRMBASE_DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
);
HRESULT
WINAPI
STRMBASE_DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
STRMBASE_DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
);
...
...
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