Microsoft Visual C++ Windows Applications by Example phần 8 ppsx

Microsoft Visual C++ Windows Applications by Example phần 8 ppsx

Microsoft Visual C++ Windows Applications by Example phần 8 ppsx

... TRUE; } Chapter 8 [ 289 ] TSetMatrix.cpp Similar to the CellMatrix case, Get comes in two forms. It returns a pointer to the target set indicated by the given row and column or by the given reference. ... cells one by one. We start by dening 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 c...

Ngày tải lên: 12/08/2014, 21:20

43 349 0
Microsoft Visual C++ Windows Applications by Example phần 2 doc

Microsoft Visual C++ Windows Applications by Example phần 2 doc

... Finally, we can include and exclude certain parts of the code by conditional programming. • • • • • • • • Introduction to C++ [ 28 ] In the examples above, it is not strictly necessary to surround ... perform conditional programming by checking the value of macros. In the following example, we dene a system integer according to the underlying operating system. #ifdef WINDOWS #de...

Ngày tải lên: 12/08/2014, 21:20

43 327 0
Microsoft Visual C++ Windows Applications by Example phần 3 pdf

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* ... and load document data by the means of Serialization. • • • • • • • Chapter 3 [ 89 ] When the rst version of MFC was released, there was no standard logical type in C+...

Ngày tải lên: 12/08/2014, 21:20

43 781 0
Microsoft Visual C++ Windows Applications by Example phần 4 pptx

Microsoft Visual C++ Windows Applications by Example phần 4 pptx

... 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 other applications support the multiple document interface, they have one document class object and zero or more view class objects. The following screenshot depicts a classic e...

Ngày tải lên: 12/08/2014, 21:20

43 381 0
Microsoft Visual C++ Windows Applications by Example phần 5 pot

Microsoft Visual C++ Windows Applications by Example phần 5 pot

... FigurePtrArray; The Draw Application [ 188 ] And that cyMouse cxMouse cyLine cxLine - = 0. Let us allow for a small tolerance, say that the user is allowed to miss the line by a millimeter. If we reuse ... 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...

Ngày tải lên: 12/08/2014, 21:20

43 309 0
Microsoft Visual C++ Windows Applications by Example phần 6 docx

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

43 358 0
Microsoft Visual C++ Windows Applications by Example phần 7 pptx

Microsoft Visual C++ Windows Applications by Example phần 7 pptx

... Chapter 8 [ 283 ] m_stInput.TrimRight(TEXT('.')); break; case CELL_FORMULA: m_stInput = TEXT("=") + m_syntaxTree.ToString(); break; } } The method EditEnd is called by the ... EOL 1 4 2 Chapter 8 [ 285 ] The method EvaluateValue is called when some of the source cell of the call has been altered. If the cell holds a formula, its value is evaluated by calling...

Ngày tải lên: 12/08/2014, 21:20

43 295 0
Microsoft Visual C++ Windows Applications by Example phần 9 doc

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 dened in Paragraph.h enum WordState {WS_EDIT, WS_MARK}; enum KeyboardState ... (PAGE_TOTALWIDTH–2*PAGE_MARGIN); static const int PAGE_HEIGHT=(PAGE_TOTALHEIGHT–2*PAGE_MARGIN); The Word Application [ 3 68 ] { case VK_LEFT: ShiftLeftArrowKey(); break; case VK_RIGH...

Ngày tải lên: 12/08/2014, 21:20

43 360 0
Microsoft Visual C++ Windows Applications by Example phần 10 ppt

Microsoft Visual C++ Windows Applications by Example phần 10 ppt

... application CWordView.cpp 393-4 08 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 ... application cell 2 68 cell.cpp 275- 285 cell.h 270-274 CellMatrix.cpp 287 CellMatrix.h 286 CellMatrix class 286 TSetMatrix.cpp 289 -291 TSetMatrix.h...

Ngày tải lên: 12/08/2014, 21:20

47 325 0
w