How do you create a device context (DC) in a DLL?
I know that a DC requires a windows handle, however, if a dll has no window how does a DC get created?
I am creating a dll function that returns the width of a string of characters in pixels.
e.g. int GetTextWidth(char* strFontFaceName, int iFontSize, char* strText)
Any suggestions? Or is this possible?
Thanks!
I know that a DC requires a windows handle, however, if a dll has no window how does a DC get created?
I am creating a dll function that returns the width of a string of characters in pixels.
e.g. int GetTextWidth(char* strFontFaceName, int iFontSize, char* strText)
Any suggestions? Or is this possible?
Thanks!