visual c++ and mfc programming
... -> Copy Click Edit then click Copy View -> Toolbars -> Custom Click View position the mouse on Toolbars, and then click Custom Practical Learning: Launching Microsoft Visual C+ + ?? To start Microsoft ... E once Release Ctrl and Shift 20 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 1: Introduction to Visual C+ + One of the differences between Microsoft Visual C+ + and Microsoft Visual ... source file of the CMainFrame class, expand the class and double-click OnCreate to display its listing in the Code Editor: © FunctionX, Inc 25 Chapter 2: Introduction to MFC Visual C+ + and MFC...
Ngày tải lên: 31/05/2014, 13:48
... -> Copy Click Edit then click Copy View -> Toolbars -> Custom Click View position the mouse on Toolbars, and then click Custom Practical Learning: Launching Microsoft Visual C+ + ?? To start Microsoft ... E once Release Ctrl and Shift 20 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 1: Introduction to Visual C+ + One of the differences between Microsoft Visual C+ + and Microsoft Visual ... source file of the CMainFrame class, expand the class and double-click OnCreate to display its listing in the Code Editor: © FunctionX, Inc 25 Chapter 2: Introduction to MFC Visual C+ + and MFC...
Ngày tải lên: 06/08/2014, 17:20
... an accelerator item for the Child menu: To use the accelerator, change the program as follows: class CResFrame : public CFrameWnd { public: HACCEL m_hAccel; CResFrame() { m_hAccel = ::LoadAccelerators(AfxGetInstanceHandle(), ... MSVC To use a standard cursor and a standard icon, change the Exercise.cpp file as follows: CResFrame() { 94 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 3: Windows Resources HCURSOR ... } CMainApp theApp; 10 Test the application © FunctionX, Inc 99 Chapter 5: The Document/View Architecture 100 Visual C+ + and MFC Fundamentals © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 3 pptx
... pMainFrame; CCommandLineInfo cmdInfo; © FunctionX, Inc 155 Chapter 5: The Document/View Architecture Visual C+ + and MFC Fundamentals // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) ... CCommandLineInfo cmdInfo; 156 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 5: The Document/View Architecture // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) ... Graphical Device Interface 162 Visual C+ + and MFC Fundamentals © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 6: The Graphical Device Interface Chapter 6: The Graphical Device Interface...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 4 ppsx
... void CExerciseView::OnDraw(CDC* pDC) { CExerciseDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); char Artist[] = _T("Arsene Wendt"); char Producer[40]; © FunctionX, Inc 255 Chapter Strings Visual C+ + ... an example: void CExerciseView::OnDraw(CDC* pDC) { © FunctionX, Inc 257 Chapter Strings Visual C+ + and MFC Fundamentals CExerciseDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); char Make[] = "Ford ... pDC->MoveTo(0, 0); pDC->LineTo(120, 120); pDC->SelectObject(pnOld); pDC->SelectObject(brOld); } 248 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 10: Characteristics of a Window's Frame Chapter...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 5 doc
... WndCls.style = CS_VREDRAW | CS_HREDRAW; WndCls.lpfnWndProc = AfxWndProc; WndCls.cbClsExtra = 0; WndCls.cbWndExtra = 0; 286 © FunctionX, Inc Visual C+ + and MFC Fundamentals } WndCls.hInstance Chapter ... standard arrow is the most commonly used cursor IDC_CROSS The crosshair cursor is used in various circumstances such as drawing IDC_APPSTARTING IDC_HAND IDC_HELP IDC_IBEAM IDC_ICON IDC_NO IDC_SIZE ... WndClsEx.lpfnWndProc = WndProc; WndClsEx.cbClsExtra = 0; WndClsEx.cbWndExtra = 0; WndClsEx.hInstance = hInstance; WndClsEx.hIcon = LoadIcon(NULL, IDI_APPLICATION); WndClsEx.hCursor = LoadCursor(NULL, IDC_CROSS);...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 6 docx
... SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); ... Floating menu item and click Add Event Handler… Accept the Message type as COMMAND Accept the suggested Function Handler Name In the Class List, click CMainFrame then click Add and Edit Access the MainFrm.h ... Visual C+ + and MFC Fundamentals { public: enum { IDD = IDD_EXERCISE_DLG }; CExerciseDlg(); ~CExerciseDlg(); }; CExerciseDlg::CExerciseDlg() : CDialog(CExerciseDlg::IDD) { } CExerciseDlg::~CExerciseDlg()...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 7 pot
... CPropertyPage) ON_BN_CLICKED(IDC_BTN_CCALC, OnBnClickedBtnCcalc) ON_BN_CLICKED(IDC_BTN_ECALC, OnBnClickedBtnEcalc) END_MESSAGE_MAP() // CCircular message handlers void CCircular::OnBnClickedBtnCcalc() { // ... IMPLEMENT_DYNAMIC(CCircular, CPropertyPage) CCircular::CCircular() : CPropertyPage(CCircular::IDD) , m_szCircleRadius(_T("0.00")) , m_szCircleCircumference(_T("0.00")) , m_szCircleArea(_T("0.00")) ... 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect ); int x = (rect.Width() - cxIcon + 1)...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 8 pot
... reinterpret_cast(dc.GetSafeHdc()), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon ... Cfm.dwEffects ^= CFE_BOLD; m_Richer.SetSelectionCharFormat(Cfm); m_Richer.SetFocus(); 518 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 17: Track-Based Controls } void CRicher1Dlg::OnBnClickedBtnItalic() ... CFM_BOLD CFM_ITA LIC CFM_UNDERLINE CFM_STRIKEOUT CFM_SIZE CFM_CHARSET CFM_COLOR CFM_FACE CFM_OFFSET CFM_PROTECTED Used to Make the character(s) bold Italicize the character(s) Underline the character(s)...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 9 ppt
... IDC_RDO_CREAMOFCOCOA IDC_RDO_CHOCOLATE IDC_RDO_BUTTERPECAN IDC_RDO_CHUNKYBUTTER IDC_RDO_STRAWVAN IDC_RDO_CHOCOCOOKIES IDC_SCOOPS IDC_SCOOPS_ TWO IDC_SCOOPS_ THREE Caption &Vanilla &Cream of Cocoa ... #include "stdafx.h" #include "Clarksville Ice Scream1.h" #include "IceScreamOrderDlg.h" // CIceScreamOrderDlg dialog IMPLEMENT_DYNAMIC(CIceScreamOrderDlg, CDialog) CIceScreamOrderDlg::CIceScreamOrderDlg(CWnd* ... follows: Control Group Box Check Box Check Box Check Box Check Box Group Box Button Radio Button ID Ingredients IDC_CHK_REGULARS IDC_CHK_SWEETENER IDC_CHK_CHEESE IDC_CHK_BACON Don’t Care IDC_INGREDIENTS...
Ngày tải lên: 06/08/2014, 17:20
Visual C++ and MFC Fundamentals programming phần 10 doc
... Static Text Combo Box IDC_TRANSMISSION Group Box Check Box Check Box Check Box Check Box Check Box Check Box Picture IDC_AC IDC_AIR_BAGS IDC_CRUISE_CONTROL IDC_CONVERTIBLE IDC_CASSETTE IDC_CD_PLAYER ... Visual C+ + and MFC Fundamentals IDC_YEAR IDC_DOORS IDC_MILEAGE IDC_TRANSMISSION IDC_AC IDC_AIR_BAGS IDC_CRUISE_CONTROL IDC_CONVERTIBLE IDC_CASSETTE IDC_CD_PLAYER IDC_PICTURE Chapter 21: Tree and ... © FunctionX, Inc 661 Chapter 20: List-Based Controls Visual C+ + and MFC Fundamentals 16 Close it and return to MSVC 662 © FunctionX, Inc Visual C+ + and MFC Fundamentals Chapter 21: Tree and List...
Ngày tải lên: 06/08/2014, 17:20
Tài liệu OOP with Microsoft Visual Basic .NET and Microsoft Visual C# Step pptx
... class In the IDE, click the File menu, point to New, and then click Project The New Project dialog box opens Select Visual Basic Projects or Visual C# Projects in the Project Types tree, click ... classes in Visual Basic and Visual C# implicitly have Object as a base class Base classes are covered in Chapter 5, “Using Inheritance to Create Specialized Classes.” Creating the Library Class By ... a class to a project On the Project menu, click Add Class Or In Visual C# , right-click the project name in the Class View, point to Add, then click Add Class on the shortcut menu The Visual Basic...
Ngày tải lên: 10/12/2013, 14:16
Professional ASP.NET 3.5 in C# and Visual Basic Part 170 doc
... 1598 XmlDataSource control and, 308–309, 535–537 RssCacheDependency class, custom cache dependencies, 1083–1087 rules adding/removing ACL, 1163–1166 CSS See HTML and CSS design, CSS rules health ... (service-oriented architecture), 1360–1362 SOAP (Simple Object Access Protocol), caching responses, 1350–1351 1661 Index Evjen Evjen bindex.tex V1 - 01/28/2008 SOAP (Simple Object Access Protocol) ... notification, 221–222 Source view coding server controls in, 67 GridView control columns in, 331 HTML server controls in, 76–79 SourceSwitch, 1120–1121 Span tag, server controls, 1209 speci c culture...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 2 ppsx
... Substitution HttpCachePolicy and Client-Side Caching Caching Programmatically Data Caching Using the Cache Object Controlling the ASP.NET Cache Cache Dependencies Using the SQL Server Cache Dependency Enabling ... Using HttpContext.Current.Items for Very Short-Term Storage Summary 1060 1061 1063 1067 1069 Chapter 23: Caching 1071 Caching 1071 Output Caching Partial Page (UserControl) Caching Post-Cache Substitution ... When Connecting Web Parts 851 854 856 858 Summary 860 Chapter 18: HTML and CSS Design with ASP.NET 861 Caveats HTML and CSS Overview 862 862 Introducing CSS Creating Style Sheets CSS Rules CSS...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 3 pptx
... Features Detecting and Reacting to Browser Capabilities Using ViewState Raising PostBack Events Handling PostBack Data Composite Controls Templated Controls Creating Control Design-Time Experiences 1203 ... Sections Using the NameValueFileSectionHandler Object Using the DictionarySectionHandler Object Using the SingleTagSectionHandler Object Using Your Own Custom Configuration Handler 1411 1413 1414 1415 ... Internet, much of the application development focused on thick desktop applications These thick-client applications were used for everything from home computing and gaming to office productivity and more...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 4 potx
... own code-behind file to represent a single logical page ASP.NET 3.5 applications can include a \App_Code directory where you place your class’s source Any class placed here is dynamically compiled ... = connectionString Catch ex As Exception Label1.Text = "No connection string found." End Try End Sub C# protected void Page_Load(object sender, EventArgs e) { try { string connectionString = ConfigurationManager.ConnectionStrings["Northwind"] ... ConfigurationManager.ConnectionStrings["Northwind"] ConnectionString.ToString(); Label1.Text = connectionString; } catch (Exception) { Label1.Text = "No connection string found."; } } This little bit of code...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 5 ppsx
... understand basic programming constructs, such as variables, For Each loops, and object-oriented programming You may also be wondering whether this book is for the Visual Basic developer or the C# ... development projects Chapter 2, ‘‘ASP.NET Server Controls and Client-Side Scripts,’’ looks at the basics of working with server controls Chapter 3, ‘‘ASP.NET Web Server Controls,’’ covers the controls ... Chapter 18, ‘‘HTML and CSS Design with ASP.NET.’’: A lot of focus on building a CSS-based Web application was placed on Visual Studio 2008 This chapter takes a close look at how you can effectively...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 6 pdf
... ... classes enable you to separate your classes into multiple class files, which are then combined into a single class when the application is compiled Because ASP.NET 3.5 combines all this page code ... File check box is unchecked You can get at this dialog by right clicking the project or the solution in the Solution Explorer and selecting Add New Item (see Figure 1-6) From here, you can see...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 7 ppt
... references or members contained within the specified master page OutputCache Controls the output caching policies of a Page or user control Page Enables you to specify page speci c attributes and ... 01/28/2008 Chapter 1: Application and Page Frameworks Directive Description Reference Links a Page or user control to the current Page or user control Register Associates aliases with namespaces and class ... section of the web.config CodeFile References the code-behind file with which the page is associated CodeFileBaseClass Specifies the type name of the base class to use with the code-behind...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 8 doc
... Attribute Description CacheProfile Allows for a central way to manage an application’s cache profile Use the CacheProfile attribute to specify the name of the cache profile detailed in the web.config ... VirtualPath="~/Wrox.master" %> @OutputCache The @OutputCache directive controls the output caching policies of an ASP.NET page or user control This directive supports the ten attributes described in the following ... during which this page is to be stored in the system cache 23 Page 23 Evjen c0 1.tex V2 - 01/28/2008 Chapter 1: Application and Page Frameworks @Reference The @Reference directive declares that...
Ngày tải lên: 05/07/2014, 18:20