3 May 2004 18:56
WM_PAINT Failes
Hello, I am trying to load a bmp in my app which uses WM_PAINT -and it failes. Since i am a newbee to graphics maybe i am missing something in the app. How do i invoke WM_PAINT ?(i think thats my problem). What is the full procedure to loading a bmp using WTL? Thanks ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/saFolB/TM ---------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> To unsubscribe from this group, send an email to:(Continue reading)
However, I'm having problems with a CPropertySheet set to operate as a
Wizard.
I have a dialog application that is implemented using a CPropertySheet set
to be a wizard. This works well so far, but I'd like to add a bitmap
header to the top. From what I've discovered this should be performed
using the SetHeader() method.
By calling SetHeader() I get the divider at the top, but above the
divider (where the bitmap should be) is grey!
The code I have is:
CPropertySheet sheet( _T("My Test Wizard") );
// (define the individual sheets here: fl, cl
// these inherit from CPropertyPageImpl )
sheet.AddPage( fl );
sheet.AddPage( cl );
sheet.SetWizardMode();
sheet.EnableHelp();
HBITMAP hbmp = AtlLoadBitmapImage( IDB_HEADER_FILE,
LR_SHARED | LR_DEFAULTCOLOR );
RSS Feed