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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:59:27+00:00 2026-06-16T07:59:27+00:00

I want to create a dialog window for change settings of an application. Below

  • 0

I want to create a dialog window for change settings of an application. Below is a screenshot of Adobe Reader. After using Spy++, I guess that:

On the right side, all the control (buttons, combo boxes…ect) are belonged to a GroupBox.

For each category in the TreeView Control on the left side, there is a corresponding GroupBox which groups all the controls related to this category.

When users choose between different categories, it hides one GroupBox and shows another one GroupBox.

But in the source code (xxx.rc, resource file) below, I didn’t see anywhere where I can specify the “parent” of a dialog item.

Even I open xxx.rc with “Resource View” (not viewed as codes), I can’t find any option to specify the parent of a dialog item in its property page.

I would like to know how to assign a parent (which is a GroupBox in my case) to a dialog item, or group dialog items to a single group,in the .rc file, i.e when one create the dialog items. (I guess one can do so by modifying the .rc file.)

GROUPBOX        "View",IDC_SECTION_VIEW,101,6,228,88
LTEXT           "Default &Layout:",IDC_DEFAULT_LAYOUT_LABEL,107,19,108,9
COMBOBOX        IDC_DEFAULT_LAYOUT,215,17,108,64,CBS_DROPDOWNLIST | WS_TABSTOP
LTEXT           "Default &Zoom:",IDC_DEFAULT_ZOOM_LABEL,107,36,108,9
COMBOBOX        IDC_DEFAULT_ZOOM,215,34,108,149,CBS_DROPDOWN | WS_TABSTOP
CONTROL         "Show the &bookmarks sidebar when available",IDC_DEFAULT_SHOW_TOC,
                "Button",BS_AUTOCHECKBOX | WS_TABSTOP,107,53,216,9
...
...
...

enter image description here

  • 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-06-16T07:59:29+00:00Added an answer on June 16, 2026 at 7:59 am

    I would like to know how to assign a parent…

    SetParent Windows API. You supply HWND of your control and the handle of the supposed new parent.

    In resource script, the controls will be children of the dialog itself, but on runtime you are free to change this and group them into a hierarchy of your interest.

    You might also want to consider putting the supposed child groups into separate dialog template and have it as “composite control” – to be instantiated separately and be a child of a higher level dialog.

    UPD. Have a look at this simple project (C++/ATL): AtlChildDialog. In particular, at main dialog’s WM_INITIDIALOG handler:

    ATLVERIFY(m_ChildDialog.Create(m_hWnd, (LPARAM) this));
    ATLVERIFY(m_ChildDialog.MoveWindow(50, 50, 200, 150));
    m_ChildDialog.m_EditWindow.SetWindowText(_T("Some Text"));
    m_ChildDialog.ShowWindow(SW_SHOWNORMAL);
    m_ChildDialog.SetFocus();
    

    IDD_MAIN

    IDD_CHILD

    All together on runtime:

    Run Time

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

Sidebar

Related Questions

I want to a create dialog box like window before displaying the console window.
In my application I want to create a dialog which has a button to
Sorry for my bad English... Using Delphi 7 I want to create a dialog
In my Android app I want to create a dialog window that contains an
I created a SDI application and I created a Dialog Window. I want to
I want to create a dialog that contains some kind of text element (JLabel/JTextArea
I want to create a dialog with a title, borders (left, right, bottom) as
I want to create a dialog which appears when user presses a button. (In
I want to create a modal dialog that has more controls than what a
I do not want to use the graphics resources to create the dialog! What

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.