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
40ac96d7
Commit
40ac96d7
authored
Jun 14, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Implemented AtlCreateTargetDC.
parent
65023151
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
atl.spec
dlls/atl/atl.spec
+1
-1
atl_main.c
dlls/atl/atl_main.c
+26
-0
No files found.
dlls/atl/atl.spec
View file @
40ac96d7
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
23 stdcall AtlModuleUpdateRegistryFromResourceD(ptr wstr long ptr ptr)
23 stdcall AtlModuleUpdateRegistryFromResourceD(ptr wstr long ptr ptr)
24 stub AtlWaitWithMessageLoop
24 stub AtlWaitWithMessageLoop
25 stub AtlSetErrorInfo
25 stub AtlSetErrorInfo
26 st
ub AtlCreateTargetDC
26 st
dcall AtlCreateTargetDC(long ptr)
27 stdcall AtlHiMetricToPixel(ptr ptr)
27 stdcall AtlHiMetricToPixel(ptr ptr)
28 stdcall AtlPixelToHiMetric(ptr ptr)
28 stdcall AtlPixelToHiMetric(ptr ptr)
29 stub AtlDevModeW2A
29 stub AtlDevModeW2A
...
...
dlls/atl/atl_main.c
View file @
40ac96d7
...
@@ -545,6 +545,32 @@ void WINAPI AtlPixelToHiMetric(const SIZEL* lpPix, SIZEL* lpHiMetric)
...
@@ -545,6 +545,32 @@ void WINAPI AtlPixelToHiMetric(const SIZEL* lpPix, SIZEL* lpHiMetric)
}
}
/***********************************************************************
/***********************************************************************
* AtlCreateTargetDC [ATL.@]
*/
HDC
WINAPI
AtlCreateTargetDC
(
HDC
hdc
,
DVTARGETDEVICE
*
dv
)
{
static
const
WCHAR
displayW
[]
=
{
'd'
,
'i'
,
's'
,
'p'
,
'l'
,
'a'
,
'y'
,
0
};
const
WCHAR
*
driver
=
NULL
,
*
device
=
NULL
,
*
port
=
NULL
;
DEVMODEW
*
devmode
=
NULL
;
TRACE
(
"(%p, %p)
\n
"
,
hdc
,
dv
);
if
(
dv
)
{
if
(
dv
->
tdDriverNameOffset
)
driver
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdDriverNameOffset
);
if
(
dv
->
tdDeviceNameOffset
)
device
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdDeviceNameOffset
);
if
(
dv
->
tdPortNameOffset
)
port
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdPortNameOffset
);
if
(
dv
->
tdExtDevmodeOffset
)
devmode
=
(
DEVMODEW
*
)((
char
*
)
dv
+
dv
->
tdExtDevmodeOffset
);
}
else
{
if
(
hdc
)
return
hdc
;
driver
=
displayW
;
}
return
CreateDCW
(
driver
,
device
,
port
,
devmode
);
}
/***********************************************************************
* AtlModuleAddCreateWndData [ATL.@]
* AtlModuleAddCreateWndData [ATL.@]
*/
*/
void
WINAPI
AtlModuleAddCreateWndData
(
_ATL_MODULEW
*
pM
,
_AtlCreateWndData
*
pData
,
void
*
pvObject
)
void
WINAPI
AtlModuleAddCreateWndData
(
_ATL_MODULEW
*
pM
,
_AtlCreateWndData
*
pData
,
void
*
pvObject
)
...
...
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