How to add an icon to the property sheet header in MFC?

Discussion in 'MFC' started by sivavuyyuru, Jul 15, 2014.

  1. sivavuyyuru

    sivavuyyuru New Member

    Joined:
    Jul 15, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    At present I am designing a property sheet of (PSH_WIZARD97 style),as we all know that a property sheet of that style consists of header.Here exactly my problem arises.I tried placing an bitmap on to the property sheet header and it worked :pleased: .Now I have to place an icon at right top corner of the property sheet header where I have already loaded bitmap .Now ,this icon should be placed on the bitmap and background of that icon should be transparent so that it looks good.

    And these are the flags i had set :

    Code:
    //In property sheet constructor
    m_psh.dwFlags |= PSH_WIZARD97|PSH_STRETCHWATERMARK|PSH_HEADER;
    
    //In propertypage
    
    m_psp.dwFlags |= PSP_DEFAULT;
    
    
    I got struct how to place that icon on the bitmap which on the property sheet header.

    Can anyone please let me know how can i achieve this.


    Thanks in advance.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice