I want a (slider)control to not be skinned |
Post Reply |
Author | |
Bart
Newbie Joined: 17 July 2006 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 08 March 2007 at 8:49am |
Hi All,
I already tried XTPSkinManager()->Remove(hwnd), which works, except that on exit MFC Asserts during DestroyWindow() that there's something wrong with the parmanentmap (link between hWnd and CWnd objects). Other then the assert, things work fine.
I've tried both calling XTPSkinManager()->Remove(hwnd) before and after baseclass::OnCreate().
The control concerned is a CSliderCtrl derived that does custom painting for all elements (except background, but it works fine with the skin).
Thanks in advance!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
I tried it in our sample created new class, added
int CMySlider::OnCreate(LPCREATESTRUCT lpCreateStruct)
{ if (CSliderCtrl::OnCreate(lpCreateStruct) == -1) return -1; XTPSkinManager()->Remove(m_hWnd); return 0; } and create:
ms.Create(WS_CHILD|WS_VISIBLE, CRect(0, 0, 400, 30), this, 0);
works good
Can you try to reproduce problem and attach project?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Bart
Newbie Joined: 17 July 2006 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Hi, thank you for the sample, that works as advertised
Was missing the if clause , and was using GetSafeHwnd() to pass to Remove(). Maybe that the control is created through dlgtemplate and attached using ddx has something to do with it.
Anyways, thanks for the swift and helpfull reply! |
|
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
|
|
|
Simon HB9DRV
|
|
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 |