Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forumdisplay.php?f=53)
-   -   CMFCRibbonPanel::CopyFrom(CMFCRibbonPanel& src) purpose (http://www.go4expert.com/showthread.php?t=22516)

dinosaur_052000 24Jun2010 15:10

CMFCRibbonPanel::CopyFrom(CMFCRibbonPanel& src) purpose
 
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!


All times are GMT +5.5. The time now is 11:33.