Click here to Skip to main content
15,891,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PropertySheet 'Finish' Button Pin
Graham Bradshaw10-Jul-08 5:58
Graham Bradshaw10-Jul-08 5:58 
GeneralRe: PropertySheet 'Finish' Button Pin
Graham Bradshaw10-Jul-08 5:59
Graham Bradshaw10-Jul-08 5:59 
GeneralRe: PropertySheet 'Finish' Button Pin
softwaremonkey10-Jul-08 6:04
softwaremonkey10-Jul-08 6:04 
QuestionTransfering String from View Class to other class. Pin
Cozmo2310-Jul-08 4:24
Cozmo2310-Jul-08 4:24 
AnswerRe: Transfering String from View Class to other class. Pin
led mike10-Jul-08 4:33
led mike10-Jul-08 4:33 
AnswerRe: Transfering String from View Class to other class. Pin
softwaremonkey10-Jul-08 5:01
softwaremonkey10-Jul-08 5:01 
GeneralRe: Transfering String from View Class to other class. Pin
Cozmo2310-Jul-08 10:03
Cozmo2310-Jul-08 10:03 
GeneralRe: Transfering String from View Class to other class. Pin
softwaremonkey10-Jul-08 10:20
softwaremonkey10-Jul-08 10:20 
Hmm, there are a few ways of doing this. I think I would create a pointer to your other class as a member of the dialog. You can then freely read and write data from/to your class from the dialog. When you create the dialog you would assign the pointer to the object you want to pass data to, then in your dialog, you could override OnOK to assign the newly entered values using the pointer...

CMyDialog dlg;

dlg.m_ptrToMyOtherClass = &myOtherObject;
dlg.DoModal();

CMyDialog::OnOK()
{
   // Copy values from dialog into your other class.
   UpdateData(TRUE);
    m_ptrToMyOtherClass->m_Title = m_Title;
   m_ptrToMyOtherClass->m_classMember = m_dialogClassMember;
  CDialog::OnOK();
}

I dont know if this helps.

Tony
QuestionProblem with InvokeHelper method in CWnd class Pin
hari_honey10-Jul-08 2:43
hari_honey10-Jul-08 2:43 
AnswerRe: Problem with InvokeHelper method in CWnd class Pin
Yajnesh Narayan Behera10-Jul-08 3:54
Yajnesh Narayan Behera10-Jul-08 3:54 
GeneralRe: Problem with InvokeHelper method in CWnd class Pin
hari_honey10-Jul-08 18:53
hari_honey10-Jul-08 18:53 
GeneralRe: Problem with InvokeHelper method in CWnd class Pin
Yajnesh Narayan Behera10-Jul-08 20:26
Yajnesh Narayan Behera10-Jul-08 20:26 
Question[Message Deleted] Pin
AnithaSubramani10-Jul-08 2:33
AnithaSubramani10-Jul-08 2:33 
AnswerRe: GetFocus in VC++ Pin
_AnsHUMAN_ 10-Jul-08 2:41
_AnsHUMAN_ 10-Jul-08 2:41 
GeneralRe: GetFocus in VC++ Pin
AnithaSubramani10-Jul-08 2:44
AnithaSubramani10-Jul-08 2:44 
GeneralRe: GetFocus in VC++ Pin
sudhir_Kumar10-Jul-08 3:20
sudhir_Kumar10-Jul-08 3:20 
AnswerRe: GetFocus in VC++ Pin
David Crow10-Jul-08 3:14
David Crow10-Jul-08 3:14 
AnswerRe: GetFocus in VC++ Pin
Yajnesh Narayan Behera10-Jul-08 3:48
Yajnesh Narayan Behera10-Jul-08 3:48 
QuestionHow Can I Load External Bitmap File To CBitmap Object Pin
reteset10-Jul-08 2:13
reteset10-Jul-08 2:13 
AnswerRe: How Can I Load External Bitmap File To CBitmap Object Pin
David Crow10-Jul-08 3:17
David Crow10-Jul-08 3:17 
GeneralRe: How Can I Load External Bitmap File To CBitmap Object Pin
reteset10-Jul-08 8:17
reteset10-Jul-08 8:17 
AnswerRe: How Can I Load External Bitmap File To CBitmap Object Pin
sudhir_Kumar10-Jul-08 3:24
sudhir_Kumar10-Jul-08 3:24 
GeneralRe: How Can I Load External Bitmap File To CBitmap Object Pin
reteset10-Jul-08 8:21
reteset10-Jul-08 8:21 
QuestionHow can I display 2 cursors on the same window? Pin
danginkgo10-Jul-08 1:25
danginkgo10-Jul-08 1:25 
QuestionRe: How can I display 2 cursors on the same window? Pin
David Crow10-Jul-08 3:19
David Crow10-Jul-08 3:19 

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.