注冊 | 登錄讀書好,好讀書,讀好書!
讀書網-DuShu.com
當前位置: 首頁出版圖書科學技術計算機/網絡軟件與程序設計C/C++及其相關Visual C++(MFC)函數實用手冊

Visual C++(MFC)函數實用手冊

Visual C++(MFC)函數實用手冊

定 價:¥49.00

作 者: 張曜,郭立山,李檄玄編著
出版社: 冶金工業(yè)出版社
叢編項:
標 簽: C語言

購買這本書可以去


ISBN: 9787502434014 出版時間: 2004-01-01 包裝: 平裝
開本: 26cm 頁數: 358頁 字數:  

內容簡介

  本書匯集了VisualC++(MFC)常用的類與函數,包括應用程序架構、標準窗體元素、繪圖和圖形、文件系統(tǒng)與數據庫、網絡編程和集合六大方面,主要介紹函數的功能、語法、參數列表和說明,且在大部分函數附有程序示例。本書內容系統(tǒng)而全面、分類合理、語言通俗易懂、示例典型、實用性強,既可作為各大中專院校相關專業(yè)和VisualC++(MFC)培訓班的學習和參考用書,也可作為初、中級程序員的參考用書和工具書。本書內容豐富、分類合理、語言通俗易懂、舉例典型、實用性強,且結合豐富的圖表進行說明,便于讀者理解和學習,以使其能迅速、熟練地掌握VisualC++(MFC)函數的相關知識。本書在書末附有兩個附錄:MFC類庫結構圖和系統(tǒng)錯誤碼。通過這兩個附錄的學習可以使讀者對MFC類庫結構有大概的了解,同時也便于讀者查找系統(tǒng)錯誤及其原因,以期快速解決。

作者簡介

暫缺《Visual C++(MFC)函數實用手冊》作者簡介

圖書目錄

