Teach Yourself Visual C++ 6 in 21 Days phần 2 pps
... and/or call default 4: 62 Day 3 LISTING 3 .6. CONTINUED 005 3 124 0-9 CH03 4 /27 /00 11:08 AM Page 62 Getting User Feedback—Adding Dialog Boxes to Your Application 91 5 LISTING 5 .2. THE OnFileopen FUNCTION. ... variables 76 Day 4 0 06 3 124 0-9 CH04 4 /27 /00 11:09 AM Page 76 22 : // Load the I beam cursor 23 : lhCursor = AfxGetApp()->LoadStandardCursor(IDC_IBEAM); 24 : 25 : /...
Ngày tải lên: 13/08/2014, 18:20
... the effect of setting it to be as wide as the combo box that you are going to create. 26 2 Day 12 0 16 3 124 0-9 CH 12 4 /27 /00 12: 30 PM Page 26 2 Adding Toolbars and Status Bars 24 7 12 For example, for ... as shown in Listing 12. 4. Once you add these two lines, save the file, exit Notepad, and restart Visual C++, reloading the project. 0 16 3 124 0-9 CH 12 4 /27 /00 12:...
Ngày tải lên: 13/08/2014, 18:20
... running the thread 16: { 17: int iSpnr; 18: // Which spinner to use? 19: switch (nIndex) 20 : { 21 : case 0: 4 62 Day 18 024 3 124 0-9 CH18 4 /27 /00 12: 59 PM Page 4 62 LISTING 18 .20 . THE MODIFIED CTaskingDoc ... use? 25 : switch (nIndex) 470 Day 18 024 3 124 0-9 CH18 4 /27 /00 12: 59 PM Page 470 Doing Multiple Tasks at One Time––Multitasking 463 18 22 : iSpnr = 1; 23 : break;...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 1 pptx
... 61 2 Day 12 61 4 Quiz 61 4 Exercises 61 5 Day 13 61 6 Quiz 61 6 Exercise 61 7 Day 14 62 0 Quiz 62 0 Exercise 62 1 Day 15 62 3 Quiz 62 3 Exercise 62 4 Day 16 625 Quiz 62 5 Exercises 62 5 Day 17 62 6 Quiz 62 6 Exercises ... 594 Day 6 5 96 Quiz 5 96 Exercises 5 96 Day 7 597 Quiz 597 Exercises 598 Day 8 60 2 Quiz 60 2 Exercises 60 2 Day 9 60 4 Quiz 60 4 Exerc...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 3 doc
... m_crColors[iColor]); 20 : CBrush lNullBrush(RGB(1 92, 1 92, 1 92) ); 21 : 22 : // Calculate the size of the drawing regions 23 : CRect lRect; 24 : GetClientRect(lRect); 25 : lRect.NormalizeRect(); 26 : int liVert ... do this, add the two lines starting at line 21 in Listing 8.8 to the OnPaint function. LISTING 8.8. THE MODIFIED OnPaint FUNCTION. 1: void CPaintDlg::OnPaint() 2:...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 5 doc
... DoDataExchange function in the view class, CDbOdbcView, into the editor, and add lines 4 through 6 and lines 26 through 28 to the function, as shown in Listing 14 .2. LISTING 14 .2. THE CDbOdbcView ... find that the records are restored back to the state that you originally entered them, as in Figure 13.4. 310 Day 13 017 3 124 0-9 CH13 4 /27 /00 12: 52 PM Page 310 LISTING 13 .22...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 6 ppsx
... 0, 25 5, 0), // Green 20 : RGB( 0, 25 5, 25 5), // Cyan 21 : RGB( 25 5, 0, 0), // Red 22 : RGB( 25 5, 0, 25 5), // Magenta 23 : RGB( 25 5, 25 5, 0), // Yellow 24 : RGB( 25 5, 25 5, 25 5) // White 25 : }; 26 : 27 : ... Create a new drawing 20 : ModArtNewDrawing(lWndRect, &m_oaLines); 21 : } 22 : 23 : return TRUE; 24 : } 424 Day 17 023 3 124 0-9 CH17 4 /27 /00 12...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 8 ppt
... farm_house::get(void) 19: { 20 : return pig_values; 21 : } 22 : 23 : int main() 24 : { 25 : farm_house pig1, pig2, pig3; 26 : 27 : 28 : pig1.set( 12) ; 29 : pig2.set(13); 30: pig3.set(14); 31: 32: cout << ... Draw a line from the previous point to the current point 22 : dc.MoveTo(m_iPrevX, m_iPrevY); 23 : dc.LineTo(point.x, point.y); 24 : 25 : // Save the current point...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 9 pot
... you’d definitely find this technique useful in speeding up the printing. 65 6 Appendix C USING COORDINATES FROM OnBeginPrinting() You might be tempted to also store the coordinates from OnBeginPrinting(). ... print rectangle from the pInfo if (pInfo) m_rcPrintRect = pInfo->m_rectDraw; 64 2 Appendix C 031 3 124 0-9 APP C 4 /27 /00 1:08 PM Page 64 2 LISTING B .29 . CONTINUED 5: #inc...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 10 docx
... user inter- faces) combo boxes creating, 26 0 - 26 6 event handling, 26 7 - 26 8 placeholders, 26 2 populating, 26 4 positioning, 26 3 resource files, 25 7- 26 0 sizing, 2 76 styles, 26 3 - 26 4 updating, 26 8 -27 0 menus, ... 26 3 - 26 4 event handling CMainFrame message map, 26 7 - 26 8 OnSelChangeWidth function, 26 7 placeholders, 26 2 populating, 26 4 positioning, 26 3 re...
Ngày tải lên: 13/08/2014, 18:20