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 5990219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:12:42+00:00 2026-05-22T23:12:42+00:00

How do i set another dialogbox visible inside the tab thats currently open in

  • 0

How do i set another dialogbox visible inside the tab thats currently open in the Tab Control object?

I’m creating the Tab Control in the Visual Studio 2008 resource editor (or how its called?), i created IDD_FORMVIEW dialogbox for the tab control.

I know how to initialize the tab texts, handle the currently selected tab with WM_NOTIFY message, etc, but what im missing is: how to send the handle of my other dialogbox to the tab control page to display the dialogbox there?

  • 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-22T23:12:43+00:00Added an answer on May 22, 2026 at 11:12 pm

    All the ‘tab pages’ which are dialogues should be set as children to the tab that is created. When a tab is changed you will get a notify message which you can handle in your DialogProc like this:

    case WM_NOTIFY: {
        switch( ( ( LPNMHDR ) lParam) -> code ) {
        case TCN_SELCHANGE: {
          if( TabCtrl_GetCurSel( ( ( LPNMHDR ) lParam) -> hwndFrom ) == 0 ) {
            ShowWindow( hwndPathSettings, SW_SHOW );
            ShowWindow( hwndStartSettings, SW_HIDE );
          } else {
            ShowWindow( hwndPathSettings, SW_HIDE );
            ShowWindow( hwndStartSettings, SW_SHOW );
          }
    
          break;
        }
    

    As you can see when the user changes the tab, the code shows the new tab child and hides the old ones. hwndPathSettings and hwndStartSettings in this case are the window handles to the child dialogues.

    To put it in context, in your WM_INITDIALOG you would probably have some code similar to this to set up the tab:

        HWND   hwndTab = GetDlgItem( hwndDlg, IDC_TAB );
        TCITEM tci     = {0};
        tci.mask       = TCIF_TEXT;
        tci.pszText    = _T("Path");
    
        TabCtrl_InsertItem( hwndTab, 0, &tci );
    
        tci.pszText = _T("Run on Start");
        TabCtrl_InsertItem( hwndTab, 1, &tci );
    
        hwndPathSettings  = CreateDialogParam( GetModuleHandle( NULL ),
          MAKEINTRESOURCE( IDD_PATHSETTINGS ), hwndTab, PathSettingsProc, lParam );
        hwndStartSettings = CreateDialog( GetModuleHandle( NULL ),
          MAKEINTRESOURCE( IDD_STARTSETTINGS ), hwndTab, StartSettingsProc );
        break;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to set equal height on a series of divs inside another div
I'm trying to get the width of a div container to set another css
I've 3 tabs. I want to set tab1 active and set another tabs passive.
I could use another set of eyes - perhaps I am missing somehting obvious.
Is there a better way of appending a set to another set than iterating
I know that you cannot delete a cookie set by another server in javascript.
<div id=example> <div id=test></div> </div> <div id=another>Blah</div> I want to set $('#another').hide() but only
I am using the Win32 API call SetForegroundWindow to set focus to another application's
Another answer shows how to set a default timestamp . However, it updates only
I have set the data to div element and append it to another div

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.