Click here to Skip to main content
15,904,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
After posting message to MainFrame, a thread is started to display popup progressbar, and a timmer keep updating the prg bar(not happning), once stop getting stop messge posted from dialog timmer is killed, and popup is closed. every thing is fine except the updating the progress bar.

void CMainFrame::OnTimer(UINT nIDEvent) 
{

if (iStopProgress!=1) // This working fine
{
    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);
}

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 
GeneralRe: VK_BACK is not working when button is clicked Pin
_AnsHUMAN_ 30-Jul-08 1:47
_AnsHUMAN_ 30-Jul-08 1:47 
GeneralRe: VK_BACK is not working when button is clicked Pin
ShilpiP30-Jul-08 2:00
ShilpiP30-Jul-08 2:00 
Questionusing iostream header Pin
Mushtaque Nizamani29-Jul-08 23:36
Mushtaque Nizamani29-Jul-08 23:36 

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.