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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:52:48+00:00 2026-05-14T06:52:48+00:00

Rather than have everything in one big dialog, I’m looking at being able to

  • 0

Rather than have everything in one big dialog, I’m looking at being able to display child dialogs for separate groups of controls. The idea is these are not free-floating child dialogs like floating toolbars, but would be shown with no title-bar, their position locked to the parent dialog… so as you drag the parent dialog any open child is dragged too.

NOTE: these child windows are not inside the parent dialog, they would typically be ‘glued’ to the edge of it.

In MFC/VC++ 2005, what’s the best way to do this? For testing, I currently have a standard MFC Dialog-based app setup with CMainDlg, and I’ve then created a ‘widget dialog’ CWidgetDlg. So far I’ve got a member variable CWidgetDlg MainDlg::m_Widget and a button on CMainDlg with a handler like

CMainDlg::OnDisplayWidgetBtn()
{
 m_Widget.ShowWindow(TRUE);
}

But of course m_Widget hasn’t got a HWND setup, and I am trying to remember the right way to do this? For dialog controls I can use DDX but what about child dialogs?

And is this a reasonable approach, or is there a nicer, more automated way?

  • 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-14T06:52:48+00:00Added an answer on May 14, 2026 at 6:52 am

    Try:

    // IDD_WIDGET is the resource id for your widget dialog
    m_Widget.Create(IDD_WIDGET, this);
    

    Don’t forget to set style property to child.

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

Sidebar

Related Questions

I'm building an ASP.Net MVC website. Rather than have everything in one project, I've
I have been sold on mod_wsgi and apache rather than mod_python. I have all
Rather than population said DOM object with an external page such as HTML CFM
Rather than scraping a Ruby version of this algorithm off the net I wanted
Has anyone used Lucene.NET rather than using the full text search that comes with
I'm developing an operating system and rather than programming the kernel, I'm designing the
(This is a question about the UI rather than the technology required to do
Does creating an object using reflection rather than calling the class constructor result in
Using C# and WPF under .NET (rather than Windows Forms or console), what is
Why would you do an automatic HTML post rather than a simple redirect? Is

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.