第1章 概述 1 1.1 Visual C++.NET與MFC簡介 1 1.1.1 MFC基礎類 1 1.1.2 宏和全局函數 1 1.2 函數的調用和查找方法 1 1.3 本書匯集的函數與類 2
第2章 應用程序架構 3 2.1 基礎類 3 2.1.1 CObject類 3 1. AssertValid方法 3 2. Dump方法 3 3. IsSerializable函數 4 4. Serialize 方法 4 5. GetRuntimeClass函數 4 6. IsKindOf函數 5 2.1.2 CCmdTarget類 5 1. FromIDispatch函數 5 2. GetIDispatch函數 6 3. IsResultExpected函數 6 4. BeginWaitCursor函數 6 5. DoOleVerb函數 6 6. EnableAutomation函數 7 7. EnableConnections函數 7 8. EndWaitCursor函數 7 9. EnumOleVerbs函數 8 10. RestoreWaitCursor函數 8 11. EnableTypeLib函數 8 12. GetDispatchIID函數 8 13. GetTypeInfoCount函數 8 14. GetTypeInfoOfGuid函數 9 15. GetTypeLib函數 9 16. GetTypeLibCache函數 9 17. IsInvokeAllowed函數 9 2.2 線程類 9 2.2.1 CWinThread類 10 1. CreateThread函數 10 2. GetMainWnd函數 11 3. GetThreadPriority函數 11 4. PostThreadMessage函數 12 5. ResumeThread函數 12 6. SetThreadPriority函數 12 7. SuspendThread函數 13 8. ExitInstance函數 13 9. InitInstance函數 13 10. IsIdleMessage函數 13 11. OnIdle函數 14 12. PreTranslateMessage函數 14 13. ProcessMessageFilter函數 15 14. ProcessWndProcException函數 15 15. PumpMessage函數 16 16. Run函數 16 2.2.2 CWinApp類 16 1. AddDocTemplate函數 17 2. AddToRecentFileList函數 18 3. CreatePrinterDC函數 18 4. GetFirstDocTemplatePosition函數 19 5. GetNextDocTemplate函數 19 6. GetProfileBinary函數 20 7. GetProfileInt函數 20 8. GetProfileString函數 20 9. LoadCursor函數 21 10. LoadIcon函數 21 11. OpenDocumentFile函數 22 12. ParseCommandLine函數 22 13. ProcessShellCommand函數 22 14. RunAutomated函數 23 15. RunEmbedded函數 23 16. WriteProfileBinary函數 23 17. WriteProfileInt函數 23 18. WriteProfileString函數 24 19. CloseAllDocuments函數 24 20. DoMessageBox函數 24 21. DoWaitCursor函數 25 22. EnableShellOpen函數 25 23. ExitInstance函數 25 24. HideApplication函數 25 25. HtmlHelp函數 26 26. LoadStdProfileSettings函數 26 27. ProcessMessageFilter函數 26 28. ProcessWndProcException函數 27 29. Register函數 27 30. Run函數 27 31. SaveAllModified函數 27 32. WinHelp函數 28 33. SetRegistryKey函數 28 2.3 文檔模板 28 2.3.1 CDocument類 28 1. AddView函數 29 2. GetDocTemplate函數 30 3. GetFirstViewPosition函數 30 4. GetNextView函數 30 5. GetPathName函數 30 6. GetTitle函數 31 7. IsModified函數 31 8. RemoveView函數 31 9. SetModifiedFlag函數 31 10. SetPathName函數 32 11. SetTitle函數 32 12. UpdateAllViews函數 32 13. CanCloseFrame函數 32 14. DeleteContents函數 33 15. GetFile函數 34 16. PreCloseFrame函數 34 17. ReleaseFile函數 34 18. ReportSaveLoadException函數 35 19. SaveModified函數 36 2.3.2 CDocTemplate類 36 1. GetFirstDocPosition函數 36 2. GetNextDoc函數 37 3. LoadTemplate函數 37 4. SetContainerInfo函數 38 5. SetServerInfo函數 38 6. AddDocument函數 38 7. CreateOleFrame函數 39 8. GetDocString函數 39 9. RemoveDocument函數 40 10. CloseAllDocuments函數 40 11. CreateNewDocument函數 40 12. CreateNewFrame函數 40 13. InitialUpdateFrame函數 41 14. MatchDocType函數 42 15. OpenDocumentFile函數 43 16. SaveAllModified函數 43 17. SetDefaultTitle函數 44
第3章 標準窗體元素 45 3.1 框架窗體 45 3.1.1 CWnd類 45 1. Attach函數 50 2. CalcWindowRect函數 51 3. Create函數 51 4. CreateControl函數 52 5. CreateEx函數 53 6. Detach函數 53 7. FromHandle函數 53 8. GetSafeHwnd函數 54 9. EnableWindow函數 54 10. GetActiveWindow函數 54 11. GetCapture函數 55 12. GetDesktopWindow函數 55 13. GetFocus函數 55 14. GetForegroundWindow函數 55 15. GetIcon函數 56 16. IsWindowEnabled函數 56 17. ModifyStyle函數 56 18. ModifyStyleEx函數 56 19. SetActiveWindow函數 57 20. SetCapture函數 57 21. SetFocus函數 57 22. SetForegroundWindow函數 58 23. SetIcon函數 58 24. ArrangeIconicWindows函數 58 25. BringWindowToTop函數 58 26. CloseWindow函數 59 27. GetClientRect函數 59 28. GetWindowRect函數 59 29. GetWindowRgn函數 59 30. IsIconic函數 60 31. IsZoomed函數 60 32. MoveWindow函數 60 33. SetWindowPlacement函數 61 34. SetWindowPos函數 61 35. SetWindowRgn函數 62 36. CenterWindow函數 63 37. ChildWindowFromPoint函數 63 38. FindWindow函數 63 39. FindWindowEx函數 64 40. GetDescendantWindow函數 64 41. GetDlgCtrlID函數 65 42. GetDlgItem函數 65 43. GetLastActivePopup函數 65 44. GetOwner函數 66 45. GetParent函數 66 46. GetWindow函數 66 47. SendMessageToDescendants函數 66 48. SetDlgCtrlID函數 67 49. SetOwner函數 67 50. UpdateData函數 68 51. UpdateDialogControls函數 68 52. DrawCaption函數 68 53. GetDC函數 69 54. GetWindowDC函數 70 55. Invalidate函數 70 56. IsWindowVisible函數 71 57. LockWindowUpdate函數 72 58. Print函數 72 59. ReleaseDC函數 73 60. ShowWindow函數 73 61. UnlockWindowUpdate函數 73 62. UpdateWindow函數 74 63. ClientToScreen函數 75 64. ScreenToClient函數 75 65. GetFont函數 75 66. GetWindowText函數 76 67. SetFont函數 76 68. SetWindowText函數 76 69. EnableScrollBarCtrl函數 77 70. GetScrollPos函數 77 71. RepositionBars函數 77 72. ScrollWindow函數 78 73. SetScrollPos函數 78 74. DragAcceptFiles函數 79 75. CreateCaret函數 79 76. GetCaretPos函數 80 77. SetCaretPos函數 80 78. CheckDlgButton函數 80 79. EndModalLoop函數 80 80. ExecuteDlgInit函數 81 81. IsDialogMessage函數 81 82. RunModalLoop函數 81 83. SetDlgItemInt函數 82 84. BindDefaultProperty函數 82 85. BindProperty函數 82 86. DrawMenuBar函數 83 87. GetMenu函數 83 88. HiliteMenuItem函數 83 89. SetMenu函數 84 90. CancelToolTips函數 84 91. EnableToolTips函數 84 92. KillTimer函數 85 93. SetTimer函數 85 94. FlashWindow函數 86 95. MessageBox函數 86 96. Default函數 87 97. GetCurrentMessage函數 87 98. PostMessage函數 87 99. PreTranslateMessage函數 87 100. SendMessage函數 88 101. SendNotifyMessage函數 88 102. GetClipboardOwner函數 89 103. OpenClipboard函數 89 104. SetClipboardViewer函數 89 105. GetControlUnknown函數 89 106. GetProperty函數 90 107. InvokeHelper函數 90 108. SetProperty函數 91 109. DefWindowProc函數 91 110. WindowProc函數 91 111. HtmlHelp函數 92 112. PaintWindowlessControls函數 92 3.1.2 CFrameWnd類 92 1. Create函數 93 2. GetDockState函數 94 3. LoadBarState函數 94 4. LoadFrame函數 94 5. SaveBarState函數 95 6. SetDockState函數 95 7. ShowControlBar函數 95 8. ActivateFrame函數 95 9. BeginModalState函數 96 10. CreateView函數 96 11. DockControlBar函數 96 12. EnableDocking函數 97 13. EndModalState函數 97 14. GetActiveDocument函數 97 15. GetActiveFrame函數 97 16. GetActiveView函數 98 17. GetControlBar函數 98 18. GetMessageString函數 98 19. InitialUpdateFrame函數 98 20. InModalState函數 99 21. IsTracking函數 99 22. RecalcLayout函數 100 23. SetActiveView函數 100 24. SetMessageText函數 100 25. ShowOwnedWindows函數 100 26. GetMessageBar函數 101 27. NegotiateBorderSpace函數 101 3.1.3 CControlBar類 101 1. CalcDynamicLayout函數 102 2. CalcFixedLayout函數 102 3. GetBorders函數 102 4. GetBarStyle函數 103 5. GetCount函數 103 6. GetDockingFrame函數 103 7. IsFloating函數 104 8. SetBarStyle函數 104 9. SetBorders函數 104 10. SetInPlaceOwner函數 105 11. EnableDocking函數 105 12. CalcInsideRect函數 105 13. DoPaint函數 106 14. DrawBorders函數 106 15. DrawGripper函數 106 3.2 對話框類 106 3.2.1 CDialog類 107 1. Create函數 107 2. CreateIndirect函數 107 3. InitModalIndirect函數 108 4. DoModal函數 108 5. EndDialog函數 109 6. GetDefID函數 109 7. GotoDlgCtrl函數 110 8. MapDialogRect函數 110 9. NextDlgCtrl函數 110 10. PrevDlgCtrl方法 110 11. SetDefID函數 110 12. SetHelpID函數 111 13. OnCancel函數 111 14. OnInitDialog函數 111 15. OnOK函數 112 16. OnSetFont函數 112 3.2.2 CDHtmlDialog類 113 1. CanAccessExternal函數 113 2. CreateControlSite函數 114 3. DDX_DHtml_AxControl函數 114 4. DDX_DHtml_CheckBox函數 114 5. DDX_DHtml_ElementText函數 115 6. DDX_DHtml_Radio函數 115 7. DDX_DHtml_SelectIndex函數 115 8. DDX_DHtml_SelectString函數 115 9. DDX_DHtml_SelectValue函數 116 10. DestroyModeless函數 116 11. EnableModeless函數 116 12. FilterDataObject函數 117 13. GetControlDispatch函數 117 14. GetControlProperty函數 117 15. GetCurrentUrl函數 118 16. GetDHtmlDocument函數 118 17. GetDropTarget函數 119 18. GetElement函數 119 19. GetElementHtml函數 119 20. GetElementInterface函數 120 21. GetElementProperty函數 120 22. GetElementText函數 120 23. GetEvent函數 120 24. GetExternal函數 121 25. GetHostInfo函數 121 26. GetOptionKeyPath函數 122 27. HideUI函數 122 28. IsExternalDispatchSafe函數 122 29. LoadFromResource函數 122 30. Navigate函數 123 31. ResizeBorder函數 123 32. SetControlProperty函數 123 33. SetElementHtml函數 124 34. SetElementProperty函數 124 35. SetElementText函數 124 36. SetExternalDispatch函數 125 37. SetHostFlags函數 125 38. ShowContextMenu函數 126 39. ShowUI函數 126 40. TranslateAccelerator函數 127 41. TranslateUrl函數 127 42. UpdateUI函數 127 3.2.3 CDataExchange類 128 1. Fail函數 128 2. PrepareCtrl函數 128 3. PrepareEditCtrl函數 129 4. PrepareOleCtrl函數 129 3.2.4 CPropertyPag類 129 1. CancelToClose函數 130 2. QuerySiblings函數 130 3. SetModified函數 130 3.2.5 COlePropertyPage類 131 1. GetControlStatus函數 131 2. GetObjectArray函數 132 3. GetPageSite函數 133 4. IgnoreApply函數 133 5. IsModified函數 133 6. SetControlStatus函數 133 7. SetDialogResource函數 134 8. SetHelpInfo函數 134 9. SetModifiedFlag函數 134 10. SetPageName函數 135 3.2.6 CPropertySheet類 135 1. EnableStackedTabs函數 136 2. GetActiveIndex函數 136 3. GetActivePage函數 136 4. GetPage函數 136 5. GetPageCount函數 137 6. GetPageIndex函數 137 7. GetTabControl函數 137 8. SetActivePage函數 138 9. SetFinishText函數 138 10. SetTitle函數 138 11. SetWizardButtons函數 139 12. SetWizardMode函數 139 13. AddPage函數 139 14. Create函數 139 15. DoModal函數 140 16. EndDialog函數 140 17. MapDialogRect函數 140 18. PressButton函數 140 19. RemovePage函數 141 3.3 文檔視圖 141 3.3.1 DoPreparePrinting函數 142 3.3.2 GetDocument函數 142 3.3.3 IsSelected函數 142
第4章 繪圖和圖形 144 4.1 設備上下文 144 4.1.1 Attach函數 146 4.1.2 CreateCompatibleDC函數 147 4.1.3 CreateDC函數 147 4.1.4 CreateIC函數 148 4.1.5 DeleteDC函數 148 4.1.6 DeleteTempMap函數 148 4.1.7 Detach函數 149 4.1.8 FromHandle函數 149 4.1.9 GetCurrentBitmap函數 149 4.1.10 GetCurrentBrush函數 149 4.1.11 GetCurrentFont函數 150 4.1.12 GetCurrentPalette函數 150 4.1.13 GetCurrentPen函數 150 4.1.14 GetWindow函數 150 4.1.15 ReleaseAttribDC函數 150 4.1.16 ReleaseOutputDC函數 151 4.1.17 SetAttribDC函數 151 4.1.18 SetOutputDC函數 151 4.1.19 GetDeviceCaps函數 152 4.1.20 GetSafeHdc函數 152 4.1.21 IsPrinting函數 152 4.1.22 ResetDC函數 153 4.1.23 RestoreDC函數 153 4.1.24 SaveDC函數 153 4.1.25 EnumObjects函數 154 4.1.26 GetBrushOrg函數 154 4.1.27 SetBrushOrg函數 154 4.1.28 SelectObject函數 155 4.1.29 SelectStockObject函數 155 4.1.30 GetHalftoneBrush函數 156 4.1.31 GetNearestColor函數 156 4.1.32 RealizePalette函數 157 4.1.33 SelectPalette函數 157 4.1.34 UpdateColors函數 157 4.1.35 GetBkColor函數 158 4.1.36 GetBkMode函數 158 4.1.37 GetColorAdjustment函數 158 4.1.38 GetDCBrushColor函數 158 4.1.39 GetDCPenColor函數 158 4.1.40 GetPolyFillMode函數 159 4.1.41 GetROP2函數 159 4.1.42 GetStretchBltMode函數 159 4.1.43 GetTextColor函數 160 4.1.44 SetBkColor函數 160 4.1.45 SetBkMode函數 160 4.1.46 SetColorAdjustment函數 161 4.1.47 SetDCBrushColor函數 161 4.1.48 SetDCPenColor函數 161 4.1.49 SetPolyFillMode函數 162 4.1.50 SetROP2函數 162 4.1.51 SetStretchBltMode函數 162 4.1.52 SetTextColor函數 163 4.1.53 GetMapMode函數 163 4.1.54 GetViewportExt函數 164 4.1.55 GetViewportOrg函數 164 4.1.56 GetWindowExt函數 164 4.1.57 GetWindowOrg函數 165 4.1.58 OffsetViewportOrg函數 165 4.1.59 OffsetWindowOrg函數 165 4.1.60 ScaleViewportExt函數 165 4.1.61 ScaleWindowExt函數 166 4.1.62 SetMapMode函數 166 4.1.63 SetViewportExt函數 167 4.1.64 SetViewportOrg函數 167 4.1.65 SetWindowExt函數 167 4.1.66 SetWindowOrg函數 168 4.1.67 GetLayout函數 168 4.1.68 SetLayout函數 168 4.1.69 DPtoHIMETRIC函數 169 4.1.70 DPtoLP函數 170 4.1.71 HIMETRICtoDP函數 170 4.1.72 HIMETRICtoLP函數 171 4.1.73 LPtoDP函數 171 4.1.74 LPtoHIMETRIC函數 171 4.1.75 FillRgn函數 172 4.1.76 FrameRgn函數 172 4.1.77 InvertRgn函數 172 4.1.78 PaintRgn函數 173 4.1.79 ExcludeClipRect函數 173 4.1.80 ExcludeUpdateRgn函數 173 4.1.81 GetBoundsRect函數 174 4.1.82 GetClipBox函數 174 4.1.83 IntersectClipRect函數 174 4.1.84 OffsetClipRgn函數 175 4.1.85 PtVisible函數 175 4.1.86 RectVisible函數 176 4.1.87 SelectClipRgn函數 176 4.1.88 SetBoundsRect函數 176 4.1.89 AngleArc函數 177 4.1.90 Arc函數 177 4.1.91 ArcTo函數 177 4.1.92 GetArcDirection函數 178 4.1.93 GetCurrentPosition函數 178 4.1.94 LineTo函數 178 4.1.95 MoveTo函數 179 4.1.96 PolyBezier函數 179 4.1.97 PolyBezierTo函數 179 4.1.98 PolyDraw函數 180 4.1.99 PolyLine函數 180 4.1.100 PolyLineTo函數 180 4.1.101 PolyPolyLine函數 181 4.1.102 SetArcDirection函數 181 4.1.103 Draw3dRect函數 181 4.1.104 DrawDragRect函數 182 4.1.105 DrawEdge函數 182 4.1.106 DrawFrameControl函數 183 4.1.107 DrawIcon函數 183 4.1.108 DrawState函數 184 4.1.109 FillRect函數 184 4.1.110 FillSolidRect函數 185 4.1.111 FrameRect函數 185 4.1.112 InvertRect函數 185 4.1.113 Chord函數 186 4.1.114 DrawFocusRect函數 186 4.1.115 Ellipse函數 187 4.1.116 Pie函數 187 4.1.117 Polygon函數 188 4.1.118 PolyLine函數 188 4.1.119 PolyPolygon函數 189 4.1.120 Rectangle函數 189 4.1.121 RoundRect函數 190 4.1.122 AlphaBlend函數 190 4.1.123 BitBlt函數 191 4.1.124 ExtFloodFill函數 192 4.1.125 FloodFill函數 192 4.1.126 GetPixel函數 193 4.1.127 GradientFill函數 193 4.1.128 MaskBlt函數 193 4.1.129 PatBlt函數 194 4.1.130 PlgBlt函數 194 4.1.131 SetPixel函數 195 4.1.132 SetPixelV函數 195 4.1.133 StretchBlt函數 196 4.1.134 TransparentBlt函數 196 4.1.135 DrawText函數 197 4.1.136 ExtTextOut函數 198 4.1.137 GetCharABCWidthsI函數 199 4.1.138 GetCharacterPlacement函數 199 4.1.139 GetCharWidthI函數 200 4.1.140 GetOutputTabbedTextExtent函數 200 4.1.141 GetOutputTextExtent函數 201 4.1.142 GetOutputTextMetrics函數 201 4.1.143 GetTextAlign函數 201 4.1.144 GetTextCharacterExtra函數 201 4.1.145 GetTextExtent函數 202 4.1.146 GetTextFace函數 202 4.1.147 GetTextMetrics函數 202 4.1.148 GrayString函數 202 4.1.149 SetTextAlign函數 203 4.1.150 SetTextCharacterExtra函數 204 4.1.151 SetTextJustification函數 204 4.1.152 TabbedTextOut函數 204 4.1.153 TextOut函數 205 4.1.154 GetAspectRatioFilter函數 205 4.1.155 GetCharABCWidths函數 205 4.1.156 GetCharWidth函數 206 4.1.157 GetFontData函數 206 4.1.158 GetGlyphOutline函數 207 4.1.159 GetKerningPairs函數 207 4.1.160 GetOutlineTextMetrics函數 207 4.1.161 GetOutputCharWidth函數 208 4.1.162 SetMapperFlags函數 208 4.1.163 AbortDoc函數 208 4.1.164 DrawEscape函數 209 4.1.165 EndDoc函數 209 4.1.166 EndPage函數 210 4.1.167 Escape函數 210 4.1.168 QueryAbort函數 210 4.1.169 SetAbortProc函數 211 4.1.170 StartDoc函數 211 4.1.171 StartPage函數 211 4.1.172 ScrollDC函數 212 4.1.173 AddMetaFileComment函數 212 4.1.174 PlayMetaFile函數 212 4.1.175 AbortPath函數 213 4.1.176 BeginPath函數 213 4.1.177 CloseFigure函數 213 4.1.178 EndPath函數 214 4.1.179 FillPath函數 214 4.1.180 FlattenPath函數 214 4.1.181 GetMiterLimit函數 214 4.1.182 GetPath函數 214 4.1.183 SelectClipPath函數 215 4.1.184 SetMiterLimit函數 215 4.1.185 StrokeAndFillPath函數 215 4.1.186 StrokePath函數 215 4.1.187 WidenPath函數 216 4.2 圖形對象 216 4.2.1 Attach函數 216 4.2.2 CreateStockObject函數 217 4.2.3 DeleteObject函數 218 4.2.4 DeleteTempMap函數 218 4.2.5 Detach函數 218 4.2.6 FromHandle函數 219 4.2.7 GetObject函數 219 4.2.8 GetObjectType函數 219
第5章 文件系統(tǒng)與數據庫 221 5.1 ODBC數據庫 221 5.1.1 CDatabase類 221 1. Close函數 221 2. Open函數 222 3. OpenEx函數 223 4. CanTransact函數 223 5. CanUpdate函數 224 6. GetBookmarkPersistence函數 224 7. GetDatabaseName函數 224 8. SetQueryTimeout函數 224 9. BeginTrans函數 225 10. ExecuteSQL函數 226 11. Rollback函數 226 5.1.2 CRecordset類 226 1. CanAppend函數 227 2. CanRestart函數 227 3. CanUpdate函數 228 4. GetSQL函數 228 5. IsBOF函數 228 6. IsOpen函數 228 7. AddNew函數 229 8. Delete函數 229 9. Update函數 230 10. Move函數 230 11. Cancel函數 231 12. FlushResultSet函數 231 13. Requery函數 232 14. SetParamNull函數 233 15. Open函數 233 16. SetRowsetSize函數 234 5.2 DAO數據庫 234 5.2.1 CDaoDatabase類 235 1. CanTransact函數 235 2. GetConnect函數 235 3. SetQueryTimeout函數 235 4. Close函數 236 5. Create函數 236 6. CreateRelation函數 237 7. Execute函數 238 8. GetRelationInfo函數 238 9. GetTableDefInfo函數 239 10. Open函數 239 5.2.2 CDaoWorkspace類 240 1. GetIsolateODBCTrans函數 240 2. GetName函數 240 3. GetUserName函數 241 4. IsOpen函數 241 5. SetIsolateODBCTrans函數 241 6. Append函數 241 7. Close函數 242 8. CommitTrans函數 242 9. CompactDatabase函數 242 10. Create函數 243 11. GetDatabaseCount函數 244 12. GetDatabaseInfo函數 244 13. Idle函數 245 14. Open函數 245 15. RepairDatabase函數 245 16. Rollback函數 246 5.2.3 CDaoQueryDef類 246 1. Append函數 247 2. Close函數 247 3. Create函數 247 4. Execute函數 248 5. GetFieldCount函數 249 6. GetFieldInfo函數 249 7. GetParameterCount函數 250 8. GetParameterInfo函數 250 9. GetParamValue函數 250 10. SetParamValue函數 251 5.2.4 CDaoRecordset類 251 1. AddNew函數 252 2. CancelUpdate函數 253 3. Delete函數 253 4. Edit函數 254 5. Update函數 254 6. Find函數 255 7. FindFirst函數 255 8. FindNext函數 256 9. FindPrev函數 256 10. GetAbsolutePosition函數 256 11. GetBookmark函數 257 12. Move函數 257 13. Seek函數 258 14. FillCache函數 258 15. GetFieldInfo函數 259 16. Requery函數 259 17. DoFieldExchange函數 260 18. GetDefaultSQL函數 260 19. GetDefaultDBName函數 261 5.2.5 CDaoTableDef類 261 1. Append函數 261 2. Close函數 262 3. Create函數 262 4. Open函數 263 5. CreateField函數 263 6. CreateIndex函數 264 7. DeleteField函數 265 8. DeleteIndex函數 265 9. RefreshLink函數 266 5.3 文件I/O 266 5.3.1 CFile類 266 1. Abort函數 266 2. Close函數 267 3. Duplicate函數 267 4. Open函數 267 5. Flush函數 268 6. Read函數 268 7. Write函數 269 8. Getlength函數 269 9. Seek函數 269 10. SeekToBegin函數 270 11. SeekToEnd函數 270 12. SetLength函數 271 13. LockRange函數 271 14. GetFileName函數 271 15. GetFilePath函數 272 16. GetFileTitle函數 272 17. GetPosition函數 272 18. GetStatus函數 273 19. GetStatus函數 274 20. Remove函數 274 21. Rename函數 274 22. SetFilePath函數 274 23. SetStatus函數 275 24. UnlockRange函數 275 5.3.2 COleStreamFile類 275 1. Attach函數 275 2. CreateMemoryStream函數 276 3. CreateStream函數 276 4. GetStream函數 277 5. OpenStream函數 277 5.3.3 CStdioFile類 277 1. ReadString函數 278 2. WriteString函數 278
第6章 網絡編程 279 6.1 Win32 Internet 279 6.1.1 CInternetConnection類 279 1. GetContext函數 279 2. GetServerName函數 279 3. GetSession函數 280 6.1.2 CHttpConnection類 280 6.1.3 CFtpConnection類 281 1. Command函數 282 2. CreateDirectory函數 283 3. GetCurrentDirectory函數 283 4. GetCurrentDirectoryAsURL函數 284 5. GetFile函數 285 6. OpenFile函數 286 7. PutFile函數 286 8. Remove函數 287 9. RemoveDirectory函數 288 10. Rename函數 288 11. SetCurrentDirectory函數 288 6.1.4 CFileFind類 289 1. GetCreationTime函數 289 2. GetFileName函數 289 3. GetFilePath函數 290 4. GetFileTitle函數 290 5. GetFileURL函數 291 6. GetLastAccessTime函數 291 7. GetLastWriteTime函數 291 8. GetLength函數 292 9. GetRoot函數 292 10. IsArchived函數 293 11. IsCompressed函數 293 12. IsDirectory函數 293 13. IsDots函數 294 14. IsHidden函數 294 15. IsNormal函數 294 16. IsReadOnly函數 294 17. IsSystem函數 295 18. IsTemporary函數 295 19. MatchesMask函數 295 20. Close函數 296 21. FindFile函數 296 22. FindNextFile函數 297 6.1.5 CFtpFileFind類 297 1. FindFile函數 297 2. FindNextFile函數 298 3. GetFileURL函數 298 6.2 Windows 套接字 299 6.2.1 CAsyncSocket類 299 1. GetPeerName函數 300 2. GetSockName函數 300 3. GetSockOpt函數 301 4. SetSockOpt函數 302 5. Accept函數 303 6. AsyncSelect函數 304 7. Bind函數 304 8. Close函數 304 9. Connect函數 305 10. Listen函數 305 11. Receive函數 306 12. Send函數 307 13. ShutDown函數 307 6.2.2 CSocket類 308
第7章 集合 310 7.1 CArray類 310 7.1.1 GetSize函數 310 7.1.2 GetUpperBound函數 311 7.1.3 IsEmpty函數 312 7.1.4 SetSize函數 312 7.1.5 FreeExtra函數 312 7.1.6 RemoveAll函數 312 7.1.7 ElementAt函數 313 7.1.8 GetAt函數 313 7.1.9 SetAt函數 313 7.1.10 Add函數 313 7.1.11 Append函數 314 7.1.12 Copy函數 314 7.1.13 SetAtGrow函數 314 7.1.14 InsertAt函數 315 7.1.15 RemoveAt函數 315 7.2 CList類 315 7.2.1 GetHead函數 316 7.2.2 GetTail函數 317 7.2.3 AddHead函數 317 7.2.4 AddTail函數 318 7.2.5 RemoveAll函數 318 7.2.6 RemoveHead函數 318 7.2.7 RemoveTail函數 318 7.2.8 GetHeadPosition函數 318 7.2.9 GetNext函數 319 7.2.10 GetPrev函數 319 7.2.11 GetTailPosition函數 319 7.2.12 GetAt函數 319 7.2.13 RemoveAt函數 320 7.2.14 SetAt函數 320 7.2.15 InsertAfter函數 320 7.2.16 InsertBefore函數 321 7.2.17 Find函數 321 7.2.18 FindIndex函數 321 7.2.19 GetCount函數 321 7.2.20 GetSize函數 322 7.2.21 IsEmpty函數 322 7.3 CMap類 322 7.3.1 GetHashTableSize函數 322 7.3.2 GetNextAssoc函數 322 7.3.3 GetStartPosition函數 324 7.3.4 InitHashTable函數 324 7.3.5 Lookup函數 324 7.3.6 PLookup函數 324 7.3.7 PGetNextAssoc函數 325 7.3.8 PGetFirstAssoc函數 326 7.3.9 RemoveAll函數 326 7.3.10 RemoveKey函數 326 7.3.11 SetAt函數 327 7.3.12 GetCount函數 327 7.3.13 IsEmpty函數 327 附錄A MFC類庫結構圖 328 附錄B 系統(tǒng)錯誤碼 329

本目錄推薦

掃描二維碼
Copyright ? 讀書網 m.ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號 鄂公網安備 42010302001612號