progress_display+CProgressBar MFC
I'm wonder what could be a schema to connect boost::progress_timer to MFC CProgressBar (msvc) gui? Thanks in advance. gok
I'm wonder what could be a schema to connect boost::progress_timer to MFC CProgressBar (msvc) gui? Thanks in advance. gok
Here's what I came up with: afx_msg void CYourDlg::OnTimer(UINT nIDEvent) { switch (nIDEvent) { case 5: // Private timer identifier using namespace boost::posix_time; using namespace boost::gregorian; date d(2000, Jan, 1); ptime t1(d, seconds(0)); ptime t2(d, seconds(elapsed_timer.elapsed())); time_duration td = t2 - t1; std::string text("Elapsed Time: "); text += to_simple_string(td); ctlElapsed.SetWindowText(text.c_str()); break; } } If anyone has any better/shorter/other solutions, feel free to correct me... Eric
participants (2)
-
Eric Hill
-
Gennady Khokhorin