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

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

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

... CH12 4/ 27/00 12:30 PM Page 249 LISTING 12.5. CONTINUED 44 : m_ctlWidth.AddString((LPCTSTR)szStyle); 45 : if (szStyle.LoadString(IDS_WIDTH_VTHICK)) 46 : m_ctlWidth.AddString((LPCTSTR)szStyle); 47 : 48 : ... } 39: 40 : /////////////////////// 41 : // MY CODE ENDS HERE 42 : /////////////////////// 43 : 44 : if (!m_wndStatusBar.Create(this) || 45 : !m_wndStatusBar.SetIndicators(indi...

Ngày tải lên: 13/08/2014, 18:20

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

... the code as in Listing 4. 4. LISTING 4. 4. THE UPDATED OnInitDialog FUNCTION. 1: BOOL CTimersDlg::OnInitDialog() 2: { 3: CDialog::OnInitDialog(); 4: . 5: . 6: . 7: // TODO: Add extra initialization ... // Exit the application 40 : OnOK(); 41 : } 42 : else 43 : { 44 : // Set the cursor flag 45 : m_bCursor = TRUE; 46 : // Set the screen cursor 47 : SetCursor(lhCursor); 48 : } 4...

Ngày tải lên: 13/08/2014, 18:20

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

... } 14: } 15: else // We are running the thread 16: { 17: int iSpnr; 18: // Which spinner to use? 19: switch (nIndex) 20: { 21: case 0: 46 2 Day 18 0 24 31 240 -9 CH18 4/ 27/00 12:59 PM Page 46 2 LISTING ... 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...

Ngày tải lên: 13/08/2014, 18:20

80 240 0
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 4 pps

Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 4 pps

... ODBC programming much less complex. You used the MFC ODBC classes in Day 1, "Choosing the Right Database Technology," in Listing 1 .4. Teach Yourself Database Programming with Visual C++ 6 in 21 ... database client technologies in more depth in Days 14 -21. However, here is a brief explanation of each Teach Yourself Database Programming with Visual C+...

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

39 340 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 ... 21 63 4 Quiz 63 4 Exercises 63 4 APPENDIX CPRINTING AND PRINT PREVIEWING 63 7 Using the Framework’s Functionality 63 7 Using Default...

Ngày tải lên: 13/08/2014, 18:20

80 284 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 ... 31 240 -9 AAG Wk2 4/ 27/00 11:53 AM Page 148 Adding Flash—Incorporating Graphics, Drawing, and Bitmaps 169 8 LISTING 8.7. THE DrawRegion FUNCTION. 1: void CPaintDlg::DrawRegion(CPaintD...

Ngày tải lên: 13/08/2014, 18:20

80 289 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....

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: ... lNumLines; 4: int lCurLine; 5: // int nCurColor; 6: UINT nCurWidth; 7: CPoint pTo; 8: CPoint pFrom; 9: int cRed; 10: int cBlue; 11: int cGreen; 12: 41 4 Day 17 023 31 240 -9 CH...

Ngày tải lên: 13/08/2014, 18:20

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

... previous point to the current point 43 : rdc.MoveTo(m_iPrevX, m_iPrevY); 44 : rdc.LineTo(point.x, point.y); 45 : 46 : // Save the current point as the previous point 5 86 Appendix B 030 31 240 -9 APP B 4/ 27/00 ... GetDlgItem(IDC_RUNPGM)->ShowWindow(FALSE); 61 : GetDlgItem(IDC_STATICPGM)->ShowWindow(FALSE); 62 : } 63 : 64 : /////////////////////// 65 : // MY CODE ENDS HERE...

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(). ... Appendix B 030 31 240 -9 APP B 4/ 27/00 1:07 PM Page 62 4 Printing and Print Previewing 65 9 C Listing C.7 declares a CPrintDialog object dlgPrint at line 6 that takes three pa...

Ngày tải lên: 13/08/2014, 18:20

80 272 0
w