16,016,580 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 8605996 (Top 4 by date)
Member 8605996
3-Dec-20 16:16pm
View
in my solution 3 I have a working version but it is not very efferent. How do I change solution 3 so that the budgetAmount and budgetNote are independent for each Budget[] index?
Member 8605996
8-Jan-15 12:43pm
View
I am able to do this now. Now I would like to send a structure to the child to initialize it. What is the best way to do this?
Member 8605996
7-Jan-15 9:38am
View
Have not been able to make you solution work.
I have made this modification to the section that starts my child dialog. Looked at pMainWnd and pView and they are pointing to the parent dialog. I created a global m_my_test in the parent. When I try and access m_my_test the compiler says it is undefined. How do I code it so it can be seen?
CUnpaidExpDlg::CUnpaidExpDlg(CWnd* pParent /*=NULL*/)
: CDialog(CUnpaidExpDlg::IDD, pParent)
{
CBudgetDlg *pMainWnd = (CBudgetDlg *)AfxGetMainWnd();
if (pMainWnd != NULL)
{
CWnd* pView = pMainWnd;
if(pView != NULL)
{
//my_string = m_my_test;
my_string = "Randy";
}
}
if(Create(CUnpaidExpDlg::IDD,pParent))
{
ShowWindow(SW_SHOW);
}
my_string = _T("");
}
Member 8605996
6-Jan-15 10:33am
View
For example if I have CString m_string in the parent dialog and I want to pass the value to the child dialog CString my_string. Here is what I am trying to do. Not sure how to code it.
CUnpaidExpDlg::CUnpaidExpDlg(CWnd* pParent /*=NULL*/)
: CDialog(CUnpaidExpDlg::IDD, pParent)
,my_string = CBudgetDlg.m_string;
{
if(Create(CUnpaidExpDlg::IDD,pParent))
{
ShowWindow(SW_SHOW);
}
}