Ivor Horton’s Beginning Visual C++ 2005 phần 7 doc
... Take a look at some of the features of CPen and CBrush objects. 71 7 Drawing in a Window 17_ 571 974 ch14.qxp 1/20/06 11:22 PM Page 71 7 Mapping Mode Description MM_ANISOTROPIC This mode is similar ... CElement class. The stdafx.h file was included in this file to make 73 7 Drawing in a Window 17_ 571 974 ch14.qxp 1/20/06 11:22 PM Page 73 7 the cursor position when the left mouse butto...
Ngày tải lên: 13/08/2014, 18:20
... = 0; // De-select element GetDocument()->UpdateAllViews(0); // Redraw all the views } else { CSketcherDoc* pDoc = GetDocument();// Get a document pointer if(pDoc->GetElementType() == TEXT) { CTextDialog ... GetDocSize() { return m_DocSize; } // Retrieve the document size You must initialize the m_DocSize member in the constructor for the document, so modify the imple- mentation of CSke...
Ngày tải lên: 13/08/2014, 18:20
... Services Inc. 01_ 571 974 ffirs.qxp 1/20/06 11:22 PM Page v Ivor Horton’s Beginning Visual C++ ® 2005 01_ 571 974 ffirs.qxp 1/20/06 11:22 PM Page i Ivor Horton’s Beginning Visual C++ ® 2005 Published ... Class 77 7 Exercising the CCurve Class 77 8 Creating the Document 77 9 Using a CTypedPtrList Template 77 9 Implementing the Document Destructor 78 0 Drawing the D...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 2 pot
... to false 1 17 Decisions and Loops 06_ 571 974 ch03.qxp 1/20/06 11:18 PM Page 1 17 3 Decisions and Loops In this chapter, you will look at how to add decision-making capabilities to your C++ programs. You’ll ... course, the sign bit is not repeated and zeros appear. 87 Data, Variables, and Calculations 05_ 571 974 ch02.qxp 1/20/06 11:34 PM Page 87 You could also have a using directive f...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 3 pptx
... | 60 | 66 | 72 | 7 | 7 | 14 | 21 | 28 | 35 | 42 | 49 | 56 | 63 | 70 | 77 | 84 | 8 | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 9 | 9 | 18 | 27 | 36 | 45 | 54 | 63 | 72 | 81 | 90 ... Pointers 07_ 571 974 ch04.qxp 1/20/06 11:46 PM Page 223 Here’s how you could search an entire array: array<int>^ values = { 23, 45, 68, 94, 123, 1 27, 150, 203, 299}; int toBeFound...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 4 potx
... pointer to a type that you have defined yourself makes no difference. 370 Chapter 7 10_ 571 974 ch 07. qxp 1/20/06 11:44 PM Page 370 This is fine for simple classes such as CBox, but for many classes ... way. Value classes are intended to be used to represent simple objects 374 Chapter 7 10_ 571 974 ch 07. qxp 1/20/06 11:44 PM Page 374 because this avoids the copying of the whole st...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 5 pot
... base class members are inherited in a derived class. 475 Class Inheritance and Virtual Functions 12_ 571 974 ch09.qxp 1/20/06 11:33 PM Page 475 error C2248: ‘m_Length’: cannot access protected member ... class CCandyBox, so that the class definition is as follows: 479 Class Inheritance and Virtual Functions 12_ 571 974 ch09.qxp 1/20/06 11:33 PM Page 479 virtual String^ ToString() overri...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 6 pot
... 48 6F 72 74 6F 6E {1 17} normal block at 0x00355930, 7 bytes long. Data: <Horton > 48 6F 72 74 6F 6E 00 {116} normal block at 0x003558F8, 5 bytes long. Data: < ;Ivor > 49 76 6F 72 00 Object ... are is a task in itself. This is where Visual C++ 2005 makes the life of the 6 17 Windows Programming Concepts 14_ 571 974 ch11.qxp 1/20/06 11:46 PM Page 6 17 To set the lea...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 9 pptx
... CCustomerView::OnInitialUpdate() { BeginWaitCursor(); CDBSampleDoc* pDoc = static_cast<CDBSampleDoc*>(GetDocument()); 970 Chapter 19 22_ 571 974 ch19.qxp 1/20/06 11:34 PM Page 970 Understanding Recordsets You can look ... _T( “DSN=Northwind; DBQ=D:\\Beg Visual C++ 2005\ \Model Access DB\\Northwind.mdb; DriverId=25; FIL=MS Access; MaxBufferSize=2048; PageTimeout=5; UID=admin;”);...
Ngày tải lên: 13/08/2014, 18:20
Ivor Horton’s Beginning Visual C++ 2005 phần 10 pot
... Copyright Ivor Horton”, L”About A Winning Application”, MessageBoxButtons::OK, MessageBoxIcon::Exclamation); } 1 075 Applications Using Windows Forms 24_ 571 974 ch21.qxp 1/20/06 11: 47 PM Page 1 075 System::Void ... control dis- plays the page at the URL that was entered. 10 87 Applications Using Windows Forms 24_ 571 974 ch21.qxp 1/20/06 11: 47 PM Page 10 87 now open the Properties...
Ngày tải lên: 13/08/2014, 18:20