![]() |
One TaskPanelPaintManager for several task panels |
Post Reply ![]() |
Author | |
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() Posted: 08 August 2008 at 5:45am |
Need to make copy :(
m_myTaskPanelA.SetCustomTheme(new CMyTaskPanelPaintManager);
m_myTaskPanelB.SetCustomTheme(new CMyTaskPanelPaintManager);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
debugx ![]() Groupie ![]() ![]() Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() |
Hello All,
I created a simple SDI application and added several task panels. Then I created my custom task panel paint manager class derived from CXTPTaskPanelPaintManager. Now I need to set this paint manager to all task panels. But it looks like impossible because once I use this method: m_myTaskPanelA.SetCustomTheme(m_taskPanelPaintManager); it releases memore inside. This is a bad decision because if I apply my custom paint manager to other task panel: m_myTaskPanelB.SetCustomTheme(m_taskPanelPaintManager); there will be exception because the second task panel will try to release the memory of the paint manager buit first task panel has aslready released it. Any ideas how can I resolve this trouble? I dont want make a copies of my paint manager. |
|
"Один законник с портфелем в рукаm
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |