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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:44:51+00:00 2026-06-04T03:44:51+00:00

The DDX technology was created for linking resources with class members (for example). In

  • 0

The DDX technology was created for linking resources with class members (for example). In my solution I need to make the connection between myCCtreeCtrl (instant of CCtreeCtrl) does not living in resources with class member CCtreeCtrl.
Now I have CTreeCtrl in resouces and silmple doDataExchange:

#define IDC_TREE_LAYER0                 2000   
#define IDC_TREE_LAYER1                 2001
#define IDC_TREE_LAYER2                 2002


// ============================================================================
void ForcesGUI::doDataExchange( int id0, int id1, int id2, CDataExchange* pDX )
// ============================================================================
{
   DDX_Control(pDX, id0, m_tree[0].data);
   DDX_Control(pDX, id1, m_tree[1].data);
   DDX_Control(pDX, id2, m_tree[2].data);
}

but in future it will be necessary to delete CCtreeCtrl from resources and make instance.

You’ll ask me why do you need deleting from resources?

The answer is: In project I have 3 CCtreeCtrls each of them live on his own bar. There is no different betwen them. That is why I want to use 1 bar class with 1 tree on it instead of redundancy. After I’ll create 3 instance of bar and here appears problem with DDX wich does not work here.

Have you any ideas how can I replace basic DDX? May be it will be WinAPI or something else. In any case thanks for help.

  • 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-04T03:44:52+00:00Added an answer on June 4, 2026 at 3:44 am

    If the control isn’t generated automatically from a dialog resource, you’ll have to create it with the Create method. You’ll want to do this in OnInitDialog or whatever equivalent is in your parent window. By creating the window with Create it will automatically be connected to the object you created it from – no need for DDX_Control.

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

Sidebar

Related Questions

I copied an existing header for a dlg box class (created with the dlg
I need to solve this equation in Mathematica: d/dx v (x) = A .
dear all..i have a table it looks like: Name version DDX 01 DTX 05
I have a CStdDlg thats inherits from a CDialog class. In the CStdDlg dialog,
I'm trying to animate the removal of a tree node. As I move between
class mydialog declaration. ........................... my work is to create a window with a button
In good old MFC, the DDX routines would have built in validation for form
I am trying to render a treemap in d3.js and using the example code
This is a fairly basic question, but I haven't been able to find any
There's a bunch of special macros that MFC uses when creating dialogs, and in

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.