About CView problem,thank:)
-
About CView problem,thank:) <<<<<<<<>>>>>> class Preview : public CView { public: virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo *pInfo); void OnPrint(CDC *pDC, CPrintInfo* pInfo); }; <<<<<>>>>>>>> void Preview::OnDraw(CDC* /*pDC*/) { } BOOL Preview::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); } void Preview::OnPrint(CDC *pDC, CPrintInfo* pInfo) { CString str=_T("rrr"); pDC->TextOut(0,30,str); } <<<<<<<<<<>>>>>>> Preview * p=new Preview(); p->GetDC()->TextOutW(1,2,_T("rxg")); i think add char to p; Debug no Error,but run Error how to add char to TextOutW function in p sorry,My English isn't good thank:)
-
About CView problem,thank:) <<<<<<<<>>>>>> class Preview : public CView { public: virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo *pInfo); void OnPrint(CDC *pDC, CPrintInfo* pInfo); }; <<<<<>>>>>>>> void Preview::OnDraw(CDC* /*pDC*/) { } BOOL Preview::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); } void Preview::OnPrint(CDC *pDC, CPrintInfo* pInfo) { CString str=_T("rrr"); pDC->TextOut(0,30,str); } <<<<<<<<<<>>>>>>> Preview * p=new Preview(); p->GetDC()->TextOutW(1,2,_T("rxg")); i think add char to p; Debug no Error,but run Error how to add char to TextOutW function in p sorry,My English isn't good thank:)
-
About CView problem,thank:) <<<<<<<<>>>>>> class Preview : public CView { public: virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo *pInfo); void OnPrint(CDC *pDC, CPrintInfo* pInfo); }; <<<<<>>>>>>>> void Preview::OnDraw(CDC* /*pDC*/) { } BOOL Preview::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); } void Preview::OnPrint(CDC *pDC, CPrintInfo* pInfo) { CString str=_T("rrr"); pDC->TextOut(0,30,str); } <<<<<<<<<<>>>>>>> Preview * p=new Preview(); p->GetDC()->TextOutW(1,2,_T("rxg")); i think add char to p; Debug no Error,but run Error how to add char to TextOutW function in p sorry,My English isn't good thank:)
rxgmoral wrote:
sorry,My English isn't good
English aside, what's the actual problem? What are you trying to do?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb