Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 23:06
deeps_cute13-Mar-07 23:06 
GeneralRe: cancel dialog Pin
Parthi_Appu13-Mar-07 23:45
Parthi_Appu13-Mar-07 23:45 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 23:58
deeps_cute13-Mar-07 23:58 
GeneralRe: cancel dialog Pin
Parthi_Appu14-Mar-07 0:16
Parthi_Appu14-Mar-07 0:16 
GeneralRe: cancel dialog Pin
deeps_cute14-Mar-07 0:38
deeps_cute14-Mar-07 0:38 
GeneralRe: cancel dialog Pin
Parthi_Appu14-Mar-07 0:59
Parthi_Appu14-Mar-07 0:59 
Generalthe problem is Pin
deeps_cute14-Mar-07 1:50
deeps_cute14-Mar-07 1:50 
GeneralRe: the problem is Pin
Parthi_Appu14-Mar-07 2:09
Parthi_Appu14-Mar-07 2:09 
Make the instance as a member to the parent class.
Use the Create API in the OnInitDialog() method of the Parent class.
Then use the instance (member of that class).

Actullay i forget ut class names, so see the below ex.
class CParentClass
{
 CChildClass m_wndChild;
};

BOOL CParentClass::OnInitDialog()
{
 CDialog::OnInitDialog();
 m_wndChild.Create(IDD_XXX, this);
 ....
}

xxx CParentClass::ButtonClick(..)
{
 /* Don't create new instance for CChildClass here */
 m_wndChild.ClearEditControls(..);
}

Hope its clear..


Do your Duty and Don't expect the Result

GeneralRe: the problem is Pin
deeps_cute14-Mar-07 4:05
deeps_cute14-Mar-07 4:05 
GeneralRe: the problem is Pin
Parthi_Appu14-Mar-07 16:42
Parthi_Appu14-Mar-07 16:42 
GeneralRe: the problem is - sorry Pin
deeps_cute14-Mar-07 18:00
deeps_cute14-Mar-07 18:00 
GeneralRe: the problem is - sorry Pin
Parthi_Appu14-Mar-07 18:08
Parthi_Appu14-Mar-07 18:08 
GeneralRe: the problem is - sorry Pin
deeps_cute14-Mar-07 18:22
deeps_cute14-Mar-07 18:22 
GeneralRe: the problem is - sorry Pin
Parthi_Appu14-Mar-07 18:27
Parthi_Appu14-Mar-07 18:27 
GeneralRe: the problem is - sorry Pin
deeps_cute14-Mar-07 18:56
deeps_cute14-Mar-07 18:56 
GeneralRe: cancel dialog -- ok then how Pin
G Haranadh13-Mar-07 21:59
G Haranadh13-Mar-07 21:59 
JokeRe: cancel dialog -- ok then how Pin
Parthi_Appu13-Mar-07 22:05
Parthi_Appu13-Mar-07 22:05 
AnswerRe: cancel dialog Pin
G Haranadh13-Mar-07 21:57
G Haranadh13-Mar-07 21:57 
QuestionOverview of a Handle Pin
Kotesh.N13-Mar-07 18:33
Kotesh.N13-Mar-07 18:33 
AnswerRe: Overview of a Handle Pin
Paresh Chitte13-Mar-07 18:45
Paresh Chitte13-Mar-07 18:45 
AnswerRe: Overview of a Handle Pin
Stephen Hewitt13-Mar-07 20:45
Stephen Hewitt13-Mar-07 20:45 
AnswerRe: Overview of a Handle Pin
ThatsAlok15-Mar-07 1:17
ThatsAlok15-Mar-07 1:17 
Questionhelp me about ctrl+c&v on edit box Pin
zhaohaicheng13-Mar-07 17:47
zhaohaicheng13-Mar-07 17:47 
Questionstrin find Pin
deeps_cute13-Mar-07 17:45
deeps_cute13-Mar-07 17:45 
AnswerRe: strin find Pin
Hamid_RT13-Mar-07 18:12
Hamid_RT13-Mar-07 18:12 

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.