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
2d9fc5d7
Commit
2d9fc5d7
authored
Oct 30, 2006
by
Andrey Turkin
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Implement AtlAxWinInit and AtlAxWin window procedure.
parent
abc3769a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
15 deletions
+100
-15
Makefile.in
dlls/atl/Makefile.in
+1
-0
atl_ax.c
dlls/atl/atl_ax.c
+99
-0
atl_main.c
dlls/atl/atl_main.c
+0
-15
No files found.
dlls/atl/Makefile.in
View file @
2d9fc5d7
...
...
@@ -8,6 +8,7 @@ IMPORTS = ole32 shlwapi user32 gdi32 advapi32 kernel32
EXTRALIBS
=
-luuid
C_SRCS
=
\
atl_ax.c
\
atl_main.c
\
registrar.c
...
...
dlls/atl/atl_ax.c
0 → 100644
View file @
2d9fc5d7
/*
* Active Template Library ActiveX functions (atl.dll)
*
* Copyright 2006 Andrey Turkin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <stdio.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winerror.h"
#include "winuser.h"
#include "wine/debug.h"
#include "objbase.h"
#include "objidl.h"
#include "ole2.h"
#include "exdisp.h"
#include "atlbase.h"
#include "atliface.h"
#include "atlwin.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
atl
);
/**********************************************************************
* AtlAxWin class window procedure
*/
LRESULT
static
CALLBACK
AtlAxWin_wndproc
(
HWND
hWnd
,
UINT
wMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
wMsg
==
WM_CREATE
)
{
DWORD
len
=
GetWindowTextLengthW
(
hWnd
)
+
1
;
WCHAR
*
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
if
(
!
ptr
)
return
1
;
GetWindowTextW
(
hWnd
,
ptr
,
len
);
AtlAxCreateControl
(
ptr
,
hWnd
,
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
return
0
;
}
return
DefWindowProcW
(
hWnd
,
wMsg
,
wParam
,
lParam
);
}
/***********************************************************************
* AtlAxWinInit [ATL.@]
* Initializes the control-hosting code: registering the AtlAxWin,
* AtlAxWin7 and AtlAxWinLic7 window classes and some messages.
*
* RETURNS
* TRUE or FALSE
*/
BOOL
WINAPI
AtlAxWinInit
(
void
)
{
WNDCLASSEXW
wcex
;
const
WCHAR
AtlAxWin
[]
=
{
'A'
,
't'
,
'l'
,
'A'
,
'x'
,
'W'
,
'i'
,
'n'
,
0
};
FIXME
(
"semi-stub
\n
"
);
if
(
FAILED
(
OleInitialize
(
NULL
)
)
)
return
FALSE
;
wcex
.
cbSize
=
sizeof
(
wcex
);
wcex
.
style
=
0
;
wcex
.
cbClsExtra
=
0
;
wcex
.
cbWndExtra
=
0
;
wcex
.
hInstance
=
GetModuleHandleW
(
NULL
);
wcex
.
hIcon
=
NULL
;
wcex
.
hCursor
=
NULL
;
wcex
.
hbrBackground
=
NULL
;
wcex
.
lpszMenuName
=
NULL
;
wcex
.
hIconSm
=
0
;
wcex
.
lpfnWndProc
=
AtlAxWin_wndproc
;
wcex
.
lpszClassName
=
AtlAxWin
;
if
(
!
RegisterClassExW
(
&
wcex
)
)
return
FALSE
;
return
TRUE
;
}
dlls/atl/atl_main.c
View file @
2d9fc5d7
...
...
@@ -180,21 +180,6 @@ HRESULT WINAPI AtlModuleUnregisterServerEx(_ATL_MODULEA* pM, BOOL bUnRegTypeLib,
return
S_OK
;
}
/***********************************************************************
* AtlAxWinInit [ATL.@]
* Initializes the control-hosting code: registering the AtlAxWin7 and AtlAxWinLic7 window
* classes and some messages.
*
* RETURNS
* TRUE or FALSE
*/
BOOL
WINAPI
AtlAxWinInit
(
void
)
{
FIXME
(
"Try use native atl.dll if possible
\n
"
);
return
FALSE
;
}
IUnknown
*
WINAPI
AtlComPtrAssign
(
IUnknown
**
pp
,
IUnknown
*
p
)
{
...
...
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