how to create a sub DC in a DC?
-
Hi, I got a DC and need to take a rectangular part of it and pass it to a function that fills it with what it deserves. But I need clipping. I would imagine creating a sub-DC of the DC or locking all but the concerned part of the DC and then pass it over. Could you tell me how (if it's possible at all). GDI. Pure WinAPI prefered but will do with MFC sample as well if you post it. Even some hint would be fine. Thanks
-
Hi, I got a DC and need to take a rectangular part of it and pass it to a function that fills it with what it deserves. But I need clipping. I would imagine creating a sub-DC of the DC or locking all but the concerned part of the DC and then pass it over. Could you tell me how (if it's possible at all). GDI. Pure WinAPI prefered but will do with MFC sample as well if you post it. Even some hint would be fine. Thanks
Perhaps
CDC::SetBoundsRect()
may help? /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com