Teach Yourself Visual C++ 6 in 21 Days phần 10 docx

Teach Yourself Visual C++ 6 in 21 Days phần 10 docx

Teach Yourself Visual C++ 6 in 21 Days phần 10 docx

... class, 67 1 -67 2 cascading menus, 1 06 CAsyncSocket class, see sockets catch keyword, 66 3 -66 4 catching exceptions, 66 1 -66 6 blanket exception catch, 66 5 catch keyword, 66 3 -66 4 multiple exceptions, 66 4 -66 5 try ... user inter- faces) combo boxes creating, 260 - 266 event handling, 267 - 268 placeholders, 262 populating, 264 positioning, 263 resource files, 257- 260 si...
Ngày tải lên : 13/08/2014, 18:20
  • 72
  • 286
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 1 pptx

Teach Yourself Visual C++ 6 in 21 Days phần 1 pptx

... 9 60 4 Quiz 60 4 Exercise 60 4 Day 10 60 5 Quiz 60 5 Exercise 60 6 Day 11 61 2 Quiz 61 2 Exercise 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 ... EndDoc() 65 9 Using StartPage() and EndPage() 66 0 APPENDIX DUNDERSTANDING AND EXCEPTION HANDLING 66 1 Using Exceptions 66 1 Running Code and Catching...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 284
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 2 pps

Teach Yourself Visual C++ 6 in 21 Days phần 2 pps

... shortcuts (accelerators) and hotkeys were added. 1 06 Day 6 008 31240-9 CH 06 4/27/00 11: 46 AM Page 1 06 The other thing to notice is that you declared a single integer variable for the one radio button ... AM Page 66 To implement this additional functionality, perform the following steps: 1. Edit the OnInitDialog function, updating the code as in Listing 4.4. LISTING 4.4. THE UPDA...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 339
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 3 doc

Teach Yourself Visual C++ 6 in 21 Days phần 3 doc

... 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: { 3: CPaintDC dc(this); // device ... WM_PAINT mes- sage on the second dialog class, adding the code in Listing 8 .6 to the function created in your class. LISTING 8 .6. THE OnPaint FUNCTION. 1: void CPaintDlg::OnPaint(...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 289
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 4 pps

Teach Yourself Visual C++ 6 in 21 Days phần 4 pps

... functions as in Listing 10. 22. Edit the remaining menu func- tions in the same way, substituting their menu IDs for ID_COLOR_BLUE. LISTING 10. 22. THE BLUE MENU FUNCTIONS. 1: void CDay10Doc::OnColorBlue() 2: ... m_wndColorBar.EnableDocking(CBRS_ALIGN_ANY); 62 : 63 : /////////////////////// 64 : // MY CODE ENDS HERE 65 : /////////////////////// 66 : 67 : EnableDocking(CBRS_ALIGN_A...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 268
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 5 doc

Teach Yourself Visual C++ 6 in 21 Days phần 5 doc

... designing the main form in your sample application, lay out the main form as shown in Figure 14.7, and configure the controls with the properties specified in Table 14 .6. continues TABLE 14 .6. CONTROL ... 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. LISTIN...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 249
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 6 ppsx

Teach Yourself Visual C++ 6 in 21 Days phần 6 ppsx

... be used in the drawing, as in line 41 of Listing 16. 16. LISTING 16. 16. THE MODIFIED CModArt NewLine FUNCTION. 1: void CModArt::NewLine() 2: { 3: int lNumLines; 4: int lCurLine; 5: // int nCurColor; 6: ... NewDrawing function in the drawing class, increasing the modulus value in line 7 of the function, as in Listing 16. 15. This will increase the number of pos- sible squiggles...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 217
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 7 pps

Teach Yourself Visual C++ 6 in 21 Days phần 7 pps

... thread, as shown in Listing 18 .21. LISTING 18 .21. THE MODIFIED CTaskingDoc SuspendSpinner FUNCTION. 1: void CTaskingDoc::SuspendSpinner(int nIndex, BOOL bSuspend) 2: { 3: // if suspending the thread 4: ... running the thread 16: { 17: int iSpnr; 18: // Which spinner to use? 19: switch (nIndex) 20: { 21: case 0: 462 Day 18 024 31240-9 CH18 4/27/00 12:59 PM Page 462 LISTING 18.20. THE...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 240
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 8 ppt

Teach Yourself Visual C++ 6 in 21 Days phần 8 ppt

... farm_house 6: { 7: int pig_values; 8: public: 9: void set(int input); 10: int get(void); 11: }; 12: 13: void farm_house::set(int input) 14: { 15: pig_values = input; 16: } 17: 18: int farm_house::get(void) 19: ... Variables In all of the preceding examples, the variables have been declared at the beginning of the program, prior to defining the main() function. Declaring variables in...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 230
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 9 pot

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(). ... CPrintItView::OnPreparePrinting(CPrintInfo* pInfo) { // default preparation return DoPreparePrinting(pInfo); } By default, the DoPreparePrinting() function is called and passed the pI...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 272
  • 0

Xem thêm