Docsity

Lecture Notes on Microsoft Visual C++ | CSE 775, Study notes of Engineering

Partial preview of the text

Download Lecture Notes on Microsoft Visual C++ | CSE 775 and more Study notes Engineering in PDF only on Docsity!

il] OnPaint void CChildView: :OnPaint(} EME# WizFrameWin classes 5 CAboutDig CPaintDC de(this): “* device context for painting BS CChicWiew CFont font: © CChildviewt) font .CreatePointFont (200, _T("Tahoma")): @ “CChidviewl) dc .SelectObject (&font): 8 OnCieate|LPCREATESTRI do Set TextColor(RGB( 0. 0.255)): 2@ On ButtonDown(UINT nFla 98 OnMousehMovelUINT nFlaa CReat rect: Pai GetClientRect(rect) ; 9@[OnPairt)] do. DrawText (_T("CSE791 8@ PreCreatewindow(CREATE Bo m_Displayys Big m Display if(a Triangle >= 0) { CPen pen: ‘89 m_MouseX pen. CreatePen(PS_SOLID (i? m_Mouse'Y SelectObject (&pen): Bp m_pCStatic HoveTo(n_Trianglex: | Bo m Triangles LineTo(n_Trianglex. ‘ip m Tangle LineTo(n_Trianglex. [ 296, 0] LineTo(n_T: Lek, 5 CMainFrame } ineTo(n_Triangle! 5 CwizFrameWwindpp Globals CMainFrane* plain = (Cs if(plain—>GetTaggle(}) Qgtringstzcan temp. CSE791 - Distributed Objects de. SetText Color (RGB( 25 de. TextOut(m_DisplayX. void CChildView: :OnMouselfa (Aaeps)|