Hi,
I created a proeprtysheet of wizard style using mfc, the problem is I should add a banner to the top of the
propertysheet. So,I added OnPaint() method to a class "CInstallerWizard" which is dervied from CPropertySheet ,
but this piece of code is unable to add the bitmap (banner ) to the top of the propertysheet.
void CInstallerWizard::OnPaint() { CPaintDC dc(this); // device context for painting CBitmap bmp_PropSheet,*pOldBmp; CDC memdc; CRect rect; //Load bitmap resource bmp_PropSheet.LoadBitmap(IDB_BITMAP_DRIVER_LOGO); //Create compatible memory dc memdc.CreateCompatibleDC(&dc); //Select bitmap into the DC pOldBmp = memdc.SelectObject(&bmp_PropSheet); //Copy (BitBlt)bitmap form memory dc to the screen dc GetClientRect(&rect); dc.BitBlt(10,rect.bottom - 22,88,16,&memdc,0,0,SRCCOPY); memdc.SelectObject(&bmp_PropSheet); //Should not call CPropertySheet::OnPaint() }
Again I tried doing like this,
Note:m_DriverInstallStatus object for the class derived from propertysheet.
m_DriverInstallStatus.m_psp.dwFlags |= PSP_USEICONID;
m_DriverInstallStatus.m_psp.pszIcon = MAKEINTRESOURCE(IDI_ICON_PRINTER);But this also could not get any change to the propertysheet.
Can anyone please let me know how can I achieve this.
Thanks in advance.
↧
How add a banner at the top of the propertysheet (wizard style) in mfc
↧