winapi - How can I know the type of dc (Windows device context) with Windows API -


i got handle of dc (of type hdc ) under windows. can type of cd(memory dc, window dc ,printer etc.) windows apis?

this in general not possible, , not necessary either. device context meant abstract underlying implementation.

occasionally, however, helpful know, contents of device context displayed, adjust rendering, example. calling getdevicecaps nindex set technology retrieves information. doesn't allow discern between 4 device context types plus subtypes, though.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -