void mmPanelBase::PrintPage() { //this->Freeze(); wxWebView * htmlWindow = wxWebView::New(this, wxID_ANY); htmlWindow->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory"))); htmlWindow->SetPage(BuildPage(), ""); htmlWindow->Print(); htmlWindow->Destroy(); //this->Thaw(); }
void CTodayView::OnDatetimechangeCallDate(NMHDR* pNMHDR, LRESULT* pResult) { COleDateTime timeCur; m_ctlCallDate.GetTime(timeCur); if (timeCur != m_timeCur) { m_timeCur = timeCur; CString strText; BuildPage(strText); // m_ctlHtml.SetHtml((LPCTSTR)strText); } *pResult = 0; }
void CTodayView::OnInitialUpdate() { if (m_ctlHtml.m_hWnd != NULL) return; CFormView::OnInitialUpdate(); m_ctlHtml.Create(DISPLAYCLASS, TEXT(""), WS_CHILD | WS_VISIBLE | WS_BORDER, CRect(0,0,0,0), this, HTMLID); m_ctlCallDate.GetTime(m_timeCur); m_ctlCallCustomer.AddString(TEXT("ADAMS, JOHN M.D.")); m_ctlCallCustomer.SetCurSel(m_ctlCallCustomer.AddString(TEXT("ADES, PHILIP M.D."))); m_ctlCallCustomer.AddString(TEXT("SMITH, ROBERT M.D.")); CString strText; BuildPage(strText); // m_ctlHtml.SetHtml((LPCTSTR)strText); }