Microsoft Visual C++ Windows Applications by Example phần 10 ppt
... 393-408 CWordView.h 391 visual studio about 88, 89 Application Wizard 88 W windows development coordinate system 93, 94 cursor 98 device context 94-98 message system 90 registry 98 serialization 99, 100 visual ... application 332 rings drawing 112 example 103 RingView.cpp 112, 113 S scroll bar setting 114 serialization 99, 100 RingDoc.cpp 124, 125 set class, MFC class about 137...
Ngày tải lên: 12/08/2014, 21:20
... by several applications, we must destroy it. When we gain focus, we have to create a new caret. void Caret::OnKillFocus() { m_pFocusView = NULL; ::DestroyCaret(); } Ring: A Demonstration Example [ ... the rectangle are given by the methods Width and Height. The four corners of the rectangle can be accessed by the public elds left, top, right, and bottom. int xLeft = 100 , xRig...
Ngày tải lên: 12/08/2014, 21:20
... Term EOL Factor* Factor NextTerm + Term EOL 5 6 97 10 10 Factor* Factor + Term EOL VALUE(1)* Factor + Term EOL VALUE(1)* VALUE(2) + Term 6 10 9 EOL VALUE(1)* VALUE(2) + Factor NextTerm EOL VALUE(1)* ... taken care of by UpdateReferences in the syntax tree. It returns true if all goes well and false if any reference is placed outside the spreadsheet. The source set is also updated by...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 2 doc
... of the application. In C++, an object is dened by its class. A class can be considered a blueprint for one or more objects with the same features. A class is dened by methods and elds. A ... perform conditional programming by checking the value of macros. In the following example, we dene a system integer according to the underlying operating system. #ifdef WINDOWS #define SY...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 3 pdf
... tmLastChar; TCHAR tmDefaultChar; TCHAR tmBreakChar; BYTE tmItalic; BYTE tmUnderlined; BYTE tmStruckOut; BYTE tmPitchAndFamily; BYTE tmCharSet; } TEXTMETRIC, *PTEXTMETRIC; BOOL GetTextMetrics(TEXTMETRIC* ... pen(PS_SOLID, 0, BLACK); CBrush brush(color); pDC->Ellipse(point.x - 10, point.y - 10, point.x + 10, point.y + 10) ; CPen* pOldPen = pDC->SelectObject(&p...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 5 pot
... File type long name. This implies that we can start the application in Windows Explorer by choosing the application, or by choosing one of the documents (a le with the extension .drw) of the ... constructor is called by the sub classes in order to initialize the gure's color and mark status. The third constructer is called by the Copy function, which in turn is called b...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 6 docx
... The elds are set by the user and are used when a new gure is added to the drawing. Similar to m_iApplicationState, the values of m_nextColor and m_bNextFill are accessed by the constructor ... character at the caret position. In either case, we increment the caret index by one and re-calculate the text by calling GenerateCaretArray. void TextFigure::CharDown(UINT uChar, CDC* pDC,...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 8 ppsx
... cells one by one. We start by dening a test cell matrix and a test target set matrix, which are copies of the document elds m_cellMatrix and m_tSetMatrix. Then we paste the cells one by one. ... one pixel rst, WM_LBUTTON is sent, which is caught by OnLButtonDown, then one or more WM_MOUSEMOVE messages are sent, which are caught by OnMouseMove. Finally WM_LBUTTONDOWN is sent,...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 9 doc
... states. They have the enumeration types WordState and KeyboardState. As KeyboardState is used by the paragraph class, it is dened in Paragraph.h enum WordState {WS_EDIT, WS_MARK}; enum KeyboardState ... the text is empty, we just return index 0. Otherwise, we traverse the lines of the paragraph one by one in order to nd the correct line. Then we traverse the line in order to nd the...
Ngày tải lên: 12/08/2014, 21:20