Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 997965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:07:07+00:00 2026-05-16T07:07:07+00:00

Use naming from http://msdn.microsoft.com/en-us/library/cc309030.aspx When I docking CPaneDialog with another CDockablePane the Tabbed Pane

  • 0

Use naming from
http://msdn.microsoft.com/en-us/library/cc309030.aspx

When I docking CPaneDialog with another CDockablePane the Tabbed Pane position
is always at bottom of dock area, How to set Tabbed Pane position to top of
dock area like normal tabbed control?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:07:08+00:00Added an answer on May 16, 2026 at 7:07 am

    Ok, I have figured it out, so I will answer my own question 🙂

    When CDockablePane docking to each other, MFC will create CBaseTabbedPane to hold CDockablePanes. To change tab position which default is bottom (like in Visual Studio) to top (like in normal tab) you need to overrides this method in your CDockablePane-derived class

    void CDockablePane::OnAfterDock(CBasePane* /*pBar*/, LPCRECT /*lpRect*/, AFX_DOCK_METHOD /*dockMethod*/);
    

    with this codes :

    CBaseTabbedPane* tabbedPane = GetParentTabbedPane();
    if (!tabbedPane) return;
    
    CMFCBaseTabCtrl* tabCtrl = tabbedPane->GetUnderlyingWindow();
    if (!tabCtrl) return;
    
    tabCtrl->SetLocation(CMFCBaseTabCtrl::LOCATION_TOP);
    

    OR

    HWND hWndTab = NULL;
    CMFCBaseTabCtrl* parent = GetParentTabWnd(hWndTab);
    if (parent)
    {
        parent->SetLocation(CMFCBaseTabCtrl::LOCATION_TOP);
    }
    

    You need to overrides this method in all CDockablePane-derived classes to work properly, otherwise tab position will depend on the Pane that you dragging to dock the other pane.

    For example : PaneA has code to set tab position to top but PaneB doesn’t.

    If you dragging PaneA to dock with PaneB, tab position will be at top.

    If you dragging PaneB to dock with PaneA, tab position will be at bottom which is default.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this kind of code in some applications (from microsoft) [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( Microsoft.Naming,
Here http://source.android.com/source/code-style.html#follow-field-naming-conventions it is stated that : Field Names Non-public, non-static field names start
Do you use a naming convention for your XML namespaces? And if so, what
Most C++ naming conventions dictate the use of camelCaseIdentifiers : names that start with
What are the naming conventions that you use while coding?
In my naming convention, I use _name for private member variables. I noticed that
Exact Duplicate Table Naming Dilemma: Singular vs. Plural Names Is it better to use
use LWP::Simple; use Parallel::ForkManager; @links=( [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-windows.exe,SweetHome3D-2.1-windows.exe], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-macosx.dmg,SweetHome3D-2.1-macosx.dmg], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3DViewer-2.1.zip,SweetHome3DViewer-2.1.zip], ); # Max 30 processes for
I'm trying to use the method for naming a lua package after the filename
Do you know how to use the naming conventions in mysql database? I've downloaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.