CXTPSkinManagerLegacyApiHook::OnHookGetSysColor() |
Post Reply |
Author | |
MaxG
Newbie Joined: 10 February 2021 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 10 February 2021 at 4:03am |
Hello!
I believe there's a bug in Toolkit for MFC v19.3.0 in CXTPSkinManagerLegacyApiHook::OnHookGetSysColor(): original: CXTPSkinManagerMetrics* pMetrics = XTPSkinManager()->GetMetrics(); if (NULL != pMetrics && pSkinManager->IsEnabled()) { crColor = pMetrics->GetColor(nIndex); bDefaultProcessing = (COLORREF_NULL != crColor); } expected: CXTPSkinManagerMetrics* pMetrics = XTPSkinManager()->GetMetrics(); if (NULL != pMetrics && pSkinManager->IsEnabled()) { crColor = pMetrics->GetColor(nIndex); bDefaultProcessing = (COLORREF_NULL == crColor); } So there should be == operator when comparing retrieved color to COLORREF_NULL. Otherwise, themed colors are replaced with the system colors. Thanks!
|
|
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 |