Felt the need to retrieve current brush or pen or palette selected into a DC? Sometime back a friend of mine asked me this question, as an answer I gave him a better solution, but the question was a valid one! So are there any windows api’s that helps us in the regard? Well the […]
Continue reading…
Posts tagged with 'OBJ_BITMAP'
Type of GDI object!
To retrieve type of a HGDIOBJ object call GetObjectType. E.g. GetObjectType( hGdiObj ); Possible return values taken from MSDN… [sourcecode language=’cpp’]OBJ_BITMAP OBJ_BRUSH OBJ_COLORSPACE OBJ_DC OBJ_ENHMETADC OBJ_ENHMETAFILE OBJ_EXTPEN OBJ_FONT OBJ_MEMDC OBJ_METAFILE OBJ_METADC OBJ_PAL OBJ_PEN OBJ_REGION[/sourcecode]
Continue reading…