Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - show up of context menu breaks window invalidation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

show up of context menu breaks window invalidation

 Post Reply Post Reply
Author
Message
Tianzhou View Drop Down
Newbie
Newbie


Joined: 17 September 2008
Location: China
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tianzhou Quote  Post ReplyReply Direct Link To This Post Topic: show up of context menu breaks window invalidation
    Posted: 25 September 2008 at 3:07pm
Hi everyone,
     I have a CXTPToolBar on my window. I first right-click on the CXTPToolBar to show the context menu. The weird thing happens then. When I resize the window bigger,there are some strips along the resizing path.The width of the strip is the same as the width of my scrollbar. It seems the OS can't handle the invalidation properly after once the context menu is shown on the CXTPToolBar.
       Additionally,I use an overlay window to cover the whole area of my actual window to hide drawing when resizing. The reason is to prevent flicking problem when redrawing everything on my actual window. I think
it might relates with the overlay, because the problem only happens when I apply the overlay when resizing.
       I suspect, is the inner implementation of CXTPToolBar would lock some resources when showing the context menu. And later when I call ::UpdateLayeredWindow API which would require that kind of resources then fail to get,thus cause the drawing problem.
       I have been stumpled by this problem for a week. I appreciate anyone can give some hint on it.

Many 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: 26 September 2008 at 2:53am
Hi,
 
Small sample to show problem will help a lot.
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.125 seconds.