Print Page | Close Window

Disabled static text color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=17121
Printed Date: 15 November 2024 at 3:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabled static text color
Posted By: bsil
Subject: Disabled static text color
Date Posted: 17 August 2010 at 7:43am
Hi
I want to set the text color for disabled static text,
Please guide which property need to be modified


-------------
Product: Xtreme SkinFramework
     Platform: Windows XP (32bit) - SP 2
     Language: Visual Basic 6.0, Visual C++ 6.0, VB.NET 2.0




Replies:
Posted By: jimmy
Date Posted: 18 August 2010 at 3:40am
Hello,

in the windows static control is a bug.
if you disable the static text, WM_PAINT is not call. the static control would paint it directly.
my solution for this, is to add in the WM_ENABLEWINDOW message

OnEnableWindow(BOOL bEnable)
{
  if (bEnable == FALSE)
    {
        LockWindowsUpdate(GetSafeHwnd());
        __super::OnEnableWindows(bEnable);
        UnlockWindowsUpdate(GetSafeHwnd());
        Invalidate(TRUE);
    }
}

  Jimmy


Posted By: Oleg
Date Posted: 18 August 2010 at 7:39am
Hi,

Did you try change GrayText property from Sysmetrics ?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net