Is it possible to stretch a bitmap to the size of a CStatic?
-
Is it possible to stretch a bitmap to the size of a CStatic? I´m currently using a CStatic control with the SS_BITMAP style to display a bitmap but with this style the control automatically sizes itself to accommodate it. The bitmap I want to stretch was included in the project as a resource file. ------------------------------------------- Marcelo Guerra
-
Is it possible to stretch a bitmap to the size of a CStatic? I´m currently using a CStatic control with the SS_BITMAP style to display a bitmap but with this style the control automatically sizes itself to accommodate it. The bitmap I want to stretch was included in the project as a resource file. ------------------------------------------- Marcelo Guerra
(1) Create a CStatic frame NOT bitmap, but invisible. (2) Get Chris Maunder's CDIBSectionLite class to draw the bitmap. (3) Find the size of your CStatic, and using CDIBSectionLite::Stretch draw the stretched bitmap. HTH Jerry