Click here to Skip to main content
16,013,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOffice 2007 styles not working in dialogs Pin
Redeye9230-Jul-08 2:06
Redeye9230-Jul-08 2:06 
AnswerRe: Office 2007 styles not working in dialogs Pin
Rob Caldecott30-Jul-08 5:17
Rob Caldecott30-Jul-08 5:17 
GeneralRe: Office 2007 styles not working in dialogs Pin
Redeye9230-Jul-08 6:51
Redeye9230-Jul-08 6:51 
GeneralRe: Office 2007 styles not working in dialogs Pin
Rob Caldecott30-Jul-08 8:07
Rob Caldecott30-Jul-08 8:07 
QuestionCListCtrl: max number of rows Pin
Gerhard-E30-Jul-08 1:54
Gerhard-E30-Jul-08 1:54 
AnswerRe: CListCtrl: max number of rows Pin
_AnsHUMAN_ 30-Jul-08 1:59
_AnsHUMAN_ 30-Jul-08 1:59 
GeneralRe: CListCtrl: max number of rows Pin
Gerhard-E30-Jul-08 2:08
Gerhard-E30-Jul-08 2:08 
QuestionProgress bar is not updated. while background process is running on the dialog Pin
ptr_Electron30-Jul-08 1:44
ptr_Electron30-Jul-08 1:44 
Before a button event, I am posting a message to MainFram to display a popup with a progress bar, pop is displayed, but the progress in not updated on the dialog. Please advice

void CMainFrame::OnTimer(UINT nIDEvent)
{

if (iStopProgress!=1) // This working fine
{
// update progress..
iPrgCounter++;
PostMessage(WM_USER_THREAD_UPDATE_PROGRESS, iPrgCounter, nMaxPrgValue);
Sleep(100);
DoEvents1();

}
else
{
popupDlg->OnCancel();
DoEvents1();
Sleep(100);
}

CMDIFrameWnd::OnTimer(nIDEvent);
}


void CMainFrame::OnStartPrgBar()
{
popupDlg= new CPrgpopup();
popupDlg->DoModal();
}


void CMainFrame::OnStopPrgBar()
{
iStopProgress=1;

if (KillTimer (Timeval)!=TRUE)
{
AfxMessageBox("Timmer Kill Failed");
}
else
{
AfxMessageBox("Timmer KILLED");
popupDlg->OnCancel();
AfxMessageBox("MF Stop");
}

}


UINT CMainFrame::StartProgressBarThread (LPVOID param)
{
THREADSTRUCT* ts = (THREADSTRUCT*)param;

if (ts->_this->popupDlg->DoModal()==TRUE)
{
hwnd=ts->_this->popupDlg->GetSafeHwnd();
ts->_this->popupDlg->m_ProgressCtrl.SetRange (0, nMaxPrgValue);
}


return 1;
}


void CMainFrame::OnUpdatePrgBar()
{
popupDlg->m_ProgressCtrl.StepIt(); // Not getting update on Dlg
DoEvents1();
Sleep(100);
}
AnswerRe: Progress bar is not updated. while background process is running on the dialog Pin
CPallini30-Jul-08 2:01
mveCPallini30-Jul-08 2:01 
AnswerRe: Progress bar is not updated. while background process is running on the dialog Pin
Mark Salsbery30-Jul-08 6:51
Mark Salsbery30-Jul-08 6:51 
GeneralRe: Progress bar is not updated. while background process is running on the dialog Pin
ptr_Electron30-Jul-08 19:55
ptr_Electron30-Jul-08 19:55 
GeneralRe: Progress bar is not updated. while background process is running on the dialog Pin
Mark Salsbery31-Jul-08 7:32
Mark Salsbery31-Jul-08 7:32 
QuestionProviding an implementation of virtual void CMyFormView::PreTranslateMessage(MSG* pMsg) in order to know when the user presses return, focus, CListCtrl Pin
Sternocera30-Jul-08 1:24
Sternocera30-Jul-08 1:24 
QuestionC++ MySQL without libmysql Pin
aceralex30-Jul-08 0:35
aceralex30-Jul-08 0:35 
AnswerRe: C++ MySQL without libmysql Pin
Sternocera30-Jul-08 1:26
Sternocera30-Jul-08 1:26 
GeneralRe: C++ MySQL without libmysql Pin
aceralex30-Jul-08 1:39
aceralex30-Jul-08 1:39 
GeneralRe: C++ MySQL without libmysql Pin
Mark Salsbery30-Jul-08 6:56
Mark Salsbery30-Jul-08 6:56 
GeneralRe: C++ MySQL without libmysql Pin
enhzflep30-Jul-08 16:28
enhzflep30-Jul-08 16:28 
GeneralRe: C++ MySQL without libmysql Pin
Mark Salsbery31-Jul-08 7:37
Mark Salsbery31-Jul-08 7:37 
GeneralRe: C++ MySQL without libmysql Pin
enhzflep31-Jul-08 14:39
enhzflep31-Jul-08 14:39 
GeneralRe: C++ MySQL without libmysql Pin
Mark Salsbery31-Jul-08 15:34
Mark Salsbery31-Jul-08 15:34 
QuestionVK_BACK is not working when button is clicked [Solved] Pin
ShilpiP30-Jul-08 0:17
ShilpiP30-Jul-08 0:17 
GeneralRe: VK_BACK is not working when button is clicked Pin
Matthew Faithfull30-Jul-08 0:23
Matthew Faithfull30-Jul-08 0:23 
AnswerRe: VK_BACK is not working when button is clicked Pin
_AnsHUMAN_ 30-Jul-08 0:26
_AnsHUMAN_ 30-Jul-08 0:26 
GeneralRe: VK_BACK is not working when button is clicked Pin
ShilpiP30-Jul-08 1:22
ShilpiP30-Jul-08 1:22 

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.