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

C / C++ / MFC

 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 23:50
professionalMohibur Rashid26-Jun-11 23:50 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:08
Iain Clarke, Warrior Programmer26-Jun-11 22:08 
AnswerRe: ON_COMMAND not working on mfc Pin
Mark Salsbery26-Jun-11 6:22
Mark Salsbery26-Jun-11 6:22 
GeneralRe: ON_COMMAND not working on mfc [modified] Pin
Mohibur Rashid26-Jun-11 12:23
professionalMohibur Rashid26-Jun-11 12:23 
GeneralRe: ON_COMMAND not working on mfc Pin
Mark Salsbery26-Jun-11 13:50
Mark Salsbery26-Jun-11 13:50 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 19:11
professionalMohibur Rashid26-Jun-11 19:11 
GeneralRe: ON_COMMAND not working on mfc Pin
Stefan_Lang27-Jun-11 4:32
Stefan_Lang27-Jun-11 4:32 
QuestionCalling Funciton of Other class Pin
Mohibur Rashid25-Jun-11 23:28
professionalMohibur Rashid25-Jun-11 23:28 
Here is the situation..
I wanted to do something like this
class B
{
private:
	A *a;
public:
	B(A *ta)
	{
		a=ta;
	}
};
class A
{
	int a;
	B *b;
public:
	A()
	{
		b=new B(this);
	}

};


But it Seems Its not possible... or may I am missing any point...

Anyway, What I am trying to achieve is

I have Main Window class
class CInsertEdit:public CWnd
{
 .....
 /*This is a custom class with save button. What I want is after*/
}
class MainWnd:public CWnd
{
  CInsertEdit *m_insertEdit;
  public:
    MainWnd()
    {
      Create(NULL,L"/\/\/\/\/\/");
      .....
      Check=m_pInsertEdit->Create(this,CRect(160,0,500,500), 1, WS_CHILD|WS_VISIBLE|WS_BORDER|WS_TABSTOP);
    }
  int ReEditTreeContol()
  {
    ......
  }
  protected:

}


What I want is Call the ReEditTreeContol function after Hitting Save Button which is defined and created in CInsertEdit.

I cannot define a pointer in CInsertEdit class. What Can be done?
AnswerRe: Calling Funciton of Other class Pin
Richard MacCutchan26-Jun-11 2:30
mveRichard MacCutchan26-Jun-11 2:30 
GeneralRe: Calling Funciton of Other class Pin
Mohibur Rashid26-Jun-11 2:54
professionalMohibur Rashid26-Jun-11 2:54 
GeneralRe: Calling Funciton of Other class Pin
Richard MacCutchan26-Jun-11 5:16
mveRichard MacCutchan26-Jun-11 5:16 
GeneralRe: Calling Funciton of Other class Pin
Mohibur Rashid26-Jun-11 12:15
professionalMohibur Rashid26-Jun-11 12:15 
AnswerRe: Calling Funciton of Other class Pin
Niklas L26-Jun-11 3:52
Niklas L26-Jun-11 3:52 
GeneralRe: Calling Funciton of Other class Pin
Mohibur Rashid26-Jun-11 4:11
professionalMohibur Rashid26-Jun-11 4:11 
AnswerRe: Calling Funciton of Other class Pin
Stefan_Lang27-Jun-11 1:57
Stefan_Lang27-Jun-11 1:57 
QuestionHelp With SetTimer in C++ 6 Pin
Member 801201325-Jun-11 6:33
Member 801201325-Jun-11 6:33 
AnswerRe: Help With SetTimer in C++ 6 Pin
«_Superman_»25-Jun-11 6:54
professional«_Superman_»25-Jun-11 6:54 
GeneralRe: Help With SetTimer in C++ 6 Pin
Member 801201325-Jun-11 7:01
Member 801201325-Jun-11 7:01 
AnswerRe: Help With SetTimer in C++ 6 Pin
Richard MacCutchan25-Jun-11 21:23
mveRichard MacCutchan25-Jun-11 21:23 
GeneralRe: Help With SetTimer in C++ 6 Pin
Member 801201326-Jun-11 5:31
Member 801201326-Jun-11 5:31 
GeneralRe: Help With SetTimer in C++ 6 Pin
Richard MacCutchan26-Jun-11 5:42
mveRichard MacCutchan26-Jun-11 5:42 
GeneralRe: Help With SetTimer in C++ 6 [modified] Pin
David Crow27-Jun-11 3:19
David Crow27-Jun-11 3:19 
GeneralRe: Help With SetTimer in C++ 6 Pin
Member 801201327-Jun-11 4:30
Member 801201327-Jun-11 4:30 
AnswerRe: Help With SetTimer in C++ 6 Pin
enhzflep25-Jun-11 21:57
enhzflep25-Jun-11 21:57 
GeneralRe: Help With SetTimer in C++ 6 Pin
Member 801201326-Jun-11 6:02
Member 801201326-Jun-11 6:02 

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.