Advanced MFC Programming
Advanced MFC Programming Advanced MFC Programming
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 xiv
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 xv
- Page 1 and 2: Advanced MFC Programming Supporting
- Page 3 and 4: Checking a Menu Item 2.2 Right Clic
- Page 5 and 6: Trapping Double Clicking Message Re
- Page 7 and 8: COMMON DIALOG BOXES 7.1 File Open a
- Page 9 and 10: 9.1 Outputting Text Using Different
- Page 11 and 12: Summary SAMPLE: SIMPLE PAINT 11.0 P
- Page 13: 13.2 Creating Applications without
- Page 17 and 18: Chapter 1. Tool Bar and Dialog Bar
- Page 19 and 20: Chapter 1. Tool Bar and Dialog Bar
- Page 21 and 22: Chapter 1. Tool Bar and Dialog Bar
- Page 23 and 24: Chapter 1. Tool Bar and Dialog Bar
- Page 25 and 26: Chapter 1. Tool Bar and Dialog Bar
- Page 27 and 28: Chapter 1. Tool Bar and Dialog Bar
- Page 29 and 30: Chapter 1. Tool Bar and Dialog Bar
- Page 31 and 32: Chapter 1. Tool Bar and Dialog Bar
- Page 33 and 34: Chapter 1. Tool Bar and Dialog Bar
- Page 35 and 36: Chapter 1. Tool Bar and Dialog Bar
- Page 37 and 38: Chapter 1. Tool Bar and Dialog Bar
- Page 39 and 40: Chapter 1. Tool Bar and Dialog Bar
- Page 41 and 42: Chapter 1. Tool Bar and Dialog Bar
- Page 43 and 44: Chapter 1. Tool Bar and Dialog Bar
- Page 45 and 46: Chapter 1. Tool Bar and Dialog Bar
- Page 47 and 48: Chapter 1. Tool Bar and Dialog Bar
- Page 49 and 50: Chapter 2. Menu Chapter 2 Menu Menu
- Page 51 and 52: Chapter 2. Menu ON_COMMAND(ID_EDIT_
- Page 53 and 54: Chapter 2. Menu “clipboard”. We
- Page 55 and 56: Chapter 2. Menu Using Class CMenu W
- Page 57 and 58: Chapter 2. Menu } After implementin
- Page 59 and 60: Chapter 2. Menu ); UINT nPosition,
- Page 61 and 62: Chapter 2. Menu void CMenuDoc::OnEd
- Page 63 and 64: Chapter 2. Menu } In the sample, bi
Functions Implementing Comparisons<br />
Using Parameter to Find an Item<br />
Comparing Two Items by File Names<br />
Notification LVN_COLUMNCLICK<br />
14.10 Using Form View<br />
New Class and Dialog Template<br />
Implementing New Member Functions<br />
Resizing Tree Control<br />
Mouse Cursor Coordinates<br />
Replacing CDirView with CDirFormView<br />
Summary<br />
DDE<br />
15.1 DDE Registration<br />
DDE Initialization, Uninitialization, Service Registration, Unregistration<br />
DDE Callback Function<br />
Server<br />
Monitoring DDE Activities<br />
15.2 Connecting to Server<br />
DDE Connection: Client Side<br />
DDE Connection: Server Side<br />
Client Implementation<br />
Confirm Connection<br />
DDE Disconnection<br />
Test<br />
15.3 Transaction: Data Request<br />
Data Request Transaction: Client Side<br />
Data Request Transaction: Server Side<br />
Preparing Data<br />
Receiving Data<br />
Samples<br />
15.4 Transaction: Advise<br />
Basics<br />
Initiating Advise Transaction<br />
Advise Transaction Responding<br />
Upon Receiving Advise<br />
Terminating Advise Transaction<br />
15.5 Transactions: Poke and Execute<br />
Poke Transaction: Client Side<br />
Poke Transaction: Server Side<br />
Transaction: Executing Commands<br />
15.6 Asynchronous Transaction<br />
Synchronous vs. Asynchronous<br />
Implementing Asynchronous Transaction<br />
Samples<br />
15.7 Program Manager: A DDE Server<br />
xv