Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception while deletion -- scalar deleting destructor Pin
Divick11-Oct-05 21:59
Divick11-Oct-05 21:59 
GeneralRe: Exception while deletion -- scalar deleting destructor Pin
Divick12-Oct-05 1:26
Divick12-Oct-05 1:26 
Questionlaunch googleTalk from Browser Pin
Anonymous10-Oct-05 22:40
Anonymous10-Oct-05 22:40 
Questionl Pin
Anonymous10-Oct-05 22:39
Anonymous10-Oct-05 22:39 
AnswerRe: l Pin
Prakash Nadar11-Oct-05 6:24
Prakash Nadar11-Oct-05 6:24 
QuestionHow to draw the gradient of 3 colors with rotation? Pin
CoolStarLee10-Oct-05 22:14
CoolStarLee10-Oct-05 22:14 
AnswerRe: How to draw the gradient of 3 colors with rotation? Pin
Mircea Puiu11-Oct-05 0:54
Mircea Puiu11-Oct-05 0:54 
QuestionModeless dialog communicating with parent dialog Pin
fjlv200510-Oct-05 20:44
fjlv200510-Oct-05 20:44 
Good day,

I'm reposting my problem since i havent got an answer. I have a two dialog(main, child), the main is the normal dialog when you start to create a dialog application in EVC. The child dialog is a modeless dialog here is how the child is called.

CMyChild* childform=new CMyChild(this);
childform->Create(CMyChild::IDD);
childform->ShowWindow(SW_SHOW);

The child also has a public function UpdateProgress bar which updates the progress bar of child dialog. I have also a function in child dialog which updates the text much the same as updating the progress bar. here is how it is called.

CMainDlg::MyMainFunc()
{
CMyChild* childform=new CMyChild(this);
childform->Create(CMyChild::IDD);
childform->ShowWindow(SW_SHOW);

childform->UpdateProgress(10); //updates the progress bar by 10 steps..
childform->UpdateProgressStatusText("Loading 10%"); // updates the static text But doesnt work..

childform->UpdateProgress(210); //updates the progress bar by 10 steps..
childform->UpdateProgressStatusText("Loading 20%"); // updates the static text But doesnt work..
}

I'm sure that I change IDC_STATIC to IDC_LOADINGTEXT so id will not be the issue. My problem is why is that progress bar is updated with what i pass but UpdateProgressStatus is not updated with the text that I pass?

Here is the two child functionss.
void CMyChild::UpdateProgress(int pStep)
{
m_ctrlProgress.SetPos(pStep);
}


void CMyChild::UpdateProgressStatusText(char* text)
{
CString tmp;
tmp=text;
GetDlgItem(IDC_LOADINGTEXT)->SetWindowText(tmp);
}

Im sure that i set the property of IDC_LOADINGTEXT to visible. Still why is that the modeless dialog is not updated with the text I pass and the progress bar is updated.??Confused | :confused:

Pls. Help.

Thanks.

AnswerRe: Modeless dialog communicating with parent dialog Pin
karmendra_js10-Oct-05 21:11
karmendra_js10-Oct-05 21:11 
AnswerRe: Modeless dialog communicating with parent dialog Pin
fjlv200510-Oct-05 23:26
fjlv200510-Oct-05 23:26 
GeneralRe: Modeless dialog communicating with parent dialog Pin
karmendra_js10-Oct-05 23:58
karmendra_js10-Oct-05 23:58 
GeneralRe: Modeless dialog communicating with parent dialog Pin
karmendra_js11-Oct-05 0:11
karmendra_js11-Oct-05 0:11 
Questionfile filtering Pin
karmendra_js10-Oct-05 20:24
karmendra_js10-Oct-05 20:24 
AnswerRe: file filtering Pin
Mircea Puiu10-Oct-05 22:51
Mircea Puiu10-Oct-05 22:51 
AnswerRe: file filtering Pin
ThatsAlok11-Oct-05 0:34
ThatsAlok11-Oct-05 0:34 
QuestionSerializing Data to file Pin
karmendra_js10-Oct-05 19:44
karmendra_js10-Oct-05 19:44 
AnswerRe: Serializing Data to file Pin
karmendra_js10-Oct-05 20:07
karmendra_js10-Oct-05 20:07 
GeneralRe: Serializing Data to file Pin
David Crow11-Oct-05 2:52
David Crow11-Oct-05 2:52 
QuestionVC++ query Pin
nams_pr10-Oct-05 18:41
nams_pr10-Oct-05 18:41 
AnswerRe: VC++ query Pin
Richard Jones12-Oct-05 8:08
Richard Jones12-Oct-05 8:08 
QuestionRe: VC++ query Pin
nams_pr12-Oct-05 18:38
nams_pr12-Oct-05 18:38 
QuestionAnimated Search Icon Pin
Ian Bowler10-Oct-05 15:45
Ian Bowler10-Oct-05 15:45 
AnswerRe: Animated Search Icon Pin
Max Santos10-Oct-05 15:55
Max Santos10-Oct-05 15:55 
GeneralRe: Animated Search Icon Pin
Ian Bowler10-Oct-05 16:33
Ian Bowler10-Oct-05 16:33 
QuestionRe: Animated Search Icon Pin
David Crow10-Oct-05 16:30
David Crow10-Oct-05 16:30 

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.