mfc >> Bitmap in the wizard property page dialog

by QW5kcmV3IEsu » Tue, 01 Feb 2005 02:17:37 GMT

Good day,

I want a bitmap image drawn on the opening page of the wizard. While this
appears a fairly easy task accomplished in the resource editor, due to some
reason there's no image being displayed when the wizard is launched from
within the executable.
I remember reading somewhere that, if a bitmap is used in the
PropertyPage-based wizards, OnPaint() or, possibly, another function must be
employed to redraw the respective screen area. So, can it be the reason why
my bitmap never shows up at all ?

Thanks for ideas,
Andy



mfc >> Bitmap in the wizard property page dialog

by ajay » Tue, 01 Feb 2005 15:36:33 GMT



Let me know the details of bitmap. I don't think OnPaint is cause of
your problem. What is width and height of your bitmap in pixels. Please
make sure that width and height of bitmap ( Watermark which appears on
Welcome page and Finish Page of wizard ) is same as width and height of
wizard. Place watermark to left of bitmap so It will appear to left of
wizard.



this
to some
from
must be
reason why




mfc >> Bitmap in the wizard property page dialog

by QW5kcmV3IEsu » Tue, 01 Feb 2005 22:45:06 GMT

Many thanks for your response, ajay. I see what you mean, and in fact
witnessed this sort of issues a few times. This time has been different.
Shame on me, have to confess that I forgot to include the ON_WM_PAINT()
macro in the message map. Understandably, my application was never notified
about the WM_PAINT message, thus not giving a chance for OnPaint() to kick in.
After this was fixed, all began working just fine.

Thanks again for your time and I'm sorry if my post caused any distraction !








Similar Threads

1. I can't get the header bitmap to show up in a wizard property shee

I have a couple of bitmaps for a wizard property sheet that I'm implementing, 
but I can't get them to show up. It's like the property sheet is just 
ignoring them. The bitmaps are both high colour bitmaps and, so, do not need 
a palette. (Visual Studio won't even generate a palette for either of them 
when I tell it to.) How do I get the property sheet to recognize my bitmaps? 
(And, is it even necessary to have a watermark bitmap if I'm only using a 
header bitmap? (My wizard does not have exterior pages.))

2. Property pages in the wizard mode does not display system menu

3. tabbed property pages on wizard based sheet.

I have a wizard based property sheet. There are 3 pages in it. On the
3rd page, I want to have different tabbed property pages. Is it
possible?

4. Any guidelines on bitmap size for a header of a property page

5. Requirements for header bitmap of property page

Hi,

Are there any guidelines for header bitmaps used by property pages?  I pass 
hbitmap to CProprtySheet that runs in a wizard mode.  The problem is that I 
can't get it to display properly - it seems to be clipped on one side.  I 
could probably get it right on my dev machine by trial-and-error but I'm 
afraid that this will not guarantee that the bitmap will be displayed 
properly on client machines.

Any pointers will be greatly appreciated.

Thanks,
Bogdan


6. How to create a property page from a property page

7. Adding Help to ATL dialogs or property pages

Hi, there.  The only documentation I found on adding help to ATL is the one
where your have to add some starter files copied from an MFC project.  Is
that really the only way?

Also, it seems like with ATL, you can only use WinHelp and not HTML Help.
Has anyone successfully incorporated the latter into their ATL project?  Not
that I prefer HTML Help.  I'm actually still weighing the two.  If you also
have opinions on which one I should use, please throw them in as well.

I would really appreciate all inputs.
Ever


8. Showing modal dialog from within property page