Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing functions and variables from another Dialog Pin
jo3ran20-Oct-09 3:43
jo3ran20-Oct-09 3:43 
AnswerRe: Using functions and variables from another Dialog Pin
Hans Dietrich20-Oct-09 4:47
mentorHans Dietrich20-Oct-09 4:47 
GeneralRe: Using functions and variables from another Dialog Pin
jo3ran20-Oct-09 4:50
jo3ran20-Oct-09 4:50 
GeneralRe: Using functions and variables from another Dialog Pin
Hans Dietrich20-Oct-09 4:55
mentorHans Dietrich20-Oct-09 4:55 
GeneralRe: Using functions and variables from another Dial Pin
jo3ran20-Oct-09 5:04
jo3ran20-Oct-09 5:04 
GeneralRe: Using functions and variables from another Dial Pin
Hans Dietrich20-Oct-09 5:13
mentorHans Dietrich20-Oct-09 5:13 
GeneralRe: Using functions and variables from another Dial Pin
jo3ran20-Oct-09 5:38
jo3ran20-Oct-09 5:38 
GeneralRe: Using functions and variables from another Dial Pin
Hans Dietrich20-Oct-09 6:03
mentorHans Dietrich20-Oct-09 6:03 
In that case it's pretty simple. Just declare a variable in the child dialog. You can declare it public, or create GetXXXX() API. When the child dialog exits (when user clicks ok), the parent can get data from variable.

If you want to send parent immediate notification, send a user defined message when button is clicked. To do this, when child dialog is invoked, be sure to pass pointer to parent (usually pParent - this is usually defined as CWnd *pParent). Then child dialog can send message by pParent->SendMessage(...).

Best wishes,
Hans


[Hans Dietrich Software]

GeneralRe: Using functions and variables from another Dial Pin
jo3ran21-Oct-09 2:02
jo3ran21-Oct-09 2:02 
GeneralRe: Using functions and variables from another Dial Pin
Hans Dietrich21-Oct-09 2:22
mentorHans Dietrich21-Oct-09 2:22 
QuestionInitialize into TCHAR** Pin
m_mun20-Oct-09 3:20
m_mun20-Oct-09 3:20 
AnswerRe: Initialize into TCHAR** Pin
Cedric Moonen20-Oct-09 3:30
Cedric Moonen20-Oct-09 3:30 
GeneralRe: Initialize into TCHAR** Pin
m_mun20-Oct-09 3:35
m_mun20-Oct-09 3:35 
GeneralRe: Initialize into TCHAR** Pin
Cedric Moonen20-Oct-09 3:41
Cedric Moonen20-Oct-09 3:41 
GeneralRe: Initialize into TCHAR** Pin
m_mun20-Oct-09 4:04
m_mun20-Oct-09 4:04 
AnswerRe: Initialize into TCHAR** Pin
Naveen20-Oct-09 3:44
Naveen20-Oct-09 3:44 
GeneralRe: Initialize into TCHAR** Pin
m_mun20-Oct-09 4:05
m_mun20-Oct-09 4:05 
GeneralRe: Initialize into TCHAR** Pin
Cedric Moonen20-Oct-09 4:10
Cedric Moonen20-Oct-09 4:10 
QuestionDebugging in CString Pin
jung-kreidler20-Oct-09 3:19
jung-kreidler20-Oct-09 3:19 
AnswerRe: Debugging in CString Pin
Naveen20-Oct-09 3:37
Naveen20-Oct-09 3:37 
GeneralRe: Debugging in CString Pin
jung-kreidler20-Oct-09 3:44
jung-kreidler20-Oct-09 3:44 
GeneralRe: Debugging in CString Pin
Naveen20-Oct-09 3:49
Naveen20-Oct-09 3:49 
GeneralRe: Debugging in CString Pin
jung-kreidler20-Oct-09 20:52
jung-kreidler20-Oct-09 20:52 
QuestionHow to save matched characters into variables in wildcard matching Pin
moh.hijjawi20-Oct-09 3:13
moh.hijjawi20-Oct-09 3:13 
QuestionNOTIFYICONDATA Datatype access violation when using memset or zeromemory Pin
Nicola Curran20-Oct-09 2:52
Nicola Curran20-Oct-09 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.