Teach Yourself Visual C++ 6 in21 Days phần 3 docx

Teach Yourself Visual C++ 6 in21 Days phần 3 docx

Teach Yourself Visual C++ 6 in21 Days phần 3 docx

... “Midwest”; 26: break; 27: case 3: 28: // 3 - Northeast region 29: lsStr = “Northeast”; 30 : break; 31 : default: 32 : // 4 - Southeast region 33 : lsStr = “Southeast”; 34 : break; 35 : } 36 : break; 37 : case ... - 10; 30 : CRect lDrawRect; 31 : CPen *lOldPen; 32 : CBrush *lOldBrush; 33 : int i; 34 : // Loop through all of the brushes and pens 35 : for (i = 0; i < 7; i++...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 239
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 7 docx

Teach Yourself Visual C++ 6 in21 Days phần 7 docx

... = 1; 29: break; 30 : case 1: 31 : iSpnr = 3; 32 : break; 33 : } 34 : // Start the thread, passing a pointer to the spinner 35 : m_pSpinThread[nIndex] = AfxBeginThread(ThreadFunc, 36 : (LPVOID)&m_cSpin[iSpnr]); 37 : ... INFINITE); 13: } 14: } 15: else // We are running the thread 16: { 17: int iSpnr; 18: // Which spinner to use? 19: switch (nIndex) 20: { 21: case 0: 462 Day 18...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 302
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 1 pdf

Teach Yourself Visual C++ 6 in21 Days phần 1 pdf

... Teach Yourself Visual C++ 6 in 21 Days 000 31 240-9 FM 4/27/00 11:02 AM Page vi Overview Introduction 1 WEEK 1 AT A GLANCE 5 Day 1 The Visual C++ Development Environment—Building Your First Visual ... Debugger and Profiler 67 7 F Using MFC’s Helper Classes 69 9 Index 731 000 31 240-9 FM 4/27/00 11:02 AM Page iv Sams Teach Yourself Visual C++ ® 6 in 21 Days...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 374
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 2 pot

Teach Yourself Visual C++ 6 in21 Days phần 2 pot

... AfxGetApp()->LoadStandardCursor(IDC_WAIT); 29: 30 : // Is the character “X” 31 : if (lsChar == ‘X’) 32 : { 33 : // Load the arrow cursor 34 : lhCursor = AfxGetApp()->LoadStandardCursor(IDC_ARROW); 35 : // Set the cursor flag 36 : m_bCursor ... IDC_APPSTARTING • IDC_HELP 66 Day 3 005 31 240-9 CH 03 4/27/00 11:08 AM Page 66 Static Text ID IDC_STATIC Caption Count: Static Tex...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 301
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 4 potx

Teach Yourself Visual C++ 6 in21 Days phần 4 potx

... Toolbar 61 : m_wndColorBar.EnableDocking(CBRS_ALIGN_ANY); 62 : 63 : /////////////////////// 64 : // MY CODE ENDS HERE 65 : /////////////////////// 66 : 67 : EnableDocking(CBRS_ALIGN_ANY); 68 : DockControlBar(&m_wndToolBar); 69 : ... nHeight; 30 : 31 : // Create the combo box 32 : m_ctlWidth.Create(WS_CHILD | WS_VISIBLE | WS_VSCROLL | 33 : CBS_DROPDOWNLIST, rect, &m_wndCo...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 251
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 5 potx

Teach Yourself Visual C++ 6 in21 Days phần 5 potx

... } 22: 23: /////////////////////// 24: // MY CODE ENDS HERE 25: /////////////////////// 26: 27: CDocument::DeleteContents(); 28: } 30 2 Day 13 017 31 240-9 CH 13 4/27/00 12:52 PM Page 30 2 The reason ... record 11: m_pSet->MovePrev(); 12: // Update the form 13: UpdateData(FALSE); 14: } 15: } 33 4 Day 14 018 31 240-9 CH14 4/27/00 12: 53 PM Page 33 4 At a Glance For the third a...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 220
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 6 ppsx

Teach Yourself Visual C++ 6 in21 Days phần 6 ppsx

... 31 240-9 CH 16 4/27/00 12: 56 PM Page 3 86 LISTING 17.7. CONTINUED 36 : // nCurColor = rand() % 8; 37 : cRed = rand() % 2 56; 38 : cBlue = rand() % 2 56; 39 : cGreen = rand() % 2 56; 40: // Determine the ... giving him the 62 : // bad news 63 : AfxMessageBox(“Out of memory”, MB_ICONSTOP | MB_OK); 64 : // Did we create a line object? 65 : if (pLine) 66 : { 67 : // Delete it...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 205
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 8 potx

Teach Yourself Visual C++ 6 in21 Days phần 8 potx

... another 029 31 240-9 App A 4/27/00 1: 06 PM Page 554 Answers 5 83 B 33 : } 34 : 35 : void CDay2Dlg::OnCkshwpgm() 36 : { 37 : // TODO: Add your control notification handler code here 38 : 39 : /////////////////////// 40: ... A.12. LISTING A.12. Class3.cpp. 1: // Workspace Name: Class3 2: // Program Name: Class3.cpp 3: #include <iostream.h> 566 Appendix A 029 31 240-9 App A...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 212
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 9 ppsx

Teach Yourself Visual C++ 6 in21 Days phần 9 ppsx

... // Enable the button if busy 6: pCmdUI->Enable(GetBusy()); 7: } 63 6 Appendix B 030 31 240-9 APP B 4/27/00 1:07 PM Page 63 6 Understanding and Exception Handling 66 5 D 17: } 18: catch(CResourceException* ... dcPrint.TextOut(0,0,”My Small Print Job”); 31 : 32 : // ** Throw the page 33 : dcPrint.EndPage(); 34 : 35 : // ** Close the document 36 : dcPrint.EndDoc(); 37 : } 38 :...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 242
  • 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

... 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 15 62 3 Quiz 62 3 Exercise 62 4 Day ... Page 12 Quiz 63 1 Exercises 63 1 Day 20 63 2 Quiz 63 2 Exercises 63 3 Day 21 63 4 Quiz 63 4 Exercises 63 4 APPENDIX CPRINTING AND PRINT PREVI...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 284
  • 0