How to create your own GDI device?

Is it possible to create a custom GDI device in user mode? The idea is to create a device context (HDC) that we can pass to an opaque component, so that when the component calls GDI functions like TextOut, we can get the actual text string.

+3
source share
1 answer

I did not use GDI much, but I heard that [metafiles] ( http://msdn.microsoft.com/en-us/library/dd145051(VS.85).aspx) writes the drawing and can be played back. You could get a text string from it.

, GDI CreateEnhMetaFile(), . GDI. EnumEnhMetaFile(), . ENHMETARECORD. ENHMETARECORD [EMR] (http://msdn.microsoft.com/en-us/library/dd162512(VS.85).aspx). iType, .

+4

Source: https://habr.com/ru/post/1706650/


All Articles