您好,欢迎光临本网站![请登录][注册会员]  
文件名称: VC++ 6.0 - Advanced MFC Programming
  所属分类: C++
  开发工具:
  文件大小: 1mb
  下载次数: 0
  上传时间: 2009-03-06
  提 供 者: wug***
 详细说明: 目录 TOOL BAR AND DIALOG BAR 1.1. Adding an Extra Docking Tool Bar Default Tool Bar Tool Bar Implementation Message Mapping Adding New Tool Bar Resource Declaring New Member Variable Creating New Tool Bar Command Message Mapping 1.2. Imitating the Behavior of Radio Buttons Radio Button & Check Box Sample 1.3. Check Box Implementation Using Boolean Type Variables Function CButton::SetButtonInfo(…) 1.4. Message Mapping for a Contiguous Range of Command IDs Contiguous IDs Modifying an ID 1.5. Fixing the Size of Tool Bar 1.6. Add ing Combo Box to Tool Bar 1.7. Modifying the Default Styles of Tool Bar 1.8. Dialog Bar 1.9. Resizable Dialog Bar Deriving New Class from CDialogBar Resizing Edit Control Dynamic Layout Using the New Class 1.10. Adding Flyby and Tool Tip 1.11. Toggling Control Bars On/Off Summary: MENU 2.1 Message WM_COMMAND and UPDATE_COMMAND_UI Handling WM_COMMAND Command Enabling & Disabling a Command Changing Menu Text iii Checking a Menu Item 2.2 Right Click Pop Up Menu Adding Menu Resource Trapping Right Button Clicking Event Using Class CMenu Implementing Right-Click Menu Message Mapping for Right-Click Menu 2.3 Updating Menu Dynamically Menu Struture Inserting and Removing Menu Item Sample Implementation 2.4 Bitmap Check 2.5 System Menu and Bitmap Menu Item System Menu Bitmap Menu Item New Functions Menu Modification Message Mapping for System Command 2.6 Owner-Draw Menu Overriding Two Functions Drawing a Bitmap Deriving a New Class from CMenu Overriding Function CMenu::MeasureItem(…) Overriding Function CMenu::DrawItem(…) Using the New Class 2.7 Changing the Whole Menu Dynamically Summary SPLITTER WINDOW 3.1 Implementing Static Splitter Windows 3.2 Dynamic Splitter Window 3.3 Customizing the Behavior of Split Bar Splitter Window Layout Overriding CSplitterWnd::DeleteRow(…) and CSplitterWnd:: DeleteColumn(…) Using the New Class 3.4 Customizing the Default Appearance Drawing Functions Sample 3.5 Splitter Window That Can’t be Resized by Tracking Summary BUTTONS 4.1 Bitmap Button: Automatic Method Button States Owner-Draw Bitmap Button Automatic Method Sample 4.2 Bitmap Check Box and Radio Button: Method 1 4.3 Subclass Implementing Subclass Bitmap Button 4.4 Bitmap Check Box and Radio Button: Method 2 4.5 Irregular Shape Bitmap Button Transparent Background New Class Overriding Function CBitmapButton::LoadBitmaps(…) Overriding Function CBitmapButton::AutoLoad(…) Overriding Function CBitmapButton::DrawItem(…) Using Class MCBitmapButton 4.6 Making Button Aware of Mouse Position Trapping Message WM_LBUTTONUP within Button User-Defined Message Sample 4.7 Mouse Sensitive Button Setting Capture New Class Implementation Summary COMMON CONTROLS 5.1 Spin Control Using Spin Control with Edit Box 5.2 Customizing the Properties of Spin Control 5.3 Displaying Text Strings in the Buddy Window 5.4 Bitmap Button Buddy 5.5 Slider Including Slider Control in the Application Handling Slider Related Messages 5.6 List Box 5.7 Handling List Box Messages v Trapping Double Clicking Message Retrieving the Contents of an Item Message WM_DESTROY 5.8 Combo Box Implementing Combo Boxes Handling Messages CBN_CLOSEUP and CBN_SELCHANGE 5.9 Trapping RETURN key strokes for the Combo Box Problem & Workaround Function CWnd::PreTranslateMessage(…) Accessing the Edit Box of a Combo Box 5.10 Implementing Subclass for the Edit Box of a Combo Box Designing New Classes Implementing Subclass 5.11 Owner Draw List Box and Combo Box Owner-Draw Styles Preparing Bitmaps Identifying Item Types Handling Message WM_MEASUREITEM Handling Message WM_DRAWITEM 5.12 Tree Control Image List Adding Nodes Sample 5.13 Handling Tree Control Messages Handling TVN_ITEMEXPANDING to Change a Node’s Associated Image Handling TVN_ENDLABELEDIT to Enable Label Editing Using the New Class 5.14 Drag-n-Drop Handling New Messages New Member Variables and Functions Node Copy TVN_BEGINDRAG WM_MOUSEMOVE WM_LBUTTONUP 5.15 List Control LV_COLUMN and LV_ITEM Sample Creating Image Lists Creating Columns Creating Sub-items Changing List Style Dynamically 5.16 Tab Control Using Tab Control Handling Tab Control Message 5.17 Animate Control and Progress Control vi Using Animate Control and Progress Control Timer Custom Resource Sample Implementation Summary: DIALOG BOX 6.1 Modeless Dialog Box Modal and Modeless Dialog Box Sample 6.2 Property Sheet 6.3 Modeless Property Sheet 6.4 Sizes Initial Size Dialog Box Unit Tracking Size and Maximized Size Sample 6.5 Customizing Dialog Box Background Background Drawing Sample Changing the Background of Common Controls Stock Objects Text Foreground and Background 6.6 Resizing the Form View Coordinates Conversion Sample 6.7 Tool Tips Tool Tip Implementation Sample 6.8 Tool Bar and Status Bar in Dialog Box Frame Window Flyby Related Messages Tool Bar Resource Status Bar Adding Control Bars to Dialog Box Resizing the Client Area to Accommodate Control Bars Tool Tip and Flyby Implementation Implementing Control Bars for Dialog Boxes Implemented in SDI or MDI Applications Problem Work Around Overriding CToolBar::OnTimer(…) An Alternate Solution Summary: COMMON DIALOG BOXES 7.1 File Open and Save Dialog Box Implementing a Standard File Open Dialog Box Structure OPENFILENAME File Extension Filter Retrieving File Names File Open File Save 7.2 More Customizations New Style and Old Style File Dialog Boxes Other Bits of Flags Dialog Box Title Retrieving Multiple Path Names and File Names Sample 7.3 Selecting Only Directory New Style Old Style 7.4 Adding File Preview Adding Extra Controls Notification CDN_SELCHANGE Sample 7.5 Color Dialog Box Introduction Initializing Selected Color and Custom Colors Sample Full Open 7.6 Custom Dialog Box Template Custom Dialog Template Commands Implementation 7.7 Font Dialog Box Basics Structure LOGFONT Retrieving Selected Font Sample 7.8 Customizing Dialog Box Template 7.9 Modeless Common Dialog Boxes Tricks Hook Function Using MFC Classes together with API Functions Obtaining Handle Accessing Member Variable from Static or Global Function Sample Implementation Applying Selected Color Instantly Summary: DC, PEN, BRUSH AND PALETTE 8.0 Device Context & GDI Objects Situation Device Context GDI Objects Obtaining DC Using DC with GDI Objects 8.1 Line Creating Pen Drawing Mode Storing Data Recording One Line 8.2 Rectangle and Ellipse 8.3 Curve 8.4 Other Shapes 8.5 Flood Fill 8.6 Pattern Brush 8.7 Color Approximation Palette Device vs. Non-Palette Device Color Approximation Sample Adjusting Display Settings Results 8.8 Logical Palette Palette Color Mapping Foreground and Background Palette Creating Logical Palette Using Logical Palette Realizing Palette Macro PALETTEINDEX Sample 8.9 Monitoring System Palette 8.10 Palette Animation Flag PC_RESERVED Animation Sample 8.11 Find Out Device Capability Summary: FONT 9.1 Outputting Text Using Different Fonts 9.2 Enumerating Fonts in the System Font Types Enumerating Font Family Enumerating Font 9.3 Output Text Using CDC::ExtTextOut(…) Function CDC::ExtTextOut(…) New Class Implementing Percentage Bar 9.4 One-Line Text Editor, Step 1: Displaying a Static String 9.5 One Line Text Editor, Step 2: Adding Caret Caret Functions Sample 9.6 One Line Text Editor, Step 3: Enabling Input New Member Functions Message WM_CHAR 9.7 One Line Text Editor, Step 4: Caret Moving & Cursor Shape New Functions Moving Caret Using Keyboard Moving Caret Using Mouse Cursor Shape Handling WM_LBUTTONDOWN to Move Caret 9.8 One Line Text Editor, Step 5: Selection Highlighting the Selected Text Setting Selection Indices Handling Mouse Events 9.9 One Line Text Editor, Step 6: Cut, Copy and Paste Global Memory Clipboard Funcitons Deleting Selected Text Message Handlers for Cut, Copy Paste Commands 9.10 One Line Text Editor, Step 7: Getting Rid of Flickering Function CDocument::UpdateAllViews(…) Defining Hints Calling Function CDocument::UpdateAllViews(…) Overriding CView::OnUpdate(…) Summary: BITMAP 10.1 BitBlt and StretchBlt DIB & DDB Drawing DDB Creating Memory DC x Retrieving the Dimension of Bitmap Image Sample 10.1\GDI Sample 10.1-2\GDI 10.2 Extracting Palette from DIB DIB Format DIB Example Creating DDB from DIB Loading Resource Sample 10.3 Loading DIB from File File Format Supporting File Type Loading DIB through Serialization Creating DDB 10.4 Saving DDB to File Converting DDB to DIB New Functions Using New Functions 10.5 Drawing DIB Directly New Functions Modifications Made to Document Modifications Made to View 10.6 Bitmap Format Conversion: 256-color to 24-bit Conversion Current Format Function Implementation 10.7 Converting 24-bit Format to 256-color Format Two Cases Sample 10.8 Pixel Manipulation 10.9 DIB Section: Using Both DIB and DDB Importance of DDB DIB Section New Variables Cleaning Up Loading Bitmap & Creating Mask Bitmap Drawing Bitmap with Transparancy Adding Background 10.10 Creating Chiseled Effect Algorithm Creating Binary Bitmap Image Raster Operation Mode Chiselled Effect Highlighted and Shadowed Colors New Function Function CGDIView::LoadBitmap(…) & CGDIView::OnDraw(…) xi Summary SAMPLE: SIMPLE PAINT 11.0 Preparation 11.1 Ratio and Grid Zoom In & Zoom Out Grid Pattern Brush and Its Origin 11.2 Color Selection Color Selection Control Color Bar Color Selection Integrate the Color Bar into the Program 11.3 Simple Drawing New Tool Bar New Functions Mouse Cursor 11.4 Tracker Implementing Tracker Moving and Resizing Tracker Customizing Cursor Shape New Tool If Mouse Clicking Doesn’t Hit the Tracker If Mouse Clicking Hits the Tracker 11.5 Moving the Selected Image Normalizing Tracker Moving and Resizing the Selected Image When Left Button is Up 11.6 Region Basics Region Creation Using Region Sample 11.7 Path Basics Path & Region Sample 11.7-1\GDI Obtaining Path Sample 11.7-2\GDI 11.8 Freeform Selection Implementation Scaling Region New Tool Resizing and Moving the Freeform Selection 11.9 Cut, Copy and Paste xii Clipboard DIB Format Preparing DIB Data Cut & Copy Paste 11.10 Palette Change & Flickering Problems Message WM_PALETTECHANGED Flickering Summary SCREEN CAPTURING & PRINTING 12.1 Capturing the Whole Screen Capture Converting DDB to DIB New Command 12.2 Capturing a Specified Window Picking Up a Window Dialog Box IDD_DIALOG_SELECT New Command 12.3 Simple Printing Mapping Mode Converting between Logical and Device Units Implementing Print Scaling the Image before Printing Displaying or Printing? Function CGDIView::OnDraw(…) 12.4 Fixed Scale Printing Printing Related Functions Sample 12.4\GDI 12.5 Printing on Separate Pages Number of required Pages is Known Beforehand Setting Number of Pages Just Before Printing Starts Calculating the Number of Pages when the Printing Is Undergoing 12.6 Customizing Print Dialog Box Customizing Common Controls Using Custom Dialog Template Summary ADDING SPECIAL FEATURES TO APPLICATION 13.1 One Instance Application Window Creation Function CWnd::PreCreateWindow(…) One-Instance Application in MFC Sample 13.1\Once xiii 13.2 Creating Applications without Using Document/View Structure How Application, Document and View Are Bound Together Creating Window Sample 13.2\Gen Excluding Classes from Build 13.3 Implementing Multiple Views Simple View Implementation Attaching Multiple Views to One Document Sample 13.3\Chart Window Origin and View Port Origin MM_ANISOTROPIC & MM_ISOTROPIC Window Extents and View Port Extents Pie Chart Drawing 13.4 Multiple Documents Implementation 13.5 Painting Caption Bar Non-client Area and Related Messages Caption Text Area Sample 13.5\Cap 13.6 Irregular Shape Window Problem Style WS_EX_TRANSPARENT Using Dialog Box Disabling Default Background Painting Disabling Non-client Area Painting Moving the Window with Mouse 13.7 Saving Initial States Where to Save the Information Functions Used to Write and Read Information Format of “.ini” File Sample 13.7\Ini 13.8 Exchanging User-Defined Messages Among Applications Registering User Defined Messages Sample Finding Window & Sending Message 13.9 Z-Order 13.10 Hook Hook Installation System Wide Hook Variables in DLL Defining Data Segment DLL Implementation Sample 13.6\Hook 13.11 Journal Record and Journal Playback Hooks Analyzing Events Playing back the Recorded Events Using Functions Contained in DLL xiv 13.12 Memory Sharing Among Processes Problem with Global Memory File Mapping File Mapping Functions Samples Summary VIEWS 14.1 Edit View Generating the Application Search Related Commands Other Commands 14.2 Rich Edit View Customizing File Open Dialog Box Customizing “Save As” Dialog Box Formatting Text 14.3 Simple Explorer, Step 1: Preparation 14.4 Simple Explorer, Step 2: List Drives Creating Image List Alternative Ways of Creating Image List Selecting Image List into Tree Control Setting Styles of Tree Control Adding Root Node Finding out Available Drives in the System 14.5 Simple Explorer, Step 3: Listing Directories Enumerating Files and Directories Adding Directory Nodes 14.6 Simple Explorer, Step 4: Displaying Files Image Lists Adding Columns Listing Files Destroying the Old List Using Function CExplorerView::ChangeDir() 14.7 Simple Explorer, Step 5: Displaying Registered Icons Which Icon to Use Sample 14.8 Simple Explorer, Step 6: Clicking and Double Clicking Tree Control Messages Obtaining Full Path Finding out the Clicked Item When an Item Is Clicked When a Node Expands 14.9 Simple Explorer, Step 7: File Sort Sort Related Functions Adding Parameters to Items xv Functions Implementing Comparisons Using Parameter to Find an Item Comparing Two Items by File Names Notification LVN_COLUMNCLICK 14.10 Using Form View New Class and Dialog Template Implementing New Member Functions Resizing Tree Control Mouse Cursor Coordinates Replacing CDirView with CDirFormView Summary DDE 15.1 DDE Registration DDE Initialization, Uninitialization, Service Registration, Unregistration DDE Callback Function Server Monitoring DDE Activities 15.2 Connecting to Server DDE Connection: Client Side DDE Connection: Server Side Client Implementation Confirm Connection DDE Disconnection Test 15.3 Transaction: Data Request Data Request Transaction: Client Side Data Request Transaction: Server Side Preparing Data Receiving Data Samples 15.4 Transaction: Advise Basics Initiating Advise Transaction Advise Transaction Responding Upon Receiving Advise Terminating Advise Transaction 15.5 Transactions: Poke and Execute Poke Transaction: Client Side Poke Transaction: Server Side Transaction: Executing Commands 15.6 Asynchronous Transaction Synchronous vs. Asynchronous Implementing Asynchronous Transaction Samples 15.7 Program Manager: A DDE Server xvi Program Manager Summary CONTEXT SENSITIVE HELP 16.1 Context Sensitive Help for Menu Commands Context Sensitive Help Context Sensitive Help for Menu Commands Sample New Commands Editing “AfxCore.rtf” ID Mapping Help Topics Dialog Box 16.2 Context Sensitive Help for Common Controls Supporting Context Sensitive Help in Dialog Box ID Naming Rules Enabling Context Sensitive Help for Common Controls Function CWnd::OnHelpInfo(…) Displaying Help in a Pop up Window Summary INDEX ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: VC++ 6.0 MFC
 输入关键字,在本站1000多万海量源码库中尽情搜索: