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

CXTPToolBar Flicker

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolBar Flicker
    Posted: 04 July 2007 at 2:56pm
Whenever you add an external control(s) to a toolbar such as in the ActionsSamples and controls such as CComboBoxEx using the CXTPCustonControl, all the controls flicker when you size the main window.  This can be seen in the ActionsSample and Common Controls example.
 
Is there anything one can do to elimate the flicker?
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: 05 July 2007 at 1:18am
Hello,
try to create CComboBoxEx  with WS_CLIPCHILDRED|WS_CLIPSIBLINGS style.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2007 at 11:21am
Oleg
 
Thanks, that works for the CComboBoxEx!
 
I have one toolbar created in the same manner as the ActionsSample (CDialogActions) that contains 32 CXTPButtons arranged in 4 rows of 8 buttons within the CDialog.  All of these buttons flicker when the frame is resized.
 
In our production program, this control is created using a standard Microsoft CDialogBar control where the 32 buttons are contained within the CDialogBar itself.  There is no flicker in this configuration.
 
Any idea what is causing the flicker?  You can also see this flicker in the ActionsSample (CDialogActions), although not as bad.
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2007 at 2:46pm
Oleg
 
I found the solution.  The 32 CXTPButtons are positioned/sized when the frame is sized with some special resize code.  All we had to do is place
ModifyStyle(0,WS_CLIPCHILDREN) in the CDialog OnInitDialog().
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.063 seconds.