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

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

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

... RED = RGB( 255 , 0, 0); const COLORREF BROWN = RGB( 255 , 128, 0); const COLORREF TURQUOISE = RGB(0, 255 , 255 ); const COLORREF GREEN = RGB(0, 255 , 0); const COLORREF BLUE = RGB(0, 0, 255 ); const COLORREF ... 0, 255 ); const COLORREF PURPLE = RGB( 255 , 0, 255 ); const COLORREF YELLOW = RGB( 255 , 255 , 0); The Red Figure The red gure is one large square, built up by four regular square...
Ngày tải lên : 12/08/2014, 21:20
  • 43
  • 309
  • 0
Microsoft Visual C++ Windows Applications by Example phần 2 doc

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

... of the application. In C++, an object is dened by its class. A class can be considered a blueprint for one or more objects with the same features. A class is dened by methods and elds. A ... 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 #define SY...
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* ... messages in Windows. Here follows a table with the most common ones. Note that we do not have to catch every message. We just catch those we are interested in, the rest...
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

... line to 5 millimeters and the height of a page to 50 millimeters. RingView.cpp void CRingView::OnInitialUpdate() { CScrollView::OnInitialUpdate(); CSize sizeTotal; CSize sizeLine (50 0, 50 0); ... application was stored in the registry. Finally, we saved and loaded the rings by using Serialization. • • • • • • Chapter 6 [ 155 ] The View Class CTetrisView is the view class of the a...
Ngày tải lên : 12/08/2014, 21:20
  • 43
  • 381
  • 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
  • 357
  • 0
Microsoft Visual C++ Windows Applications by Example phần 7 pptx

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

... Calc Application [ 252 ] This is a good start, but there are a few problems. Let us test if the string "1 * 2 + 3" is accepted by the grammar. We can test that by doing a derivation, ... EOL 1 4 2 Chapter 8 [ 2 85 ] 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 Eva...
Ngày tải lên : 12/08/2014, 21:20
  • 43
  • 295
  • 0
Microsoft Visual C++ Windows Applications by Example phần 8 ppsx

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

... 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 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
  • 43
  • 349
  • 0
Microsoft Visual C++ Windows Applications by Example phần 9 doc

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

... and height are 21,600 and 27,900 logical units. The paper has, however, a margin of 25 millimeters, or 2 ,50 0 logical units, which implies that the actual width and height are the dimensions ... utility classes Font and Set from Chapter 5 Utility Classes and Line from this chapter. ParagraphPtrArray holds an array of pointers to paragraphs. It is used by the document class. A paragr...
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

... 128 position class, MFC application position.cpp 334, 3 35 position.h 333, 334 preprocessor tool 45- 47 private 50 protected 50 public 50 pure virtual method 51 R RectangleFigure class, draw application RectangleFigure.cpp ... 146 document class 147- 155 gure class 162-167 gure information 167 square class 146 view class 155 TextFigure class, draw application TextFigure.cpp 178-2...
Ngày tải lên : 12/08/2014, 21:20
  • 47
  • 325
  • 0

Xem thêm

Từ khóa: