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
2d658e65
Commit
2d658e65
authored
May 25, 2010
by
André Hentschel
Committed by
Alexandre Julliard
May 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Reuse code of AtlModuleRegisterWndClassInfoW for AtlModuleRegisterWndClassInfoA.
parent
03b335b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
atl.spec
dlls/atl/atl.spec
+1
-1
atl_main.c
dlls/atl/atl_main.c
+39
-0
atlwin.h
dlls/atl/atlwin.h
+1
-1
No files found.
dlls/atl/atl.spec
View file @
2d658e65
...
...
@@ -37,7 +37,7 @@
43 stdcall AtlModuleAddCreateWndData(ptr ptr ptr)
44 stdcall AtlModuleExtractCreateWndData(ptr)
45 stdcall AtlModuleRegisterWndClassInfoW(ptr ptr ptr)
46 st
ub AtlModuleRegisterWndClassInfoA
46 st
dcall AtlModuleRegisterWndClassInfoA(ptr ptr ptr)
47 stdcall AtlAxGetControl(long ptr)
48 stdcall AtlAxGetHost(long ptr)
49 stub AtlRegisterClassCategoriesHelper
...
...
dlls/atl/atl_main.c
View file @
2d658e65
...
...
@@ -439,6 +439,45 @@ HRESULT WINAPI AtlModuleUnregisterServer(_ATL_MODULEW *pm, const CLSID *clsid)
}
/***********************************************************************
* AtlModuleRegisterWndClassInfoA [ATL.@]
*
* See AtlModuleRegisterWndClassInfoW.
*/
ATOM
WINAPI
AtlModuleRegisterWndClassInfoA
(
_ATL_MODULEA
*
pm
,
_ATL_WNDCLASSINFOA
*
wci
,
WNDPROC
*
pProc
)
{
ATOM
atom
;
FIXME
(
"%p %p %p semi-stub
\n
"
,
pm
,
wci
,
pProc
);
atom
=
wci
->
m_atom
;
if
(
!
atom
)
{
WNDCLASSEXA
wc
;
TRACE
(
"wci->m_wc.lpszClassName = %s
\n
"
,
wci
->
m_wc
.
lpszClassName
);
if
(
!
wci
->
m_wc
.
lpszClassName
)
{
static
const
CHAR
szFormat
[]
=
"ATL%08x"
;
sprintf
(
wci
->
m_szAutoName
,
szFormat
,
(
UINT
)(
UINT_PTR
)
wci
);
TRACE
(
"auto-generated class name %s
\n
"
,
wci
->
m_szAutoName
);
wci
->
m_wc
.
lpszClassName
=
wci
->
m_szAutoName
;
}
atom
=
GetClassInfoExA
(
pm
->
m_hInst
,
wci
->
m_wc
.
lpszClassName
,
&
wc
);
if
(
!
atom
)
atom
=
RegisterClassExA
(
&
wci
->
m_wc
);
wci
->
pWndProc
=
wci
->
m_wc
.
lpfnWndProc
;
wci
->
m_atom
=
atom
;
}
*
pProc
=
wci
->
pWndProc
;
TRACE
(
"returning 0x%04x
\n
"
,
atom
);
return
atom
;
}
/***********************************************************************
* AtlModuleRegisterWndClassInfoW [ATL.@]
*
* PARAMS
...
...
dlls/atl/atlwin.h
View file @
2d658e65
...
...
@@ -43,7 +43,7 @@ typedef struct _ATL_WNDCLASSINFOW_TAG
WCHAR
m_szAutoName
[
14
];
}
_ATL_WNDCLASSINFOW
;
ATOM
WINAPI
AtlModuleRegisterWndClassInfoA
(
_ATL_MODULE
W
*
pm
,
_ATL_WNDCLASSINFOA
*
wci
,
WNDPROC
*
pProc
);
ATOM
WINAPI
AtlModuleRegisterWndClassInfoA
(
_ATL_MODULE
A
*
pm
,
_ATL_WNDCLASSINFOA
*
wci
,
WNDPROC
*
pProc
);
ATOM
WINAPI
AtlModuleRegisterWndClassInfoW
(
_ATL_MODULEW
*
pm
,
_ATL_WNDCLASSINFOW
*
wci
,
WNDPROC
*
pProc
);
HDC
WINAPI
AtlCreateTargetDC
(
HDC
hdc
,
DVTARGETDEVICE
*
ptd
);
...
...
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