CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 8th, 2005, 03:10 PM
    krompo krompo is offline
    Member
     
    Join Date: Jul 2000
    Location: Slovakia
    Posts: 75
    krompo is an unknown quantity at this point (<10)
    Unhappy Bug in toolbar under WinXP?

    Hi everyone!

    Have you ever experienced this problem? Is it a known bug or am I doing something wrong?

    This problem only occurs on WinXP when using xp visual styles (using proper manifest file) and only if using non-docking (stable) toolbar - the problem is the same when compiling with .NET 2002 (original .net) as well as .NET 2003.

    I create a regular MFC SDI application with MFC style toolbar and a splitter window embedded in Main Frame window - all this is performed by well known Visual Studio framework wizard. After the framework generated the project I removed the 3 lines in MainFrm.cpp that make the toolbar non-docking:
    //m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
    //EnableDocking(CBRS_ALIGN_ANY);
    //DockControlBar(&m_wndToolBar);

    After starting the app here is how it looks like:



    As you can see, the begining of the toolbar (top left) is not repainted correctly and displays window that is beneath it (in this case it is FAR commander, therefore the blue color).

    Why is this happening? Is there a way how to overcome it? The point is that I want to use the winXP styles (so I have the nice new buttons when running under XP) and at the same time to make the toolbar non-movable (if I make the toolbar dockable, everything is OK and this problem doesn't happen).

    Thanks for any advice.

    krompo
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:15 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009