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'm trying to set up another thread that currently checks the status of the
As described in another question , I have a set of Model objects and
Why i cant set selecteditem property programatically? Im calling it from another XAML Window,
Hannuka, Chanukah, Hanukkah...Due to transliteration from another language and character set, there are many
I set a passphrase when creating a new SSH key on my laptop. But,
In a Visual Studio project (C#), I attempted to perform a rename of a
Diagrams created with Microsoft SQL Server Management Studio have their default schema set to
I could really use another set of eyes on this so I thought I
I'm currently trying to query and set some windows registry entries through a Java
I need to find a value based on another object value json = {[{ID:1,city:Atlanta},{ID:2,city:New

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.