![]() |
Problem with CXTButton |
Post Reply
|
| Author | |
linfan
Newbie
Joined: 05 February 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem with CXTButtonPosted: 05 February 2007 at 11:10pm |
|
I have a CXTButton control on a dialog, and the dialog is embedded in another popup dialog as child control. When I use CXTButton::SetXButtonStyle to change the aspect of it in OnInitDialog, I got an assert when I close the program; everything went correctly when I delete this line. So confused
![]() XTP Version: 10.1.1 The assertion is: File: D:\Xtreme ToolkitPro 2006\Source\Controls\XTThemeManager.cpp Line: 317 My code: m_btnArrow.SetXButtonStyle(BS_XT_FLAT | BS_XT_TWOROWS); m_btnArrow.SetColorFace(::GetSysColor(COLOR_WINDOW)); m_btnArrow.SetBitmap(0, IDB_CHATBTN_ARROW); BTW, there isn't any other code that related with the button in the program. Any suggestion? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2007 at 10:10am |
|
Hello,
I think you forgot to delete this dialog if you create it dynamically.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
linfan
Newbie
Joined: 05 February 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2007 at 7:14pm |
|
Had try to delete the child dialog in OnDestroy of its parent, but the code doesn't execute, debugging now, thanks for the help.
|
|
![]() |
|
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 |