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

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 [ ... AfxGetApp()->WriteProfileInt(TEXT(“Ring”), TEXT(“Color”), m_nextColor); } Ring: A Demonstration Example [ 1 14 ] RingView.cpp void CRingView::OnInitialUpdate() { CScrollView::On...

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

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

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

... 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, where we start with the start symbol (Formula) and apply ... EOL 1 2 + 4 Expression* Expression + Expression EOL VALUE(1)* Expression + Expression EOL 9 9 9 VALUE(1)* VALUE(2) + Expression EOL VALUE(1)* VALUE(2) + VALUE(3) EOL The derivation can be il...

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

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

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

... or 3" << endl; break; // } Introduction to C++ [ 44 ] cout << endl; } void main() { int numberArray[] = {1, 2, 3, 4, 5}; int iArraySize = sizeof numberArray / sizeof numberArray[0]; ... ApplyArray(numberArray, iArraySize, Double);//2 ,4, 6,8,10 PrintArray(numberArray, iArraySize); // Squares every value in the array. ApplyArray(numberArray, iArraySize, Square);/...

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 5 pot

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

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 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

... m_psLastMark = m_psEdit; } } Chapter 9 [ 347 ] If 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 ... 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 Keybo...

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 CDrawView.cpp 2 34, 236 CDrawView.h 233 view class, MFC application CWordView.cpp 393 -40 8 CWordView.h 391 visual studio about 88, 89 Application Wizard 88 W windows development coordinate system 93, 94 cursor ... lists about 66 example 66-70 STL 127 streams ifstream 82 istream 82 ofstream 82 osstream 82 struct 50 subclass 50 T templates about 77, 78 example 78-80 tetris...

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

47 325 0
w