Example #1
0
 private static extern OBJ GetObjectType(HGDIOBJ hObject);
 private static extern OBJ GetObjectType(HGDIOBJ hObject);
Example #3
0
 private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
Example #4
0
        public HGDIOBJ SelectObject(HGDIOBJ obj)
        {
            HGDIOBJ oldObject = SelectObject(this, obj);
            switch (oldObject.ObjectType)
            {
                case OBJ.BRUSH:
                    return new HBRUSH(oldObject.DangerousGetHandle());

                default:
                    throw new NotImplementedException();
            }
        }
Example #5
0
 private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);