Click here to Skip to main content
15,880,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to assign unsigned char in c++? Pin
CPallini6-May-11 10:18
mveCPallini6-May-11 10:18 
AnswerRe: how to assign unsigned char in c++? Pin
Stefan_Lang6-May-11 2:21
Stefan_Lang6-May-11 2:21 
AnswerRe: how to assign unsigned char in c++? Pin
Luc Pattyn6-May-11 2:43
sitebuilderLuc Pattyn6-May-11 2:43 
AnswerRe: how to assign unsigned char in c++? Pin
CPallini6-May-11 10:21
mveCPallini6-May-11 10:21 
AnswerRe: how to assign unsigned char in c++? Pin
mike@codeproject8-May-11 5:51
mike@codeproject8-May-11 5:51 
GeneralRe: how to assign unsigned char in c++? Pin
mathivanaan9-May-11 18:48
mathivanaan9-May-11 18:48 
Questionhow to pass values between dialog window in MFC Pin
lamrinraj5-May-11 23:55
lamrinraj5-May-11 23:55 
AnswerRe: how to pass values between dialog window in MFC Pin
Cool_Dev6-May-11 1:07
Cool_Dev6-May-11 1:07 
One way is to set the parent dialog pointer to the child window, after creating it. Use this pointer to call parent dialog's functions to notify or to directly set the values.

// CDataDlg.h

// Forward declaration
class CTestDlg;
class CDataDlg
{
  .......
  public:
      SetParentDlg(CTestDlg* parent)
      {
         m_pTestDlg = parent;
      }
  private:
      CTestDlg* m_pTestDlg;
}

From CTestDlg, after creating child dlg, call SetParentDlg(this) on it.
// CDataDlg.cpp
#include "testdlg.h"
......
// Get data from text box here..
m_pTestDlg->Function(data);


Also, you may use SetParent() and GetParent() functions on CTestDlg, and cast the returned pointer to CTestDlg* and use.

AfxGetApp() returns the CWinApp pointer, and you can cast this to your MFC application class and use.
GeneralRe: how to pass values between dialog window in MFC Pin
lamrinraj9-May-11 1:56
lamrinraj9-May-11 1:56 
QuestionRe: how to pass values between dialog window in MFC Pin
David Crow9-May-11 3:54
David Crow9-May-11 3:54 
AnswerRe: how to pass values between dialog window in MFC Pin
Niklas L6-May-11 1:12
Niklas L6-May-11 1:12 
QuestionBall Physics Pin
Cyclone_S5-May-11 23:51
Cyclone_S5-May-11 23:51 
AnswerRe: Ball Physics Pin
Richard MacCutchan6-May-11 2:58
mveRichard MacCutchan6-May-11 2:58 
GeneralRe: Ball Physics Pin
Cyclone_S6-May-11 7:57
Cyclone_S6-May-11 7:57 
AnswerRe: Ball Physics Pin
CPallini6-May-11 10:29
mveCPallini6-May-11 10:29 
GeneralRe: Ball Physics Pin
Cyclone_S6-May-11 21:35
Cyclone_S6-May-11 21:35 
AnswerRe: Ball Physics Pin
Stefan_Lang10-May-11 5:11
Stefan_Lang10-May-11 5:11 
QuestionSetting BGColor to a WebBrowser Control [modified] Pin
pix_programmer5-May-11 1:32
pix_programmer5-May-11 1:32 
QuestionRe: Setting BGColor to a WebBrowser Control Pin
వేంకటనారాయణ(venkatmakam)5-May-11 1:54
వేంకటనారాయణ(venkatmakam)5-May-11 1:54 
AnswerRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 2:17
pix_programmer5-May-11 2:17 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
_Flaviu5-May-11 2:32
_Flaviu5-May-11 2:32 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 2:34
pix_programmer5-May-11 2:34 
QuestionRe: Setting BGColor to a WebBrowser Control Pin
Maximilien5-May-11 7:19
Maximilien5-May-11 7:19 
AnswerRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 18:08
pix_programmer5-May-11 18:08 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
barneyman5-May-11 20:03
barneyman5-May-11 20:03 

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.