Click here to Skip to main content
15,911,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 0:26
rudo329-Oct-05 0:26 
GeneralRe: Slow access to array Pin
John R. Shaw9-Oct-05 0:54
John R. Shaw9-Oct-05 0:54 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 3:08
rudo329-Oct-05 3:08 
GeneralRe: Slow access to array Pin
John R. Shaw12-Oct-05 11:18
John R. Shaw12-Oct-05 11:18 
QuestionFree C++ .Net compiler questions Pin
Jim Crafton8-Oct-05 9:11
Jim Crafton8-Oct-05 9:11 
AnswerRe: Free C++ .Net compiler questions Pin
John R. Shaw8-Oct-05 23:11
John R. Shaw8-Oct-05 23:11 
GeneralRe: Free C++ .Net compiler questions Pin
Jim Crafton9-Oct-05 4:56
Jim Crafton9-Oct-05 4:56 
QuestionModeless dialog communicating with parent dialog Pin
fjlv20058-Oct-05 9:08
fjlv20058-Oct-05 9:08 
Good day,

I have a parent dialog instatialing a modeless dialog. My modeless dialog has a public function that updates the progress bar. Everytime I call tmpmodeless->UpdateProgressBar(step) where step is a number to increase, the progress bar show increase on display. I have also a public function in modeless dialog that updates the text for displaying the status tmpmodeless->UpdateMessageStatus(CString mymsg) but I doesnt update the display..

Here is my code:
// Variables of modeless dialog
CProgressCtrl m_ctrlProgress; // Created using MFC Class wizard so it sure points to the
// control id of progress bar.
CStatic m_statusdone; // Created using MFC Class wizard so it sure points to the
// control id CStatic control id. Also sure that Visible property is checked.


CMyParentDialog::MyInitialize()
{
CMyModelessDialog* tmpmodeless=new CMyModelessDialog(this);
tmpmodeless->Create(CMyModelessDialog::IDD);
tmpmodeless->ShowWindow(SW_SHOW);
tmpmodeless->UpdateProgressBar(10); //OK is reflects on screen
tmpmodeless->UpdateMessageStatus("Help me step 10"); doesnt change display..
tmpmodeless->UpdateProgressBar(20); //OK is reflects on screen
tmpmodeless->UpdateMessageStatus("Help me step 20"); still doesnt change display..
}

void CMyModelessDialog::UpdateProgressBar(int pStep)
{
m_ctrlProgress.SetPos(pStep);
}

void CMyModelessDialog::UpdateMessageStatus(CString mymsg) //Doesnt work.. why???????????????
{
m_statusdone.SetWindowText(mymsg);
UpdateData(TRUE);
}

Still Doesnt appear even if I manually put m_statusdone.SetWindowText("Test") under UpdateProgressBar because UpdateProgressBar sure does works on setting progressbar.

Is there something Wrong with CStatic control????

Thanks.


AnswerRe: Modeless dialog communicating with parent dialog Pin
Jose Lamas Rios8-Oct-05 14:32
Jose Lamas Rios8-Oct-05 14:32 
QuestionRe: Modeless dialog communicating with parent dialog Pin
fjlv20059-Oct-05 18:42
fjlv20059-Oct-05 18:42 
QuestionHow in CEdit to install the cursor in anchor point? Pin
pup20028-Oct-05 7:36
pup20028-Oct-05 7:36 
AnswerRe: How in CEdit to install the cursor in anchor point? Pin
Mircea Puiu8-Oct-05 21:03
Mircea Puiu8-Oct-05 21:03 
AnswerRe: How in CEdit to install the cursor in anchor point? Pin
John R. Shaw8-Oct-05 21:39
John R. Shaw8-Oct-05 21:39 
QuestionCButton with Bitmap Transparency Pin
fjlv20058-Oct-05 5:02
fjlv20058-Oct-05 5:02 
AnswerRe: CButton with Bitmap Transparency Pin
Lane Yu8-Oct-05 8:24
Lane Yu8-Oct-05 8:24 
QuestionRe: CButton with Bitmap Transparency Pin
fjlv20058-Oct-05 9:14
fjlv20058-Oct-05 9:14 
AnswerRe: CButton with Bitmap Transparency Pin
PJ Arends8-Oct-05 18:23
professionalPJ Arends8-Oct-05 18:23 
AnswerRe: CButton with Bitmap Transparency Pin
Lane Yu8-Oct-05 18:46
Lane Yu8-Oct-05 18:46 
Questionuse of extern keyword Pin
swaapu8-Oct-05 2:46
swaapu8-Oct-05 2:46 
AnswerRe: use of extern keyword Pin
G Haranadh8-Oct-05 3:08
G Haranadh8-Oct-05 3:08 
AnswerRe: use of extern keyword Pin
Bob Stanneveld8-Oct-05 7:02
Bob Stanneveld8-Oct-05 7:02 
AnswerRe: use of extern keyword Pin
John R. Shaw8-Oct-05 22:14
John R. Shaw8-Oct-05 22:14 
Questionhow to use ADO to store and retrieve image data from Oracle using VC++ Pin
snprani8-Oct-05 2:07
snprani8-Oct-05 2:07 
GeneralRe: how to use ADO to store and retrieve image data from Oracle using VC++ Pin
G Haranadh8-Oct-05 9:53
G Haranadh8-Oct-05 9:53 
QuestionHow to use CByteArray to store images into PostgreSQL database from VC++ Pin
snprani8-Oct-05 2:06
snprani8-Oct-05 2:06 

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.