Some APIs do not work with Metafile DC
Posted on 2001-07-12
Do you have any clue why the following functions do not work and gives assertion failure with decive context pointing to a metafile?
All the above functions are member of CDC.
The functions return value in logical units and not in device units. So it should have worked. Funnily SetWindowOrg works but not GetWindowOrg.
Is there any way to make those functions work with metafile dc without resorting to any other method of calculating those values? I tried changing the mapping mode to MM_ISOTROPIC and MM_ANISOTROPIC too. But does not work.
Or if there is no way to make those APIs work, is there any other good alternative to get those values, especially an alternative to GetWindowOrg for metafile dc?