We help IT Professionals succeed at work.
Get Started

Need some help with open a dialog

487 Views
Last Modified: 2015-03-03
Hello,
I have 2 dialogs.
1.dialog you can display the order (CAuftragHistory.cpp)
2.dialog you can change the order  (CAuftragAendern_Dialog)




 I do call from my 1.dialog (CAuftragsHistory.cpp) the 2.dialog (like this)

         //-------------- Auftrag Ändern Dialog ------------------
          CAuftragAendern_Dialog *pMeinDialog;
          pMeinDialog = new CAuftragAendern_Dialog;
          pMeinDialog->m_bKennzahl_komme_von_AuftragHistory=true;
          pMeinDialog->str_ABNr=str_ABNr
          pMeinDialog->ShowWindow(SW_SHOW);
          //--------------------------------------------------------





Then I do the changes in the 2.dialog (CAuftragAendern_Dialog.cpp)
and save the order.
Then I close the 2.dialog, and the 1.dialog is there.
Now I would like to reload the order to see the changes in the 2.dialog

         //-------------- Auftrag Ändern Dialog ------------------
          CAuftragAendern_Dialog *pMeinDialog;
          pMeinDialog = new CAuftragAendern_Dialog;
          pMeinDialog->m_bKennzahl_komme_von_AuftragHistory=true;
          pMeinDialog->str_ABNr=str_ABNr
          pMeinDialog->ShowWindow(SW_SHOW);


          Reload_my_oder();
          anything I do here (behind the call) will done before the
          2.dialog is closed, and I do not see any changes.

          //--------------------------------------------------------
I hope you understand my problem.
How can I change this?
500 points with a solution.

Best regards,
Thomas
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2016
Commented:
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE