Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlEdit painting problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlEdit painting problem

 Post Reply Post Reply
Author
Message
Tsenoh View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tsenoh Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlEdit painting problem
    Posted: 21 August 2007 at 12:48pm
I inserted an edit control in the quick access bar. When I switch between applications, and then back to my application, the edit control is sometimes not properly painted. Here are the screenshots:

Painted:


Not Painted:


Blue color that appears instead of the edit control is the color of dialog background (BTN_FACE).

Does anyone have any ideas what causes this problem?

Thanks!
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: 21 August 2007 at 2:12pm
Hi,
 
What OS is it ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Tsenoh View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tsenoh Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2007 at 8:58am
I've tested it on XP Home Edition and XP Professional x64 Edition (32-bit mode).  (Both with the newest updates)
Back to Top
Tsenoh View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tsenoh Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2007 at 10:24am
Addition:
In the meantime I tested it on Vista too, but the result is the same.
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: 22 August 2007 at 12:44pm
Hi,
 
Can you open our RibbonSample, move some edit or Combo to quick Access and check if you see it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Tsenoh View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tsenoh Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2007 at 6:35am
It seems to be working fine in the RibbonSample.
I've debugged my application into CXTPCommandBarAnimation::OnPaint, and found that when the memory DC is copied to the paint DC, everything except the edit box is shown on the screen. I don't know how is that possible.
 
Any idea where I should look?
 
Thanks!
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.234 seconds.