CMFCRibbonPanel::CopyFrom(CMFCRibbonPanel& src) purpose

Discussion in 'MFC' started by dinosaur_052000, Jun 24, 2010.

  1. dinosaur_052000

    dinosaur_052000 New Member

    Joined:
    Jun 24, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Can anyone tell me what is the purpose of using this function??

    CMFCRibbonPanel::CopyFrom(CMFCRibbonPanel& src)

    I use:

    m_pPanel =

    DYNAMIC_DOWNCAST(CMFCRibbonMainPanel, pPanel->GetRuntimeClass()->CreateObject());

    m_pPanel -> CopyFrom (*pPanel);

    For the code above, it has cause memory leak after i close the application even though I have delete m_pPanel. May I know how to solve it?

    Thanks!
     

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