Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Disabled static text color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disabled static text color

 Post Reply Post Reply
Author
Message
bsil View Drop Down
Groupie
Groupie


Joined: 08 March 2010
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote bsil Quote  Post ReplyReply Direct Link To This Post Topic: Disabled static text color
    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

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2010 at 7:39am
Hi,

Did you try change GrayText property from Sysmetrics ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.