Resizing CDCs and CBitmaps
I have a CDC and a CBitmap that I am using as a back buffer for my MFC app. I want to be able to resize them if the user resizes the window. Is there a way to simply resize the CDC''s and the CBitmap''s dimensions, or do I have to destroy and create them again? I am having trouble figuring out exactly how to delete/release them, and I was unable to find any "resizing" functions in the MSDN. My other thought was to simply have a large CDC/CBitmap created right away, and simply use the portion of it that I need for the current window''s size. Does any one have any answers/ideas?
Thanks in advance,
Mike
Unless MFC has some resizing function (which you said it didn''t) then you''ll have to delete and then recreate the bitmap and then select it back into the DC. (You don''t have to touch the DC itself since they take the size of the bitmap)
The hackers must have gotten into the system through the hyperlink!!
Invader''s Realm
The hackers must have gotten into the system through the hyperlink!!
Invader''s Realm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement