注冊(cè) | 登錄讀書(shū)好,好讀書(shū),讀好書(shū)!
讀書(shū)網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書(shū)科學(xué)技術(shù)計(jì)算機(jī)/網(wǎng)絡(luò)軟件與程序設(shè)計(jì)BASIC/VB及其相關(guān)VISUAL BASIC函數(shù)參考大全

VISUAL BASIC函數(shù)參考大全

VISUAL BASIC函數(shù)參考大全

定 價(jià):¥72.00

作 者: 賽奎春、李俊民
出版社: 人民郵電出版社
叢編項(xiàng): 軟件工程師典藏
標(biāo) 簽: VB

ISBN: 9787115153876 出版時(shí)間: 2006-12-01 包裝: 平裝
開(kāi)本: 16 頁(yè)數(shù): 629 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  本書(shū)全面、系統(tǒng)地介紹了Visual Basic內(nèi)部函數(shù)、語(yǔ)句、自定義函數(shù)和API函數(shù),以及它們的應(yīng)用,是一本全面、系統(tǒng)的函數(shù)參考大全。.本書(shū)通過(guò)大量的示例、典型應(yīng)用幫助讀者透徹理解Visual Basic函數(shù)及其應(yīng)用。全書(shū)共分27章,主要包括函數(shù)基礎(chǔ)、數(shù)學(xué)計(jì)算類(lèi)函數(shù)、財(cái)務(wù)函數(shù)、日期時(shí)間類(lèi)函數(shù)、字符串處理函數(shù)、格式化函數(shù)、文件處理類(lèi)函數(shù)、程序語(yǔ)法類(lèi)函數(shù)、對(duì)話(huà)框類(lèi)函數(shù)、隨機(jī)類(lèi)函數(shù)、圖形圖像處理類(lèi)函數(shù)、進(jìn)制與字符轉(zhuǎn)換類(lèi)函數(shù)、顏色處理類(lèi)函數(shù)、判斷類(lèi)函數(shù)、系統(tǒng)控制類(lèi)函數(shù)、異常處理類(lèi)函數(shù)、其他的一些相關(guān)的函數(shù)、自定義函數(shù)及過(guò)程基礎(chǔ)、自定義函數(shù)及過(guò)程應(yīng)用、語(yǔ)句、API函數(shù)基礎(chǔ)、窗體與窗口函數(shù)、Windows系統(tǒng)函數(shù)、文件及磁盤(pán)操作函數(shù)、圖形圖像與多媒體函數(shù)、注冊(cè)表相關(guān)函數(shù)、網(wǎng)絡(luò)相關(guān)函數(shù)等。..本書(shū)配套光盤(pán)中提供了書(shū)中所有實(shí)例的源代碼,所有源代碼都經(jīng)過(guò)精心調(diào)試,在Windows XP下全部測(cè)試通過(guò),能夠正常運(yùn)行。本書(shū)內(nèi)容精練、實(shí)例豐富,是各級(jí)程序開(kāi)發(fā)人員必備的參考書(shū),同時(shí)也非常適合大中專(zhuān)院校師生閱讀。...

作者簡(jiǎn)介

  明日科技有限公司是一家以計(jì)算機(jī)軟件技術(shù)為核心的高科技企業(yè),多年來(lái)始終致力于行業(yè)管理軟件開(kāi)發(fā)、數(shù)字化出版物制作、計(jì)算機(jī)網(wǎng)絡(luò)系統(tǒng)綜合應(yīng)用以及行業(yè)電子商務(wù)網(wǎng)站開(kāi)發(fā)等領(lǐng)域,涉及生產(chǎn)、管理、控制、倉(cāng)儲(chǔ)、物流、營(yíng)銷(xiāo)、服務(wù)等行業(yè)。公司擁有軟件開(kāi)發(fā)和項(xiàng)目實(shí)施方面的資深專(zhuān)家和學(xué)習(xí)型技術(shù)團(tuán)隊(duì),多年來(lái)積累了豐富的技術(shù)文檔和學(xué)習(xí)資料,公司的開(kāi)發(fā)團(tuán)隊(duì)不僅是開(kāi)拓進(jìn)取的技術(shù)實(shí)踐者,更致力于成為技術(shù)的普及和傳播者。

圖書(shū)目錄

第1章 函數(shù)基礎(chǔ) 1
1.1 函數(shù) 2
1.1.1 Visual Basic中的函數(shù) 2
1.1.2 在應(yīng)用程序中使用函數(shù) 2
1.2 VB內(nèi)部函數(shù) 2
第2章 數(shù)學(xué)計(jì)算類(lèi)函數(shù) 9
2.1 Sin函數(shù) 10
2.1.1 知識(shí)講解 10
2.1.2 典型應(yīng)用 11
2.2 Cos函數(shù) 16
2.2.1 知識(shí)講解 16
2.2.2 典型應(yīng)用 18
2.3 Sqr函數(shù) 18
2.3.1 知識(shí)講解 18
2.3.2 典型應(yīng)用 18
2.4 Abs函數(shù) 20
2.4.1 知識(shí)講解 20
2.4.2 典型應(yīng)用 21
2.5 Atn函數(shù) 22
2.5.1 知識(shí)講解 22
2.5.2 典型應(yīng)用 22
2.6 Tan函數(shù) 23
2.6.1 知識(shí)講解 23
2.6.2 典型應(yīng)用 23
2.7 Log函數(shù) 24
2.7.1 知識(shí)講解 24
2.7.2 典型應(yīng)用 24
2.8 Sgn函數(shù) 25
2.8.1 知識(shí)講解 25
2.8.2 典型應(yīng)用 26
2.9 Fix函數(shù) 26
2.9.1 知識(shí)講解 26
2.9.2 典型應(yīng)用 27
2.10 Int函數(shù) 28
2.10.1 知識(shí)講解 28
2.10.2 典型應(yīng)用 28
2.11 Round函數(shù) 29
2.11.1 知識(shí)講解 29
2.11.2 典型應(yīng)用 30
2.12 Exp函數(shù) 30
2.12.1 知識(shí)講解 30
2.12.2 典型應(yīng)用 30
第3章 財(cái)務(wù)函數(shù) 33
3.1 IPmt函數(shù) 34
3.1.1 知識(shí)講解 34
3.1.2 典型應(yīng)用 35
3.2 IRR函數(shù) 36
3.2.1 知識(shí)講解 36
3.2.2 典型應(yīng)用 37
3.3 NPer函數(shù) 38
3.3.1 知識(shí)講解 38
3.3.2 典型應(yīng)用 39
3.4 NPV函數(shù) 39
3.4.1 知識(shí)講解 39
3.4.2 典型應(yīng)用 40
3.5 PPmt函數(shù) 40
3.6 Pmt函數(shù) 41
3.6.1 知識(shí)講解 41
3.6.2 典型應(yīng)用 42
3.7 PV函數(shù) 43
3.8 FV函數(shù) 44
3.9 Rate函數(shù) 45
3.9.1 知識(shí)講解 45
3.9.2 典型應(yīng)用 45
3.10 MIRR函數(shù) 46
3.11 SLN函數(shù) 47
3.11.1 知識(shí)講解 47
3.11.2 典型應(yīng)用 47
3.12 DDB函數(shù) 48
3.12.1 知識(shí)講解 48
3.12.2 典型應(yīng)用 49
3.13 SYD函數(shù) 49
3.13.1 知識(shí)講解 50
3.13.2 典型應(yīng)用 50
第4章 日期時(shí)間類(lèi)函數(shù) 53
4.1 Date函數(shù) 54
4.1.1 知識(shí)講解 54
4.1.2 典型應(yīng)用 55
4.2 DateAdd函數(shù) 56
4.2.1 知識(shí)講解 56
4.2.2 典型應(yīng)用 57
4.3 DateDiff函數(shù) 57
4.3.1 知識(shí)講解 57
4.3.2 典型應(yīng)用 59
4.4 DatePart函數(shù) 61
4.4.1 知識(shí)講解 61
4.4.2 典型應(yīng)用 63
4.5 DateSerial函數(shù) 64
4.5.1 知識(shí)講解 64
4.5.2 典型應(yīng)用 65
4.6 DateValue函數(shù) 66
4.6.1 知識(shí)講解 66
4.6.2 典型應(yīng)用 66
4.7 Day函數(shù) 67
4.7.1 知識(shí)講解 67
4.7.2 典型應(yīng)用 67
4.8 IsDate函數(shù) 68
4.8.1 知識(shí)講解 68
4.8.2 典型應(yīng)用 68
4.9 Minute函數(shù) 69
4.9.1 知識(shí)講解 69
4.9.2 典型應(yīng)用 70
4.10 Month函數(shù) 70
4.10.1 知識(shí)講解 70
4.10.2 典型應(yīng)用 70
4.11 MonthName函數(shù) 71
4.11.1 知識(shí)講解 71
4.11.2 典型應(yīng)用 72
4.12 Now函數(shù) 73
4.12.1 知識(shí)講解 73
4.12.2 典型應(yīng)用 73
4.13 Second函數(shù) 74
4.13.1 知識(shí)講解 74
4.13.2 典型應(yīng)用 74
4.14 Time函數(shù) 75
4.14.1 知識(shí)講解 75
4.14.2 典型應(yīng)用 75
4.15 Timer函數(shù) 76
4.15.1 知識(shí)講解 76
4.15.2 典型應(yīng)用 76
4.16 TimeSerial函數(shù) 77
4.16.1 知識(shí)講解 77
4.16.2 典型應(yīng)用 78
4.17 TimeValue函數(shù) 78
4.17.1 知識(shí)講解 78
4.17.2 典型應(yīng)用 79
4.18 Weekday函數(shù) 79
4.18.1 知識(shí)講解 79
4.18.2 典型應(yīng)用 80
4.19 WeekdayName函數(shù) 81
4.19.1 知識(shí)講解 81
4.19.2 典型應(yīng)用 82
4.20 Year函數(shù) 83
4.20.1 知識(shí)講解 83
4.20.2 典型應(yīng)用 83
4.21 Hour函數(shù) 85
4.21.1 知識(shí)講解 85
4.21.2 典型應(yīng)用 86
第5章 字符串處理函數(shù) 87
5.1 Len函數(shù) 88
5.1.1 知識(shí)講解 88
5.1.2 典型應(yīng)用 89
5.2 Left函數(shù) 91
5.2.1 知識(shí)講解 91
5.2.2 典型應(yīng)用 91
5.3 Right函數(shù) 94
5.3.1 知識(shí)講解 94
5.3.2 典型應(yīng)用 94
5.4 Mid函數(shù) 96
5.4.1 知識(shí)講解 96
5.4.2 典型應(yīng)用 97
5.5 Instr函數(shù) 99
5.5.1 知識(shí)講解 100
5.5.2 典型應(yīng)用 100
5.6 InStrRev函數(shù) 102
5.7 Replace函數(shù) 104
5.8 StrReverse函數(shù) 105
5.9 Trim函數(shù) 105
5.9.1 知識(shí)講解 105
5.9.2 典型應(yīng)用 106
5.10 LTrim函數(shù) 106
5.11 RTrim函數(shù) 107
5.12 LCase函數(shù) 107
5.12.1 知識(shí)講解 107
5.12.2 典型應(yīng)用 108
5.13 UCase函數(shù) 108
5.13.1 知識(shí)講解 109
5.13.2 典型應(yīng)用 109
5.14 StrConv函數(shù) 110
5.14.1 知識(shí)講解 110
5.14.2 典型應(yīng)用 111
5.15 String函數(shù) 112
5.16 Space函數(shù) 113
5.16.1 知識(shí)講解 113
5.16.2 典型應(yīng)用 113
5.17 StrComp函數(shù) 114
5.17.1 知識(shí)講解 114
5.17.2 典型應(yīng)用 116
5.18 Join函數(shù) 117
5.18.1 知識(shí)講解 117
5.18.2 典型應(yīng)用 118
5.19 Split函數(shù) 118
5.19.1 知識(shí)講解 119
5.19.2 典型應(yīng)用 120
5.20 Filter函數(shù) 121
5.21 Array函數(shù) 121
5.21.1 知識(shí)講解 122
5.21.2 典型應(yīng)用 122
第6章 格式化函數(shù) 125
6.1 Format函數(shù) 126
6.1.1 知識(shí)講解 126
6.1.2 典型應(yīng)用 128
6.2 FormatDateTime函數(shù) 129
6.2.1 知識(shí)講解 130
6.2.2 典型應(yīng)用 130
6.3 FormatCurrency函數(shù) 131
6.3.1 知識(shí)講解 131
6.3.2 典型應(yīng)用 132
6.4 FormatNumber函數(shù) 133
6.4.1 知識(shí)講解 133
6.4.2 典型應(yīng)用 134
6.5 FormatPercent函數(shù) 134
6.5.1 知識(shí)講解 134
6.5.2 典型應(yīng)用 135
第7章 文件處理類(lèi)函數(shù) 139
7.1 Dir函數(shù) 140
7.1.1 知識(shí)講解 140
7.1.2 典型應(yīng)用 141
7.2 FileLen函數(shù) 143
7.2.1 知識(shí)講解 143
7.2.2 典型應(yīng)用 143
7.3 FileDateTime函數(shù) 144
7.3.1 知識(shí)講解 144
7.3.2 典型應(yīng)用 144
7.4 EOF函數(shù) 145
7.4.1 知識(shí)講解 145
7.4.2 典型應(yīng)用 145
7.5 FileAttr函數(shù) 146
7.5.1 知識(shí)講解 146
7.5.2 典型應(yīng)用 147
7.6 FreeFile函數(shù) 148
7.6.1 知識(shí)講解 148
7.6.2 典型應(yīng)用 148
7.7 GetObject函數(shù) 149
7.7.1 知識(shí)講解 149
7.7.2 典型應(yīng)用 150
7.8 Input函數(shù) 151
7.8.1 知識(shí)講解 151
7.8.2 典型應(yīng)用 152
7.9 Loc函數(shù) 153
7.9.1 知識(shí)講解 153
7.9.2 典型應(yīng)用 153
7.10 LOF函數(shù) 154
7.10.1 知識(shí)講解 155
7.10.2 典型應(yīng)用 155
7.11 Seek函數(shù) 156
7.11.1 知識(shí)講解 156
7.11.2 典型應(yīng)用 156
7.12 Tab函數(shù) 157
7.12.1 知識(shí)講解 157
7.12.2 典型應(yīng)用 158
7.13 spc函數(shù) 160
7.13.1 知識(shí)講解 161
7.13.2 典型應(yīng)用 161
7.14 GetAttr函數(shù) 162
7.14.1 知識(shí)講解 162
7.14.2 典型應(yīng)用 163
第8章 程序語(yǔ)法類(lèi)函數(shù) 165
8.1 IIF函數(shù) 166
8.1.1 知識(shí)講解 166
8.1.2 典型應(yīng)用 166
8.2 Switch函數(shù) 168
8.2.1 知識(shí)講解 169
8.2.2 典型應(yīng)用 169
8.3 Shell函數(shù) 170
8.3.1 知識(shí)講解 170
8.3.2 典型應(yīng)用 171
第9章 對(duì)話(huà)框類(lèi)函數(shù) 175
9.1 MsgBox函數(shù) 176
9.1.1 知識(shí)講解 176
9.1.2 典型應(yīng)用 178
9.2 InputBox函數(shù) 179
9.2.1 知識(shí)講解 179
9.2.2 典型應(yīng)用 180
9.3 Filter函數(shù) 181
9.3.1 知識(shí)講解 181
9.3.2 典型應(yīng)用 182
第10章 隨機(jī)類(lèi)函數(shù) 183
10.1 Randomize函數(shù) 184
10.1.1 知識(shí)講解 184
10.1.2 典型應(yīng)用 184
10.2 Rnd函數(shù) 184
10.2.1 知識(shí)講解 185
10.2.2 典型應(yīng)用 186
第11章 圖形圖像處理類(lèi)函數(shù) 191
11.1 LoadPicture函數(shù) 192
11.1.1 知識(shí)講解 192
11.1.2 典型應(yīng)用 193
11.2 LoadResPicture函數(shù) 194
11.2.1 知識(shí)講解 194
11.2.2 典型應(yīng)用 195
第12章 進(jìn)制與字符轉(zhuǎn)換類(lèi)函數(shù) 197
12.1 Oct函數(shù) 198
12.1.1 知識(shí)講解 198
12.1.2 典型應(yīng)用 199
12.2 Hex函數(shù) 199
12.2.1 知識(shí)講解 199
12.2.2 典型應(yīng)用 200
12.3 Asc函數(shù) 200
12.3.1 知識(shí)講解 200
12.3.2 典型應(yīng)用 200
12.4 AscB函數(shù) 204
12.4.1 知識(shí)講解 204
12.4.2 典型應(yīng)用 204
12.5 AscW函數(shù) 204
12.5.1 知識(shí)講解 204
12.5.2 典型應(yīng)用 204
12.6 Chr函數(shù) 205
12.6.1 知識(shí)講解 205
12.6.2 典型應(yīng)用 205
12.7 ChrB函數(shù) 206
12.7.1 知識(shí)講解 206
12.7.2 典型應(yīng)用 206
12.8 ChrW函數(shù) 206
12.8.1 知識(shí)講解 206
12.8.2 典型應(yīng)用 207
12.9 Val函數(shù) 207
12.9.1 知識(shí)講解 207
12.9.2 典型應(yīng)用 207
12.10 Str函數(shù) 208
12.10.1 知識(shí)講解 208
12.10.2 典型應(yīng)用 208
12.11 CInt函數(shù) 208
12.11.1 知識(shí)講解 208
12.11.2 典型應(yīng)用 209
12.12 CLng函數(shù) 209
12.12.1 知識(shí)講解 209
12.12.2 典型應(yīng)用 210
12.13 CSng函數(shù) 210
12.14 CStr函數(shù) 211
12.15 CVar函數(shù) 211
12.15.1 知識(shí)講解 211
12.15.2 典型應(yīng)用 212
12.16 CDate函數(shù) 212
12.16.1 知識(shí)講解 212
12.16.2 典型應(yīng)用 213
12.17 CBool函數(shù) 214
12.17.1 知識(shí)講解 214
12.17.2 典型應(yīng)用 214
12.18 CByte函數(shù) 215
12.19 CCur函數(shù) 215
12.19.1 知識(shí)講解 216
12.19.2 典型應(yīng)用 216
12.20 CDbl函數(shù) 216
12.20.1 知識(shí)講解 216
12.20.2 典型應(yīng)用 217
12.21 CDec函數(shù) 217
12.21.1 知識(shí)講解 218
12.21.2 典型應(yīng)用 218
第13章 顏色處理類(lèi)函數(shù) 219
13.1 RGB函數(shù) 220
13.1.1 知識(shí)講解 220
13.1.2 典型應(yīng)用 220
13.2 QBColor函數(shù) 223
13.2.1 知識(shí)講解 224
13.2.2 典型應(yīng)用 224
第14章 判斷類(lèi)函數(shù) 227
14.1 IsArray函數(shù) 228
14.1.1 知識(shí)講解 228
14.1.2 典型應(yīng)用 228
14.2 IsEmpty函數(shù) 230
14.2.1 知識(shí)講解 230
14.2.2 典型應(yīng)用 231
14.3 IsMissing函數(shù) 232
14.3.1 知識(shí)講解 232
14.3.2 典型應(yīng)用 232
14.4 IsNull函數(shù) 233
14.4.1 知識(shí)講解 233
14.4.2 典型應(yīng)用 233
14.5 IsNumeric函數(shù) 235
14.5.1 知識(shí)講解 235
14.5.2 典型應(yīng)用 236
14.6 IsObject函數(shù) 237
14.6.1 知識(shí)講解 237
14.6.2 典型應(yīng)用 237
14.7 VarType函數(shù) 238
14.7.1 知識(shí)講解 238
14.7.2 典型應(yīng)用 240
第15章 系統(tǒng)控制類(lèi)函數(shù) 243
15.1 DoEvents函數(shù) 244
15.1.1 知識(shí)講解 244
15.1.2 典型應(yīng)用 244
15.2 Environ函數(shù) 246
15.2.1 知識(shí)講解 246
15.2.2 典型應(yīng)用 246
15.3 Choose函數(shù) 247
15.3.1 知識(shí)講解 247
15.3.2 典型應(yīng)用 247
15.4 Command函數(shù) 249
15.4.1 知識(shí)講解 249
15.4.2 典型應(yīng)用 249
15.5 CreateObject函數(shù) 249
15.5.1 知識(shí)講解 249
15.5.2 典型應(yīng)用 250
15.6 CurDir函數(shù) 254
15.6.1 知識(shí)講解 254
15.6.2 典型應(yīng)用 254
15.7 GetAllSettings函數(shù) 255
15.7.1 知識(shí)講解 255
15.7.2 典型應(yīng)用 256
15.8 GetAutoServerSettings函數(shù) 256
15.8.1 知識(shí)講解 256
15.8.2 典型應(yīng)用 257
15.9 GetSetting函數(shù) 257
15.9.1 知識(shí)講解 257
15.9.2 典型應(yīng)用 258
第16章 異常處理類(lèi)函數(shù) 259
16.1 Error函數(shù) 260
16.1.1 知識(shí)講解 260
16.1.2 典型應(yīng)用 260
16.2 IsError函數(shù) 261
16.2.1 知識(shí)講解 261
16.2.2 典型應(yīng)用 262
16.3 CVErr函數(shù) 263
16.3.1 知識(shí)講解 263
16.3.2 典型應(yīng)用 263
第17章 其他一些相關(guān)的函數(shù) 265
17.1 TypeName函數(shù) 266
17.1.1 知識(shí)講解 266
17.1.2 典型應(yīng)用 266
17.2 LBound函數(shù) 267
17.2.1 知識(shí)講解 267
17.2.2 典型應(yīng)用 268
17.3 UBound函數(shù) 269
17.3.1 知識(shí)講解 269
17.3.2 典型應(yīng)用 269
17.4 LoadResData函數(shù) 269
17.4.1 知識(shí)講解 269
17.4.2 典型應(yīng)用 270
17.5 LoadResString函數(shù) 272
17.5.1 知識(shí)講解 272
17.5.2 典型應(yīng)用 272
第18章 自定義函數(shù)及過(guò)程基礎(chǔ) 275
18.1 函數(shù)、過(guò)程概述 276
18.1.1 函數(shù)過(guò)程 276
18.1.2 子過(guò)程 278
18.2 函數(shù)、過(guò)程調(diào)用 278
18.2.1 調(diào)用Function函數(shù) 279
18.2.2 調(diào)用Sub過(guò)程 279
18.3 參數(shù)傳遞 279
18.3.1 形參與實(shí)參 279
18.3.2 引用 279
18.3.3 傳值 280
18.4 數(shù)組實(shí)參 280
18.5 對(duì)象參數(shù) 280
18.6 可選參數(shù)與可變參數(shù) 280
18.6.1 可選參數(shù) 281
18.6.2 可變參數(shù) 281
第19章 自定義函數(shù)及過(guò)程的應(yīng)用 283
19.1 設(shè)置控件狀態(tài)的函數(shù) 284
19.1.1 設(shè)置控件不可用的函數(shù)(ObjectState函數(shù)) 284
19.1.2 設(shè)置工具欄按鈕可用或不可用的函數(shù)(TlbState函數(shù)) 285
19.2 用于計(jì)算的函數(shù) 287
19.2.1 相加函數(shù)(AddPay函數(shù)) 287
19.2.2 求平均值的函數(shù)(ave函數(shù)) 288
19.3 字符串處理的函數(shù) 288
19.3.1 獲取漢字拼音簡(jiǎn)碼的函數(shù)(py函數(shù)) 288
19.3.2 獲取中文字符串長(zhǎng)度的函數(shù)(CLen函數(shù)) 294
19.3.3 獲取子中文字符串的函數(shù)(CSubStr函數(shù)) 294
19.4 數(shù)據(jù)庫(kù)相關(guān)函數(shù) 295
19.4.1 數(shù)據(jù)連接函數(shù)(Cnn函數(shù)) 295
19.4.2 數(shù)據(jù)匯總函數(shù)(Sum函數(shù)) 296
19.5 自定義過(guò)程 297
19.5.1 定義顯示數(shù)據(jù)的過(guò)程(View_Data過(guò)程) 297
19.5.2 定義設(shè)置控件狀態(tài)的過(guò)程(Control_State過(guò)程) 297
第20章 語(yǔ)句 299
20.1 AppActivate語(yǔ)句 302
20.1.1 知識(shí)講解 302
20.1.2 典型應(yīng)用 303
20.2 Beep語(yǔ)句 303
20.2.1 知識(shí)講解 304
20.2.2 典型應(yīng)用 304
20.3 Call語(yǔ)句 304
20.3.1 知識(shí)講解 304
20.3.2 典型應(yīng)用 305
20.4 ChDir語(yǔ)句 306
20.5 ChDrive語(yǔ)句 306
20.6 Close語(yǔ)句 307
20.7 Const語(yǔ)句 307
20.8 Date語(yǔ)句 308
20.8.1 知識(shí)講解 309
20.8.2 典型應(yīng)用 309
20.9 Declare語(yǔ)句 309
20.9.1 知識(shí)講解 309
20.9.2 典型應(yīng)用 311
20.10 Deftype語(yǔ)句 312
20.11 DeleteSetting語(yǔ)句 313
20.12 Dim語(yǔ)句 314
20.13 Do...Loop語(yǔ)句 315
20.14 End語(yǔ)句 317
20.15 Enum語(yǔ)句 318
20.16 Erase語(yǔ)句 319
20.17 Error語(yǔ)句 320
20.17.1 知識(shí)講解 320
20.17.2 典型應(yīng)用 321
20.18 Event語(yǔ)句 321
20.19 Exit語(yǔ)句 322
20.19.1 知識(shí)講解 322
20.19.2 典型應(yīng)用 323
20.20 FileCopy語(yǔ)句 324
20.20.1 知識(shí)講解 324
20.20.2 典型應(yīng)用 324
20.21 For Each...Next語(yǔ)句 326
20.22 For...Next語(yǔ)句 327
20.23 Function語(yǔ)句 328
20.24 Get語(yǔ)句 330
20.25 GoSub...Return語(yǔ)句 331
20.26 GoTo語(yǔ)句 332
20.26.1 知識(shí)講解 332
20.26.2 典型應(yīng)用 333
20.27 If...Then...Else語(yǔ)句 333
20.27.1 知識(shí)講解 333
20.27.2 典型應(yīng)用 334
20.28 Implements語(yǔ)句 335
20.29 Input #語(yǔ)句 335
20.29.1 知識(shí)講解 335
20.29.2 典型應(yīng)用 336
20.30 Kill語(yǔ)句 336
20.30.1 知識(shí)講解 336
20.30.2 典型應(yīng)用 337
20.31 Let語(yǔ)句 338
20.32 Line Input #語(yǔ)句 338
20.32.1 知識(shí)講解 339
20.32.2 典型應(yīng)用 339
20.33 Load語(yǔ)句 340
20.34 Lock、Unlock語(yǔ)句 340
20.35 LSet語(yǔ)句 341
20.36 Mid語(yǔ)句 342
20.37 MkDir語(yǔ)句 343
20.37.1 知識(shí)講解 343
20.37.2 典型應(yīng)用 343
20.38 Name語(yǔ)句 346
20.38.1 知識(shí)講解 346
20.38.2 典型應(yīng)用 346
20.39 On Error語(yǔ)句 347
20.39.1 知識(shí)講解 347
20.39.2 典型應(yīng)用 348
20.40 On...GoSub、On...GoTo語(yǔ)句 348
20.41 Open語(yǔ)句 349
20.42 Option Base語(yǔ)句 350
20.42.1 知識(shí)講解 350
20.42.2 典型應(yīng)用 351
20.43 Option Compare語(yǔ)句 352
20.43.1 知識(shí)講解 352
20.43.2 典型應(yīng)用 352
20.44 Option Explicit語(yǔ)句 353
20.45 Option Private語(yǔ)句 354
20.46 Print #語(yǔ)句 354
20.46.1 知識(shí)講解 354
20.46.2 典型應(yīng)用 355
20.47 Private語(yǔ)句 356
20.48 Property Get語(yǔ)句 356
20.49 Property Let語(yǔ)句 358
20.50 Property Set語(yǔ)句 359
20.51 Public語(yǔ)句 360
20.52 Put語(yǔ)句 361
20.52.1 知識(shí)講解 361
20.52.2 典型應(yīng)用 361
20.53 RaiseEvent語(yǔ)句 363
20.53.1 知識(shí)講解 363
20.53.2 典型應(yīng)用 363
20.54 Randomize語(yǔ)句 365
20.54.1 知識(shí)講解 365
20.54.2 典型應(yīng)用 365
20.55 ReDim語(yǔ)句 366
20.55.1 知識(shí)講解 366
20.55.2 典型應(yīng)用 366
20.56 Rem語(yǔ)句 367
20.57 Reset語(yǔ)句 368
20.58 Resume語(yǔ)句 368
20.59 RmDir語(yǔ)句 369
20.59.1 知識(shí)講解 369
20.59.2 典型應(yīng)用 370
20.60 RSet語(yǔ)句 371
20.61 SavePicture語(yǔ)句 372
20.61.1 知識(shí)講解 372
20.61.2 典型應(yīng)用 372
20.62 SaveSetting語(yǔ)句 374
20.62.1 知識(shí)講解 374
20.62.2 典型應(yīng)用 375
20.63 Seek語(yǔ)句 376
20.64 Select Case語(yǔ)句 377
20.64.1 知識(shí)講解 377
20.64.2 典型應(yīng)用 377
20.65 SendKeys語(yǔ)句 379
20.65.1 知識(shí)講解 379
20.65.2 典型應(yīng)用 379
20.66 Set語(yǔ)句 380
20.66.1 知識(shí)講解 380
20.66.2 典型應(yīng)用 381
20.67 SetAttr語(yǔ)句 382
20.67.1 知識(shí)講解 382
20.67.2 典型應(yīng)用 382
20.68 Static語(yǔ)句 385
20.68.1 知識(shí)講解 386
20.68.2 典型應(yīng)用 386
20.69 Stop語(yǔ)句 387
20.70 Sub語(yǔ)句 388
20.70.1 知識(shí)講解 388
20.70.2 典型應(yīng)用 389
20.71 Time語(yǔ)句 389
20.71.1 知識(shí)講解 389
20.71.2 典型應(yīng)用 390
20.72 Type語(yǔ)句 391
20.73 Unload語(yǔ)句 392
20.73.1 知識(shí)講解 392
20.73.2 典型應(yīng)用 392
20.74 While...Wend語(yǔ)句 393
20.74.1 知識(shí)講解 393
20.74.2 典型應(yīng)用 393
20.75 Width #語(yǔ)句 394
20.76 With語(yǔ)句 394
20.76.1 知識(shí)講解 395
20.76.2 典型應(yīng)用 395
20.77 Write #語(yǔ)句 396
第21章 API函數(shù)基礎(chǔ) 397
21.1 API函數(shù)的基本概念 398
21.2 API函數(shù)的使用方法 398
21.2.1 API函數(shù)聲明 398
21.2.2 API文本瀏覽器 398
21.2.3 把聲明、常量或類(lèi)型復(fù)制到VB代碼中 401
第22章 窗體與窗口函數(shù) 405
22.1 AdjustWindowRect、AdjustWindowRectEx函數(shù) 409
22.2 AnyPopup函數(shù) 409
22.3 ArrangeIconicWindows函數(shù) 409
22.4 AttachThreadInput函數(shù) 410
22.5 BeginDeferWindowPos函數(shù) 410
22.6 BringWindowToTop函數(shù) 410
22.7 CascadeWindows、CascadeWindowsBynum函數(shù) 411
22.8 ChileWindowFromPoint、ChildWindowFromPointEx函數(shù) 411
22.9 ClientToScreen函數(shù) 412
22.9.1 知識(shí)講解 412
22.9.2 典型應(yīng)用 412
22.10 CloseWindow函數(shù) 413
22.11 CopyRect函數(shù) 413
22.12 CreateCompatibleBitmap函數(shù) 414
22.12.1 知識(shí)講解 414
22.12.2 典型應(yīng)用 414
22.13 CreateEllipticRgn函數(shù) 415
22.13.1 知識(shí)講解 415
22.13.2 典型應(yīng)用 415
22.14 DeferWindowPos函數(shù) 415
22.15 DestroyWindow函數(shù) 416
22.16 DrawAnimatedRects函數(shù) 416
22.17 EnumChildWindows函數(shù) 417
22.18 EnumThreadWindows函數(shù) 417
22.19 EnableWindow函數(shù) 418
22.20 EndDeferWindowPos函數(shù) 418
22.21 EnumWindows函數(shù) 418
22.22 EqualRect函數(shù) 419
22.23 FindWindow函數(shù) 419
22.23.1 知識(shí)講解 419
22.23.2 典型應(yīng)用 419
22.24 FindWindowEx函數(shù) 421
22.24.1 知識(shí)講解 421
22.24.2 典型應(yīng)用 421
22.25 FlashWindow函數(shù) 421
22.25.1 知識(shí)講解 421
22.25.2 典型應(yīng)用 421
22.26 GetActiveWindow函數(shù) 422
22.27 GetCapture函數(shù) 422
22.28 GetClassInfo、GetClassInfoEx函數(shù) 423
22.29 GetClassLong函數(shù) 423
22.30 GetClassName函數(shù) 424
22.30.1 知識(shí)講解 424
22.30.2 典型應(yīng)用 424
22.31 GetClassWord函數(shù) 426
22.32 GetClientRect函數(shù) 426
22.33 GetDesktopWindow函數(shù) 426
22.34 GetFocus函數(shù) 427
22.35 GetForegroundWindow函數(shù) 427
22.36 GetLastActivePopup函數(shù) 427
22.37 GetParent函數(shù) 427
22.38 GetTopWindow函數(shù) 428
22.39 GetSystemMenu函數(shù) 428
22.39.1 知識(shí)講解 428
22.39.2 典型應(yīng)用 428
22.40 GetUpdateRect函數(shù) 429
22.41 GetWindow函數(shù) 429
22.42 GetWindowContextHelpID函數(shù) 430
22.43 GetWindowLong函數(shù) 430
22.43.1 知識(shí)講解 430
22.43.2 典型應(yīng)用 431
22.44 GetWindowPlacement函數(shù) 432
22.45 GetWindowRect函數(shù) 432
22.45.1 知識(shí)講解 432
22.45.2 典型應(yīng)用 432
22.46 GetWindowText函數(shù) 435
22.46.1 知識(shí)講解 435
22.46.2 典型應(yīng)用 436
22.47 GetWindowTextLength函數(shù) 436
22.47.1 知識(shí)講解 436
22.47.2 典型應(yīng)用 437
22.48 GetWindowThreadProcessID函數(shù) 437
22.48.1 知識(shí)講解 437
22.48.2 典型應(yīng)用 437
22.49 InflateRect函數(shù) 438
22.50 IntersectRect函數(shù) 439
22.51 InvalidateRect、InvalidateRectBynum函數(shù) 439
22.52 IsChild函數(shù) 439
22.53 IsIconic函數(shù) 440
22.54 IsWindow函數(shù) 440
22.55 IsWindowEnabled函數(shù) 440
22.56 IsWindowUnicode函數(shù) 441
22.57 IsWindowVisible函數(shù) 441
22.58 IsZoomed函數(shù) 441
22.59 LockWindowUpdate函數(shù) 442
22.60 MoveWindow函數(shù) 442
22.61 OffsetRect函數(shù) 442
22.62 OpenIcon函數(shù) 443
22.63 PtInRect函數(shù) 443
22.64 RedrawWindow函數(shù) 443
22.65 ReleaseCapture函數(shù) 444
22.66 RemoveMenu函數(shù) 444
22.66.1 知識(shí)講解 444
22.66.2 典型應(yīng)用 445
22.67 ScreenToClient函數(shù) 445
22.68 ScrollWindow函數(shù) 445
22.69 ScrollWindowEx函數(shù) 446
22.70 SendMessage函數(shù) 446
22.70.1 知識(shí)講解 446
22.70.2 典型應(yīng)用 447
22.71 SetActiveWindow函數(shù) 447
22.72 SetCapture函數(shù) 448
22.73 SetClassLong函數(shù) 448
22.74 SetWindowContexHelpID函數(shù) 448
22.75 SetClassWord函數(shù) 449
22.76 SetFocus、SetFocusAPI函數(shù) 449
22.77 SetForegroundWindow函數(shù) 449
22.78 SetParent函數(shù) 450
22.78.1 知識(shí)講解 450
22.78.2 典型應(yīng)用 450
22.79 SetRect函數(shù) 451
22.80 SetRectEmpty函數(shù) 451
22.81 SubtractRect函數(shù) 452
22.82 SetWindowLong函數(shù) 452
22.82.1 知識(shí)講解 452
22.82.2 典型應(yīng)用 452
22.83 SetWindowPlacement函數(shù) 454
22.84 SetWindowRgn函數(shù) 454
22.84.1 知識(shí)講解 454
22.84.2 典型應(yīng)用 455
22.85 SetWindowText函數(shù) 455
22.85.1 知識(shí)講解 455
22.85.2 典型應(yīng)用 456
22.86 SetWindowPos函數(shù) 456
22.86.1 知識(shí)講解 456
22.86.2 典型應(yīng)用 457
22.87 SetWindowWord函數(shù) 458
22.88 Sleep函數(shù) 458
22.88.1 知識(shí)講解 458
22.88.2 典型應(yīng)用 458
22.89 ShowOwnedPopups函數(shù) 459
22.90 ShowWindowAsync函數(shù) 459
22.91 ShowWindow函數(shù) 460
22.92 TileWindows函數(shù) 460
22.93 UpdateWindow函數(shù) 461
22.94 ValiateRect函數(shù) 461
22.95 WindowFromPoint函數(shù) 461
第23章 Windows系統(tǒng)函數(shù) 463
23.1 ActivateKeyboardLayout函數(shù) 467
23.2 Beep函數(shù) 468
23.3 CharToOem函數(shù)CharToOemBuff函數(shù) 468
23.4 ClientToScreen函數(shù) 468
23.4.1 知識(shí)講解 468
23.4.2 典型應(yīng)用 469
23.5 ClipCursor函數(shù) 469
23.5.1 知識(shí)講解 469
23.5.2 典型應(yīng)用 470
23.6 ConvertDefaultLocale函數(shù) 471
23.7 CreateCaret函數(shù) 471
23.8 DestroyCaret函數(shù) 472
23.9 EnumCalendarInfo函數(shù) 472
23.10 EnumDateFormats函數(shù) 472
23.11 EnumSystemCodePages函數(shù) 473
23.12 EnumTimeFormats函數(shù) 473
23.13 ExitWindowsEx函數(shù) 474
23.13.1 知識(shí)講解 474
23.13.2 典型應(yīng)用 474
23.14 ExpandEnvironmentStrings函數(shù) 476
23.15 FindWindow函數(shù) 476
23.15.1 知識(shí)講解 476
23.15.2 典型應(yīng)用 477
23.16 FreeEnvironmentStrings函數(shù) 477
23.17 GetACP函數(shù) 478
23.18 GetAsyncKeyState函數(shù) 478
23.19 GetCaretBlinkTime函數(shù) 479
23.20 GetCarePos函數(shù) 479
23.21 GetClientRect函數(shù) 479
23.21.1 知識(shí)講解 479
23.21.2 典型應(yīng)用 480
23.22 GetClipCursor函數(shù) 480
23.23 GetComputerName函數(shù) 481
23.23.1 知識(shí)講解 481
23.23.2 典型應(yīng)用 481
23.24 GetCPInfo函數(shù) 481
23.25 GetCurrencyFormat、GetCurrencyFormatByNum函數(shù) 482
23.26 GetCursor函數(shù) 482
23.27 GetCursorPos函數(shù) 482
23.28 GetDateFormat函數(shù) 483
23.29 GetDoubleClickTime函數(shù) 483
23.30 GetKBCodePage函數(shù) 483
23.31 GetEnvironmentStrings函數(shù) 484
23.32 GetEnvironmentVariable函數(shù) 484
23.33 GetKeyboardLayout函數(shù) 484
23.34 GetKeyboardLayoutList函數(shù) 485
23.35 GetKeyboardLayoutName函數(shù) 485
23.36 GetKeyboardState函數(shù) 485
23.37 GetKeyboardType函數(shù) 486
23.38 GetKeyNameText函數(shù) 486
23.39 GetKeyState函數(shù) 487
23.40 GetLastError函數(shù) 487
23.41 GetLocaleInfo函數(shù) 488
23.42 GetLocalTime函數(shù) 488
23.43 GetOEMCP函數(shù) 488
23.44 GetNumberFormat函數(shù)、GetNumberFormatByNum函數(shù) 489
23.45 GetQueueStatus函數(shù) 489
23.46 GetSysColor函數(shù) 490
23.47 GetSystemDefaultLangID函數(shù) 491
23.48 GetSystemDefaultLCID函數(shù) 491
23.49 GetSystemDirectory函數(shù) 491
23.49.1 知識(shí)講解 491
23.49.2 典型應(yīng)用 492
23.50 GetSystemInfo函數(shù) 493
23.51 GetSystemMetrics函數(shù) 493
23.52 GetSystemPowerStatus函數(shù) 495
23.53 GetSystemTime函數(shù) 495
23.54 GetSystemTimeAdjustment函數(shù) 495
23.55 GetThreadLocale函數(shù) 496
23.56 GetTickCount函數(shù) 496
23.57 GetTimeFormat函數(shù) 496
23.58 GetTimeZoneInformation函數(shù) 497
23.59 GetUserDefaultLangID函數(shù) 497
23.60 GetUserDefaultLCID函數(shù) 497
23.61 GetUserName函數(shù) 497
23.61.1 知識(shí)講解 497
23.61.2 典型應(yīng)用 498
23.62 GetVersion函數(shù) 499
23.63 GetVersionEx函數(shù) 499
23.63.1 知識(shí)講解 499
23.63.2 典型應(yīng)用 499
23.64 GetVolumeInformation函數(shù) 500
23.64.1 知識(shí)講解 500
23.64.2 典型應(yīng)用 501
23.65 GetWindowsDirectory函數(shù) 501
23.65.1 知識(shí)講解 501
23.65.2 典型應(yīng)用 502
23.66 GetWindowText函數(shù) 503
23.66.1 知識(shí)講解 503
23.66.2 典型應(yīng)用 503
23.67 GlobalMemoryStatus函數(shù) 503
23.68 HideCaret函數(shù) 504
23.69 IsValidCodePage函數(shù) 504
23.70 IsValidLocale函數(shù) 505
23.71 Keybd_event函數(shù) 505
23.72 LoadKeyboardLayout函數(shù) 505
23.73 MapVirtualKey函數(shù) 506
23.74 MapVirtualKeyEx函數(shù) 507
23.75 MessageBeep函數(shù) 507
23.76 Mouse_event函數(shù) 508
23.77 OemKeyScan函數(shù) 508
23.78 OemToChar、OemToCharBuff函數(shù) 509
23.79 SetCapture函數(shù) 509
23.79.1 知識(shí)講解 509
23.79.2 典型應(yīng)用 510
23.80 SetComputerName函數(shù) 510
23.80.1 知識(shí)講解 510
23.80.2 典型應(yīng)用 511
23.81 SetCursor函數(shù) 512
23.82 SetCursorPos函數(shù) 512
23.83 SetDoubleClickTime函數(shù) 512
23.83.1 知識(shí)講解 512
23.83.2 典型應(yīng)用 512
23.84 SetEnvironmentVariable函數(shù) 513
23.85 SetKeyboardState函數(shù) 513
23.86 SetLocaleInfo函數(shù) 514
23.87 SetLocalTime函數(shù) 514
23.88 SetSysColors函數(shù) 514
23.89 SetSystemTime函數(shù) 515
23.90 SetSystemTimeAdjustment函數(shù) 515
23.91 SetThreadLocale函數(shù) 516
23.92 SetTimeZoneInformation函數(shù) 516
23.93 ShellExecute函數(shù) 516
23.93.1 知識(shí)講解 516
23.93.2 典型應(yīng)用 517
23.94 Shell_NotifyIcon函數(shù) 517
23.94.1 知識(shí)講解 517
23.94.2 典型應(yīng)用 518
23.95 SHEmptyRecycleBin函數(shù) 519
23.95.1 知識(shí)講解 519
23.95.2 典型應(yīng)用 520
23.96 ShowCaret函數(shù) 521
23.97 ShowCursor函數(shù) 521
23.97.1 知識(shí)講解 521
23.97.2 典型應(yīng)用 522
23.98 SystemParametersInfo、SystemParametersInfoByVal函數(shù) 522
23.99 SystemTimeToTzSpecificLocalTime函數(shù) 525
23.100 SwapMouseButton函數(shù) 526
23.101 ToAscii、ToAsciiEx函數(shù) 526
23.102 ToUnicode函數(shù) 527
23.103 UnloadKeyboardLayout函數(shù) 528
23.104 VkKeyScan、VkeyScanEx函數(shù) 528
第24章 文件及磁盤(pán)操作函數(shù) 529
24.1 CDdoor函數(shù) 531
24.1.1 知識(shí)講解 531
24.1.2 典型應(yīng)用 531
24.2 CreateDirectoryEx函數(shù) 532
24.3 CreateFile函數(shù) 532
24.4 CopyFile函數(shù) 533
24.5 DeleteFile函數(shù) 534
24.6 DrawIcon函數(shù) 534
24.6.1 知識(shí)講解 534
24.6.2 典型應(yīng)用 534
24.7 ExtractIcon函數(shù) 535
24.7.1 知識(shí)講解 535
24.7.2 典型應(yīng)用 535
24.8 fCreateShellLink函數(shù) 536
24.8.1 知識(shí)講解 536
24.8.2 典型應(yīng)用 536
24.9 FindClose 537
24.10 FindFirstFile、FindNextFile函數(shù) 537
24.10.1 知識(shí)講解 537
24.10.2 典型應(yīng)用 538
24.11 GetDiskFreeSpace函數(shù) 539
24.11.1 知識(shí)講解 539
24.11.2 典型應(yīng)用 539
24.12 GetDriveType函數(shù) 540
24.12.1 知識(shí)講解 540
24.12.2 典型應(yīng)用 541
24.13 GetLogicalDrives函數(shù) 542
24.14 GetFileAttributes函數(shù) 542
24.15 GetFileSize函數(shù) 542
24.16 GetFileVersionInfo函數(shù) 542
24.17 GetFileVersionInfoSize函數(shù) 543
24.18 GetPrivateProfileInt函數(shù) 543
24.19 GetPrivateProfileSection函數(shù) 544
24.20 GetPrivateProfileString函數(shù) 544
24.21 GetProfileInt函數(shù) 545
24.22 GetProfileSection函數(shù) 545
24.23 GetProfileString函數(shù) 546
24.24 GetSystemDirectory函數(shù) 546
24.25 GetTempPath函數(shù) 547
24.26 MoveFile、MoveFileEx函數(shù) 547
24.27 SetVolumeLabel函數(shù) 548
24.28 SHFormatDrive函數(shù) 548
24.28.1 知識(shí)講解 548
24.28.2 典型應(yīng)用 549
24.29 SHFileOperation函數(shù) 549
24.29.1 知識(shí)講解 549
24.29.2 典型應(yīng)用 550
24.30 WinHelp函數(shù) 552
24.30.1 知識(shí)講解 552
24.30.2 典型應(yīng)用 552
24.31 WritePrivateProfileSection函數(shù) 553
24.32 WritePrivateProfileString函數(shù) 553
24.32.1 知識(shí)講解 553
24.32.2 典型應(yīng)用 554
24.33 WriteProfileSection函數(shù) 554
24.34 WriteProfileString函數(shù) 555
24.34.1 知識(shí)講解 555
24.34.2 典型應(yīng)用 555
24.35 VerQueryValue函數(shù) 556
第25章 圖形、圖像與多媒體函數(shù) 557
25.1 BitBlt函數(shù) 559
25.1.1 知識(shí)講解 559
25.1.2 典型應(yīng)用 559
25.2 CopyImage函數(shù) 560
25.3 CreateBitmap函數(shù) 561
25.4 CreateBitmapIndirect函數(shù) 561
25.5 CreateCompatibleBitmap函數(shù) 561
25.6 CreateDIBitmap函數(shù) 562
25.7 CreateDIBSection函數(shù) 562
25.8 CreatePen函數(shù) 563
25.8.1 知識(shí)講解 563
25.8.2 典型應(yīng)用 564
25.9 Ellipse函數(shù) 565
25.9.1 知識(shí)講解 565
25.9.2 典型應(yīng)用 565
25.10 GetBitmapBits函數(shù) 566
25.11 GetBitmapDimensionEx函數(shù) 567
25.12 GetDIBColorTable函數(shù) 567
25.13 GetDIBits函數(shù) 567
25.14 GetPixel函數(shù) 568
25.14.1 知識(shí)講解 568
25.14.2 典型應(yīng)用 568
25.15 GetShortPathName函數(shù) 569
25.15.1 知識(shí)講解 569
25.15.2 典型應(yīng)用 569
25.16 GetStretchBltMode函數(shù) 570
25.17 LoadBitmap、LoadBitmapBynum函數(shù) 570
25.18 LoadImage、LoadImageBynum函數(shù) 571
25.19 MaskBlt函數(shù) 571
25.20 mciExecute函數(shù) 572
25.20.1 知識(shí)講解 572
25.20.2 典型應(yīng)用 573
25.21 mciGetErrorString函數(shù) 573
25.21.1 知識(shí)講解 573
25.21.2 典型應(yīng)用 573
25.22 mciSendString函數(shù) 574
25.22.1 知識(shí)講解 574
25.22.2 典型應(yīng)用 575
25.23 PatBlt函數(shù) 576
25.24 PlaySound函數(shù) 576
25.24.1 知識(shí)講解 576
25.24.2 典型應(yīng)用 577
25.25 PlgBlt函數(shù) 577
25.26 Rectangle函數(shù) 578
25.26.1 知識(shí)講解 578
25.26.2 典型應(yīng)用 578
25.27 SetBitmapBits函數(shù) 579
25.28 SetBitmapDimensinEx函數(shù) 579
25.29 SetDIBColorTable函數(shù) 579
25.30 SetDIBits函數(shù) 580
25.31 SetDIBitsToDevice函數(shù) 580
25.32 SetPixel函數(shù) 581
25.32.1 知識(shí)講解 581
25.32.2 典型應(yīng)用 581
25.33 SetStretchBltMode函數(shù) 582
25.34 SndPlaySound函數(shù) 583
25.34.1 知識(shí)講解 583
25.34.2 典型應(yīng)用 584
25.35 StretchBlt函數(shù) 584
25.35.1 知識(shí)講解 584
25.35.2 典型應(yīng)用 584
25.36 StretchDIBits函數(shù) 586
25.37 waveOutGetVolume函數(shù) 587
25.37.1 知識(shí)講解 587
25.37.2 典型應(yīng)用 587
25.38 waveOutSetVolume函數(shù) 588
25.38.1 知識(shí)講解 588
25.38.2 典型應(yīng)用 589
第26章 注冊(cè)表相關(guān)函數(shù) 591
26.1 注冊(cè)表基礎(chǔ) 592
26.1.1 認(rèn)識(shí)注冊(cè)表 592
26.1.2 主鍵及數(shù)據(jù)類(lèi)型的對(duì)應(yīng)常數(shù) 592
26.1.3 注冊(cè)表相關(guān)API函數(shù)概述 594
26.2 RegCreateKey函數(shù) 595
26.2.1 知識(shí)講解 595
26.2.2 典型應(yīng)用 595
26.3 RegDeleteValue函數(shù) 596
26.3.1 知識(shí)講解 596
26.3.2 典型應(yīng)用 596
26.4 RegCloseKey函數(shù) 596
26.4.1 知識(shí)講解 596
26.4.2 典型應(yīng)用 597
26.5 RegOpenKey函數(shù) 597
26.5.1 知識(shí)講解 597
26.5.2 典型應(yīng)用 597
26.6 RegSetValueEx函數(shù) 597
26.6.1 知識(shí)講解 597
26.6.2 典型應(yīng)用 598
26.7 RegQueryValueEx函數(shù) 599
26.7.1 知識(shí)講解 599
26.7.2 典型應(yīng)用 599
26.8 RegDeleteKey函數(shù) 600
26.8.1 知識(shí)講解 600
26.8.2 典型應(yīng)用 601
第27章 網(wǎng)絡(luò)相關(guān)函數(shù) 603
27.1 IcmpSendEcho函數(shù) 604
27.1.1 知識(shí)講解 604
27.1.2 典型應(yīng)用 605
27.2 InternetAttemptConnect函數(shù) 608
27.2.1 知識(shí)講解 608
27.2.2 典型應(yīng)用 608
27.3 InternetCheckConnection函數(shù) 609
27.3.1 知識(shí)講解 609
27.3.2 典型應(yīng)用 609
27.4 InternetGetConnectedStateEx函數(shù) 609
27.4.1 知識(shí)講解 609
27.4.2 典型應(yīng)用 610
27.5 Netbios函數(shù) 610
27.5.1 知識(shí)講解 610
27.5.2 典型應(yīng)用 611
27.6 WNetAddConnection函數(shù) 612
27.6.1 知識(shí)講解 612
27.6.2 典型應(yīng)用 613
27.7 WNetCancelConnection函數(shù) 614
27.7.1 知識(shí)講解 614
27.7.2 典型應(yīng)用 614
27.8 WNetCloseEnum 615
27.9 WNetConnectionDialog函數(shù) 615
27.9.1 知識(shí)講解 615
27.9.2 典型應(yīng)用 615
27.10 WNetDisConnectionDialog函數(shù) 616
27.10.1 知識(shí)講解 616
27.10.2 典型應(yīng)用 616
27.11 WNetEnumResource函數(shù) 617
27.12 WNetGetConnection函數(shù) 617
27.13 WNetGetLastError函數(shù) 618
27.14 WNetGetUniversaIName函數(shù) 618
27.15 WNetGetUser函數(shù) 619
27.16 WNetOpenEnum函數(shù) 619
附錄 Visual Basic函數(shù)索引 621

  
序言:
譯者序:
作者簡(jiǎn)介:

第1章 函數(shù)基礎(chǔ) 1
1.1 函數(shù) 2
1.1.1 Visual Basic中的函數(shù) 2
1.1.2 在應(yīng)用程序中使用函數(shù) 2
1.2 VB內(nèi)部函數(shù) 2
第2章 數(shù)學(xué)計(jì)算類(lèi)函數(shù) 9
2.1 Sin函數(shù) 10
2.1.1 知識(shí)講解 10
2.1.2 典型應(yīng)用 11
2.2 Cos函數(shù) 16
2.2.1 知識(shí)講解 16
2.2.2 典型應(yīng)用 18
2.3 Sqr函數(shù) 18
2.3.1 知識(shí)講解 18
2.3.2 典型應(yīng)用 18
2.4 Abs函數(shù) 20
2.4.1 知識(shí)講解 20
2.4.2 典型應(yīng)用 21
2.5 Atn函數(shù) 22
2.5.1 知識(shí)講解 22
2.5.2 典型應(yīng)用 22
2.6 Tan函數(shù) 23
2.6.1 知識(shí)講解 23
2.6.2 典型應(yīng)用 23
2.7 Log函數(shù) 24
2.7.1 知識(shí)講解 24
2.7.2 典型應(yīng)用 24
2.8 Sgn函數(shù) 25
2.8.1 知識(shí)講解 25
2.8.2 典型應(yīng)用 26
2.9 Fix函數(shù) 26
2.9.1 知識(shí)講解 26
2.9.2 典型應(yīng)用 27
2.10 Int函數(shù) 28
2.10.1 知識(shí)講解 28
2.10.2 典型應(yīng)用 28
2.11 Round函數(shù) 29
2.11.1 知識(shí)講解 29
2.11.2 典型應(yīng)用 30
2.12 Exp函數(shù) 30
2.12.1 知識(shí)講解 30
2.12.2 典型應(yīng)用 30
第3章 財(cái)務(wù)函數(shù) 33
3.1 IPmt函數(shù) 34
3.1.1 知識(shí)講解 34
3.1.2 典型應(yīng)用 35
3.2 IRR函數(shù) 36
3.2.1 知識(shí)講解 36
3.2.2 典型應(yīng)用 37
3.3 NPer函數(shù) 38
3.3.1 知識(shí)講解 38
3.3.2 典型應(yīng)用 39
3.4 NPV函數(shù) 39
3.4.1 知識(shí)講解 39
3.4.2 典型應(yīng)用 40
3.5 PPmt函數(shù) 40
3.6 Pmt函數(shù) 41
3.6.1 知識(shí)講解 41
3.6.2 典型應(yīng)用 42
3.7 PV函數(shù) 43
3.8 FV函數(shù) 44
3.9 Rate函數(shù) 45
3.9.1 知識(shí)講解 45
3.9.2 典型應(yīng)用 45
3.10 MIRR函數(shù) 46
3.11 SLN函數(shù) 47
3.11.1 知識(shí)講解 47
3.11.2 典型應(yīng)用 47
3.12 DDB函數(shù) 48
3.12.1 知識(shí)講解 48
3.12.2 典型應(yīng)用 49
3.13 SYD函數(shù) 49
3.13.1 知識(shí)講解 50
3.13.2 典型應(yīng)用 50
第4章 日期時(shí)間類(lèi)函數(shù) 53
4.1 Date函數(shù) 54
4.1.1 知識(shí)講解 54
4.1.2 典型應(yīng)用 55
4.2 DateAdd函數(shù) 56
4.2.1 知識(shí)講解 56
4.2.2 典型應(yīng)用 57
4.3 DateDiff函數(shù) 57
4.3.1 知識(shí)講解 57
4.3.2 典型應(yīng)用 59
4.4 DatePart函數(shù) 61
4.4.1 知識(shí)講解 61
4.4.2 典型應(yīng)用 63
4.5 DateSerial函數(shù) 64
4.5.1 知識(shí)講解 64
4.5.2 典型應(yīng)用 65
4.6 DateValue函數(shù) 66
4.6.1 知識(shí)講解 66
4.6.2 典型應(yīng)用 66
4.7 Day函數(shù) 67
4.7.1 知識(shí)講解 67
4.7.2 典型應(yīng)用 67
4.8 IsDate函數(shù) 68
4.8.1 知識(shí)講解 68
4.8.2 典型應(yīng)用 68
4.9 Minute函數(shù) 69
4.9.1 知識(shí)講解 69
4.9.2 典型應(yīng)用 70
4.10 Month函數(shù) 70
4.10.1 知識(shí)講解 70
4.10.2 典型應(yīng)用 70
4.11 MonthName函數(shù) 71
4.11.1 知識(shí)講解 71
4.11.2 典型應(yīng)用 72
4.12 Now函數(shù) 73
4.12.1 知識(shí)講解 73
4.12.2 典型應(yīng)用 73
4.13 Second函數(shù) 74
4.13.1 知識(shí)講解 74
4.13.2 典型應(yīng)用 74
4.14 Time函數(shù) 75
4.14.1 知識(shí)講解 75
4.14.2 典型應(yīng)用 75
4.15 Timer函數(shù) 76
4.15.1 知識(shí)講解 76
4.15.2 典型應(yīng)用 76
4.16 TimeSerial函數(shù) 77
4.16.1 知識(shí)講解 77
4.16.2 典型應(yīng)用 78
4.17 TimeValue函數(shù) 78
4.17.1 知識(shí)講解 78
4.17.2 典型應(yīng)用 79
4.18 Weekday函數(shù) 79
4.18.1 知識(shí)講解 79
4.18.2 典型應(yīng)用 80
4.19 WeekdayName函數(shù) 81
4.19.1 知識(shí)講解 81
4.19.2 典型應(yīng)用 82
4.20 Year函數(shù) 83
4.20.1 知識(shí)講解 83
4.20.2 典型應(yīng)用 83
4.21 Hour函數(shù) 85
4.21.1 知識(shí)講解 85
4.21.2 典型應(yīng)用 86
第5章 字符串處理函數(shù) 87
5.1 Len函數(shù) 88
5.1.1 知識(shí)講解 88
5.1.2 典型應(yīng)用 89
5.2 Left函數(shù) 91
5.2.1 知識(shí)講解 91
5.2.2 典型應(yīng)用 91
5.3 Right函數(shù) 94
5.3.1 知識(shí)講解 94
5.3.2 典型應(yīng)用 94
5.4 Mid函數(shù) 96
5.4.1 知識(shí)講解 96
5.4.2 典型應(yīng)用 97
5.5 Instr函數(shù) 99
5.5.1 知識(shí)講解 100
5.5.2 典型應(yīng)用 100
5.6 InStrRev函數(shù) 102
5.7 Replace函數(shù) 104
5.8 StrReverse函數(shù) 105
5.9 Trim函數(shù) 105
5.9.1 知識(shí)講解 105
5.9.2 典型應(yīng)用 106
5.10 LTrim函數(shù) 106
5.11 RTrim函數(shù) 107
5.12 LCase函數(shù) 107
5.12.1 知識(shí)講解 107
5.12.2 典型應(yīng)用 108
5.13 UCase函數(shù) 108
5.13.1 知識(shí)講解 109
5.13.2 典型應(yīng)用 109
5.14 StrConv函數(shù) 110
5.14.1 知識(shí)講解 110
5.14.2 典型應(yīng)用 111
5.15 String函數(shù) 112
5.16 Space函數(shù) 113
5.16.1 知識(shí)講解 113
5.16.2 典型應(yīng)用 113
5.17 StrComp函數(shù) 114
5.17.1 知識(shí)講解 114
5.17.2 典型應(yīng)用 116
5.18 Join函數(shù) 117
5.18.1 知識(shí)講解 117
5.18.2 典型應(yīng)用 118
5.19 Split函數(shù) 118
5.19.1 知識(shí)講解 119
5.19.2 典型應(yīng)用 120
5.20 Filter函數(shù) 121
5.21 Array函數(shù) 121
5.21.1 知識(shí)講解 122
5.21.2 典型應(yīng)用 122
第6章 格式化函數(shù) 125
6.1 Format函數(shù) 126
6.1.1 知識(shí)講解 126
6.1.2 典型應(yīng)用 128
6.2 FormatDateTime函數(shù) 129
6.2.1 知識(shí)講解 130
6.2.2 典型應(yīng)用 130
6.3 FormatCurrency函數(shù) 131
6.3.1 知識(shí)講解 131
6.3.2 典型應(yīng)用 132
6.4 FormatNumber函數(shù) 133
6.4.1 知識(shí)講解 133
6.4.2 典型應(yīng)用 134
6.5 FormatPercent函數(shù) 134
6.5.1 知識(shí)講解 134
6.5.2 典型應(yīng)用 135
第7章 文件處理類(lèi)函數(shù) 139
7.1 Dir函數(shù) 140
7.1.1 知識(shí)講解 140
7.1.2 典型應(yīng)用 141
7.2 FileLen函數(shù) 143
7.2.1 知識(shí)講解 143
7.2.2 典型應(yīng)用 143
7.3 FileDateTime函數(shù) 144
7.3.1 知識(shí)講解 144
7.3.2 典型應(yīng)用 144
7.4 EOF函數(shù) 145
7.4.1 知識(shí)講解 145
7.4.2 典型應(yīng)用 145
7.5 FileAttr函數(shù) 146
7.5.1 知識(shí)講解 146
7.5.2 典型應(yīng)用 147
7.6 FreeFile函數(shù) 148
7.6.1 知識(shí)講解 148
7.6.2 典型應(yīng)用 148
7.7 GetObject函數(shù) 149
7.7.1 知識(shí)講解 149
7.7.2 典型應(yīng)用 150
7.8 Input函數(shù) 151
7.8.1 知識(shí)講解 151
7.8.2 典型應(yīng)用 152
7.9 Loc函數(shù) 153
7.9.1 知識(shí)講解 153
7.9.2 典型應(yīng)用 153
7.10 LOF函數(shù) 154
7.10.1 知識(shí)講解 155
7.10.2 典型應(yīng)用 155
7.11 Seek函數(shù) 156
7.11.1 知識(shí)講解 156
7.11.2 典型應(yīng)用 156
7.12 Tab函數(shù) 157
7.12.1 知識(shí)講解 157
7.12.2 典型應(yīng)用 158
7.13 spc函數(shù) 160
7.13.1 知識(shí)講解 161
7.13.2 典型應(yīng)用 161
7.14 GetAttr函數(shù) 162
7.14.1 知識(shí)講解 162
7.14.2 典型應(yīng)用 163
第8章 程序語(yǔ)法類(lèi)函數(shù) 165
8.1 IIF函數(shù) 166
8.1.1 知識(shí)講解 166
8.1.2 典型應(yīng)用 166
8.2 Switch函數(shù) 168
8.2.1 知識(shí)講解 169
8.2.2 典型應(yīng)用 169
8.3 Shell函數(shù) 170
8.3.1 知識(shí)講解 170
8.3.2 典型應(yīng)用 171
第9章 對(duì)話(huà)框類(lèi)函數(shù) 175
9.1 MsgBox函數(shù) 176
9.1.1 知識(shí)講解 176
9.1.2 典型應(yīng)用 178
9.2 InputBox函數(shù) 179
9.2.1 知識(shí)講解 179
9.2.2 典型應(yīng)用 180
9.3 Filter函數(shù) 181
9.3.1 知識(shí)講解 181
9.3.2 典型應(yīng)用 182
第10章 隨機(jī)類(lèi)函數(shù) 183
10.1 Randomize函數(shù) 184
10.1.1 知識(shí)講解 184
10.1.2 典型應(yīng)用 184
10.2 Rnd函數(shù) 184
10.2.1 知識(shí)講解 185
10.2.2 典型應(yīng)用 186
第11章 圖形圖像處理類(lèi)函數(shù) 191
11.1 LoadPicture函數(shù) 192
11.1.1 知識(shí)講解 192
11.1.2 典型應(yīng)用 193
11.2 LoadResPicture函數(shù) 194
11.2.1 知識(shí)講解 194
11.2.2 典型應(yīng)用 195
第12章 進(jìn)制與字符轉(zhuǎn)換類(lèi)函數(shù) 197
12.1 Oct函數(shù) 198
12.1.1 知識(shí)講解 198
12.1.2 典型應(yīng)用 199
12.2 Hex函數(shù) 199
12.2.1 知識(shí)講解 199
12.2.2 典型應(yīng)用 200
12.3 Asc函數(shù) 200
12.3.1 知識(shí)講解 200
12.3.2 典型應(yīng)用 200
12.4 AscB函數(shù) 204
12.4.1 知識(shí)講解 204
12.4.2 典型應(yīng)用 204
12.5 AscW函數(shù) 204
12.5.1 知識(shí)講解 204
12.5.2 典型應(yīng)用 204
12.6 Chr函數(shù) 205
12.6.1 知識(shí)講解 205
12.6.2 典型應(yīng)用 205
12.7 ChrB函數(shù) 206
12.7.1 知識(shí)講解 206
12.7.2 典型應(yīng)用 206
12.8 ChrW函數(shù) 206
12.8.1 知識(shí)講解 206
12.8.2 典型應(yīng)用 207
12.9 Val函數(shù) 207
12.9.1 知識(shí)講解 207
12.9.2 典型應(yīng)用 207
12.10 Str函數(shù) 208
12.10.1 知識(shí)講解 208
12.10.2 典型應(yīng)用 208
12.11 CInt函數(shù) 208
12.11.1 知識(shí)講解 208
12.11.2 典型應(yīng)用 209
12.12 CLng函數(shù) 209
12.12.1 知識(shí)講解 209
12.12.2 典型應(yīng)用 210
12.13 CSng函數(shù) 210
12.14 CStr函數(shù) 211
12.15 CVar函數(shù) 211
12.15.1 知識(shí)講解 211
12.15.2 典型應(yīng)用 212
12.16 CDate函數(shù) 212
12.16.1 知識(shí)講解 212
12.16.2 典型應(yīng)用 213
12.17 CBool函數(shù) 214
12.17.1 知識(shí)講解 214
12.17.2 典型應(yīng)用 214
12.18 CByte函數(shù) 215
12.19 CCur函數(shù) 215
12.19.1 知識(shí)講解 216
12.19.2 典型應(yīng)用 216
12.20 CDbl函數(shù) 216
12.20.1 知識(shí)講解 216
12.20.2 典型應(yīng)用 217
12.21 CDec函數(shù) 217
12.21.1 知識(shí)講解 218
12.21.2 典型應(yīng)用 218
第13章 顏色處理類(lèi)函數(shù) 219
13.1 RGB函數(shù) 220
13.1.1 知識(shí)講解 220
13.1.2 典型應(yīng)用 220
13.2 QBColor函數(shù) 223
13.2.1 知識(shí)講解 224
13.2.2 典型應(yīng)用 224
第14章 判斷類(lèi)函數(shù) 227
14.1 IsArray函數(shù) 228
14.1.1 知識(shí)講解 228
14.1.2 典型應(yīng)用 228
14.2 IsEmpty函數(shù) 230
14.2.1 知識(shí)講解 230
14.2.2 典型應(yīng)用 231
14.3 IsMissing函數(shù) 232
14.3.1 知識(shí)講解 232
14.3.2 典型應(yīng)用 232
14.4 IsNull函數(shù) 233
14.4.1 知識(shí)講解 233
14.4.2 典型應(yīng)用 233
14.5 IsNumeric函數(shù) 235
14.5.1 知識(shí)講解 235
14.5.2 典型應(yīng)用 236
14.6 IsObject函數(shù) 237
14.6.1 知識(shí)講解 237
14.6.2 典型應(yīng)用 237
14.7 VarType函數(shù) 238
14.7.1 知識(shí)講解 238
14.7.2 典型應(yīng)用 240
第15章 系統(tǒng)控制類(lèi)函數(shù) 243
15.1 DoEvents函數(shù) 244
15.1.1 知識(shí)講解 244
15.1.2 典型應(yīng)用 244
15.2 Environ函數(shù) 246
15.2.1 知識(shí)講解 246
15.2.2 典型應(yīng)用 246
15.3 Choose函數(shù) 247
15.3.1 知識(shí)講解 247
15.3.2 典型應(yīng)用 247
15.4 Command函數(shù) 249
15.4.1 知識(shí)講解 249
15.4.2 典型應(yīng)用 249
15.5 CreateObject函數(shù) 249
15.5.1 知識(shí)講解 249
15.5.2 典型應(yīng)用 250
15.6 CurDir函數(shù) 254
15.6.1 知識(shí)講解 254
15.6.2 典型應(yīng)用 254
15.7 GetAllSettings函數(shù) 255
15.7.1 知識(shí)講解 255
15.7.2 典型應(yīng)用 256
15.8 GetAutoServerSettings函數(shù) 256
15.8.1 知識(shí)講解 256
15.8.2 典型應(yīng)用 257
15.9 GetSetting函數(shù) 257
15.9.1 知識(shí)講解 257
15.9.2 典型應(yīng)用 258
第16章 異常處理類(lèi)函數(shù) 259
16.1 Error函數(shù) 260
16.1.1 知識(shí)講解 260
16.1.2 典型應(yīng)用 260
16.2 IsError函數(shù) 261
16.2.1 知識(shí)講解 261
16.2.2 典型應(yīng)用 262
16.3 CVErr函數(shù) 263
16.3.1 知識(shí)講解 263
16.3.2 典型應(yīng)用 263
第17章 其他一些相關(guān)的函數(shù) 265
17.1 TypeName函數(shù) 266
17.1.1 知識(shí)講解 266
17.1.2 典型應(yīng)用 266
17.2 LBound函數(shù) 267
17.2.1 知識(shí)講解 267
17.2.2 典型應(yīng)用 268
17.3 UBound函數(shù) 269
17.3.1 知識(shí)講解 269
17.3.2 典型應(yīng)用 269
17.4 LoadResData函數(shù) 269
17.4.1 知識(shí)講解 269
17.4.2 典型應(yīng)用 270
17.5 LoadResString函數(shù) 272
17.5.1 知識(shí)講解 272
17.5.2 典型應(yīng)用 272
第18章 自定義函數(shù)及過(guò)程基礎(chǔ) 275
18.1 函數(shù)、過(guò)程概述 276
18.1.1 函數(shù)過(guò)程 276
18.1.2 子過(guò)程 278
18.2 函數(shù)、過(guò)程調(diào)用 278
18.2.1 調(diào)用Function函數(shù) 279
18.2.2 調(diào)用Sub過(guò)程 279
18.3 參數(shù)傳遞 279
18.3.1 形參與實(shí)參 279
18.3.2 引用 279
18.3.3 傳值 280
18.4 數(shù)組實(shí)參 280
18.5 對(duì)象參數(shù) 280
18.6 可選參數(shù)與可變參數(shù) 280
18.6.1 可選參數(shù) 281
18.6.2 可變參數(shù) 281
第19章 自定義函數(shù)及過(guò)程的應(yīng)用 283
19.1 設(shè)置控件狀態(tài)的函數(shù) 284
19.1.1 設(shè)置控件不可用的函數(shù)(ObjectState函數(shù)) 284
19.1.2 設(shè)置工具欄按鈕可用或不可用的函數(shù)(TlbState函數(shù)) 285
19.2 用于計(jì)算的函數(shù) 287
19.2.1 相加函數(shù)(AddPay函數(shù)) 287
19.2.2 求平均值的函數(shù)(ave函數(shù)) 288
19.3 字符串處理的函數(shù) 288
19.3.1 獲取漢字拼音簡(jiǎn)碼的函數(shù)(py函數(shù)) 288
19.3.2 獲取中文字符串長(zhǎng)度的函數(shù)(CLen函數(shù)) 294
19.3.3 獲取子中文字符串的函數(shù)(CSubStr函數(shù)) 294
19.4 數(shù)據(jù)庫(kù)相關(guān)函數(shù) 295
19.4.1 數(shù)據(jù)連接函數(shù)(Cnn函數(shù)) 295
19.4.2 數(shù)據(jù)匯總函數(shù)(Sum函數(shù)) 296
19.5 自定義過(guò)程 297
19.5.1 定義顯示數(shù)據(jù)的過(guò)程(View_Data過(guò)程) 297
19.5.2 定義設(shè)置控件狀態(tài)的過(guò)程(Control_State過(guò)程) 297
第20章 語(yǔ)句 299
20.1 AppActivate語(yǔ)句 302
20.1.1 知識(shí)講解 302
20.1.2 典型應(yīng)用 303
20.2 Beep語(yǔ)句 303
20.2.1 知識(shí)講解 304
20.2.2 典型應(yīng)用 304
20.3 Call語(yǔ)句 304
20.3.1 知識(shí)講解 304
20.3.2 典型應(yīng)用 305
20.4 ChDir語(yǔ)句 306
20.5 ChDrive語(yǔ)句 306
20.6 Close語(yǔ)句 307
20.7 Const語(yǔ)句 307
20.8 Date語(yǔ)句 308
20.8.1 知識(shí)講解 309
20.8.2 典型應(yīng)用 309
20.9 Declare語(yǔ)句 309
20.9.1 知識(shí)講解 309
20.9.2 典型應(yīng)用 311
20.10 Deftype語(yǔ)句 312
20.11 DeleteSetting語(yǔ)句 313
20.12 Dim語(yǔ)句 314
20.13 Do...Loop語(yǔ)句 315
20.14 End語(yǔ)句 317
20.15 Enum語(yǔ)句 318
20.16 Erase語(yǔ)句 319
20.17 Error語(yǔ)句 320
20.17.1 知識(shí)講解 320
20.17.2 典型應(yīng)用 321
20.18 Event語(yǔ)句 321
20.19 Exit語(yǔ)句 322
20.19.1 知識(shí)講解 322
20.19.2 典型應(yīng)用 323
20.20 FileCopy語(yǔ)句 324
20.20.1 知識(shí)講解 324
20.20.2 典型應(yīng)用 324
20.21 For Each...Next語(yǔ)句 326
20.22 For...Next語(yǔ)句 327
20.23 Function語(yǔ)句 328
20.24 Get語(yǔ)句 330
20.25 GoSub...Return語(yǔ)句 331
20.26 GoTo語(yǔ)句 332
20.26.1 知識(shí)講解 332
20.26.2 典型應(yīng)用 333
20.27 If...Then...Else語(yǔ)句 333
20.27.1 知識(shí)講解 333
20.27.2 典型應(yīng)用 334
20.28 Implements語(yǔ)句 335
20.29 Input #語(yǔ)句 335
20.29.1 知識(shí)講解 335
20.29.2 典型應(yīng)用 336
20.30 Kill語(yǔ)句 336
20.30.1 知識(shí)講解 336
20.30.2 典型應(yīng)用 337
20.31 Let語(yǔ)句 338
20.32 Line Input #語(yǔ)句 338
20.32.1 知識(shí)講解 339
20.32.2 典型應(yīng)用 339
20.33 Load語(yǔ)句 340
20.34 Lock、Unlock語(yǔ)句 340
20.35 LSet語(yǔ)句 341
20.36 Mid語(yǔ)句 342
20.37 MkDir語(yǔ)句 343
20.37.1 知識(shí)講解 343
20.37.2 典型應(yīng)用 343
20.38 Name語(yǔ)句 346
20.38.1 知識(shí)講解 346
20.38.2 典型應(yīng)用 346
20.39 On Error語(yǔ)句 347
20.39.1 知識(shí)講解 347
20.39.2 典型應(yīng)用 348
20.40 On...GoSub、On...GoTo語(yǔ)句 348
20.41 Open語(yǔ)句 349
20.42 Option Base語(yǔ)句 350
20.42.1 知識(shí)講解 350
20.42.2 典型應(yīng)用 351
20.43 Option Compare語(yǔ)句 352
20.43.1 知識(shí)講解 352
20.43.2 典型應(yīng)用 352
20.44 Option Explicit語(yǔ)句 353
20.45 Option Private語(yǔ)句 354
20.46 Print #語(yǔ)句 354
20.46.1 知識(shí)講解 354
20.46.2 典型應(yīng)用 355
20.47 Private語(yǔ)句 356
20.48 Property Get語(yǔ)句 356
20.49 Property Let語(yǔ)句 358
20.50 Property Set語(yǔ)句 359
20.51 Public語(yǔ)句 360
20.52 Put語(yǔ)句 361
20.52.1 知識(shí)講解 361
20.52.2 典型應(yīng)用 361
20.53 RaiseEvent語(yǔ)句 363
20.53.1 知識(shí)講解 363
20.53.2 典型應(yīng)用 363
20.54 Randomize語(yǔ)句 365
20.54.1 知識(shí)講解 365
20.54.2 典型應(yīng)用 365
20.55 ReDim語(yǔ)句 366
20.55.1 知識(shí)講解 366
20.55.2 典型應(yīng)用 366
20.56 Rem語(yǔ)句 367
20.57 Reset語(yǔ)句 368
20.58 Resume語(yǔ)句 368
20.59 RmDir語(yǔ)句 369
20.59.1 知識(shí)講解 369
20.59.2 典型應(yīng)用 370
20.60 RSet語(yǔ)句 371
20.61 SavePicture語(yǔ)句 372
20.61.1 知識(shí)講解 372
20.61.2 典型應(yīng)用 372
20.62 SaveSetting語(yǔ)句 374
20.62.1 知識(shí)講解 374
20.62.2 典型應(yīng)用 375
20.63 Seek語(yǔ)句 376
20.64 Select Case語(yǔ)句 377
20.64.1 知識(shí)講解 377
20.64.2 典型應(yīng)用 377
20.65 SendKeys語(yǔ)句 379
20.65.1 知識(shí)講解 379
20.65.2 典型應(yīng)用 379
20.66 Set語(yǔ)句 380
20.66.1 知識(shí)講解 380
20.66.2 典型應(yīng)用 381
20.67 SetAttr語(yǔ)句 382
20.67.1 知識(shí)講解 382
20.67.2 典型應(yīng)用 382
20.68 Static語(yǔ)句 385
20.68.1 知識(shí)講解 386
20.68.2 典型應(yīng)用 386
20.69 Stop語(yǔ)句 387
20.70 Sub語(yǔ)句 388
20.70.1 知識(shí)講解 388
20.70.2 典型應(yīng)用 389
20.71 Time語(yǔ)句 389
20.71.1 知識(shí)講解 389
20.71.2 典型應(yīng)用 390
20.72 Type語(yǔ)句 391
20.73 Unload語(yǔ)句 392
20.73.1 知識(shí)講解 392
20.73.2 典型應(yīng)用 392
20.74 While...Wend語(yǔ)句 393
20.74.1 知識(shí)講解 393
20.74.2 典型應(yīng)用 393
20.75 Width #語(yǔ)句 394
20.76 With語(yǔ)句 394
20.76.1 知識(shí)講解 395
20.76.2 典型應(yīng)用 395
20.77 Write #語(yǔ)句 396
第21章 API函數(shù)基礎(chǔ) 397
21.1 API函數(shù)的基本概念 398
21.2 API函數(shù)的使用方法 398
21.2.1 API函數(shù)聲明 398
21.2.2 API文本瀏覽器 398
21.2.3 把聲明、常量或類(lèi)型復(fù)制到VB代碼中 401
第22章 窗體與窗口函數(shù) 405
22.1 AdjustWindowRect、AdjustWindowRectEx函數(shù) 409
22.2 AnyPopup函數(shù) 409
22.3 ArrangeIconicWindows函數(shù) 409
22.4 AttachThreadInput函數(shù) 410
22.5 BeginDeferWindowPos函數(shù) 410
22.6 BringWindowToTop函數(shù) 410
22.7 CascadeWindows、CascadeWindowsBynum函數(shù) 411
22.8 ChileWindowFromPoint、ChildWindowFromPointEx函數(shù) 411
22.9 ClientToScreen函數(shù) 412
22.9.1 知識(shí)講解 412
22.9.2 典型應(yīng)用 412
22.10 CloseWindow函數(shù) 413
22.11 CopyRect函數(shù) 413
22.12 CreateCompatibleBitmap函數(shù) 414
22.12.1 知識(shí)講解 414
22.12.2 典型應(yīng)用 414
22.13 CreateEllipticRgn函數(shù) 415
22.13.1 知識(shí)講解 415
22.13.2 典型應(yīng)用 415
22.14 DeferWindowPos函數(shù) 415
22.15 DestroyWindow函數(shù) 416
22.16 DrawAnimatedRects函數(shù) 416
22.17 EnumChildWindows函數(shù) 417
22.18 EnumThreadWindows函數(shù) 417
22.19 EnableWindow函數(shù) 418
22.20 EndDeferWindowPos函數(shù) 418
22.21 EnumWindows函數(shù) 418
22.22 EqualRect函數(shù) 419
22.23 FindWindow函數(shù) 419
22.23.1 知識(shí)講解 419
22.23.2 典型應(yīng)用 419
22.24 FindWindowEx函數(shù) 421
22.24.1 知識(shí)講解 421
22.24.2 典型應(yīng)用 421
22.25 FlashWindow函數(shù) 421
22.25.1 知識(shí)講解 421
22.25.2 典型應(yīng)用 421
22.26 GetActiveWindow函數(shù) 422
22.27 GetCapture函數(shù) 422
22.28 GetClassInfo、GetClassInfoEx函數(shù) 423
22.29 GetClassLong函數(shù) 423
22.30 GetClassName函數(shù) 424
22.30.1 知識(shí)講解 424
22.30.2 典型應(yīng)用 424
22.31 GetClassWord函數(shù) 426
22.32 GetClientRect函數(shù) 426
22.33 GetDesktopWindow函數(shù) 426
22.34 GetFocus函數(shù) 427
22.35 GetForegroundWindow函數(shù) 427
22.36 GetLastActivePopup函數(shù) 427
22.37 GetParent函數(shù) 427
22.38 GetTopWindow函數(shù) 428
22.39 GetSystemMenu函數(shù) 428
22.39.1 知識(shí)講解 428
22.39.2 典型應(yīng)用 428
22.40 GetUpdateRect函數(shù) 429
22.41 GetWindow函數(shù) 429
22.42 GetWindowContextHelpID函數(shù) 430
22.43 GetWindowLong函數(shù) 430
22.43.1 知識(shí)講解 430
22.43.2 典型應(yīng)用 431
22.44 GetWindowPlacement函數(shù) 432
22.45 GetWindowRect函數(shù) 432
22.45.1 知識(shí)講解 432
22.45.2 典型應(yīng)用 432
22.46 GetWindowText函數(shù) 435
22.46.1 知識(shí)講解 435
22.46.2 典型應(yīng)用 436
22.47 GetWindowTextLength函數(shù) 436
22.47.1 知識(shí)講解 436
22.47.2 典型應(yīng)用 437
22.48 GetWindowThreadProcessID函數(shù) 437
22.48.1 知識(shí)講解 437
22.48.2 典型應(yīng)用 437
22.49 InflateRect函數(shù) 438
22.50 IntersectRect函數(shù) 439
22.51 InvalidateRect、InvalidateRectBynum函數(shù) 439
22.52 IsChild函數(shù) 439
22.53 IsIconic函數(shù) 440
22.54 IsWindow函數(shù) 440
22.55 IsWindowEnabled函數(shù) 440
22.56 IsWindowUnicode函數(shù) 441
22.57 IsWindowVisible函數(shù) 441
22.58 IsZoomed函數(shù) 441
22.59 LockWindowUpdate函數(shù) 442
22.60 MoveWindow函數(shù) 442
22.61 OffsetRect函數(shù) 442
22.62 OpenIcon函數(shù) 443
22.63 PtInRect函數(shù) 443
22.64 RedrawWindow函數(shù) 443
22.65 ReleaseCapture函數(shù) 444
22.66 RemoveMenu函數(shù) 444
22.66.1 知識(shí)講解 444
22.66.2 典型應(yīng)用 445
22.67 ScreenToClient函數(shù) 445
22.68 ScrollWindow函數(shù) 445
22.69 ScrollWindowEx函數(shù) 446
22.70 SendMessage函數(shù) 446
22.70.1 知識(shí)講解 446
22.70.2 典型應(yīng)用 447
22.71 SetActiveWindow函數(shù) 447
22.72 SetCapture函數(shù) 448
22.73 SetClassLong函數(shù) 448
22.74 SetWindowContexHelpID函數(shù) 448
22.75 SetClassWord函數(shù) 449
22.76 SetFocus、SetFocusAPI函數(shù) 449
22.77 SetForegroundWindow函數(shù) 449
22.78 SetParent函數(shù) 450
22.78.1 知識(shí)講解 450
22.78.2 典型應(yīng)用 450
22.79 SetRect函數(shù) 451
22.80 SetRectEmpty函數(shù) 451
22.81 SubtractRect函數(shù) 452
22.82 SetWindowLong函數(shù) 452
22.82.1 知識(shí)講解 452
22.82.2 典型應(yīng)用 452
22.83 SetWindowPlacement函數(shù) 454
22.84 SetWindowRgn函數(shù) 454
22.84.1 知識(shí)講解 454
22.84.2 典型應(yīng)用 455
22.85 SetWindowText函數(shù) 455
22.85.1 知識(shí)講解 455
22.85.2 典型應(yīng)用 456
22.86 SetWindowPos函數(shù) 456
22.86.1 知識(shí)講解 456
22.86.2 典型應(yīng)用 457
22.87 SetWindowWord函數(shù) 458
22.88 Sleep函數(shù) 458
22.88.1 知識(shí)講解 458
22.88.2 典型應(yīng)用 458
22.89 ShowOwnedPopups函數(shù) 459
22.90 ShowWindowAsync函數(shù) 459
22.91 ShowWindow函數(shù) 460
22.92 TileWindows函數(shù) 460
22.93 UpdateWindow函數(shù) 461
22.94 ValiateRect函數(shù) 461
22.95 WindowFromPoint函數(shù) 461
第23章 Windows系統(tǒng)函數(shù) 463
23.1 ActivateKeyboardLayout函數(shù) 467
23.2 Beep函數(shù) 468
23.3 CharToOem函數(shù)CharToOemBuff函數(shù) 468
23.4 ClientToScreen函數(shù) 468
23.4.1 知識(shí)講解 468
23.4.2 典型應(yīng)用 469
23.5 ClipCursor函數(shù) 469
23.5.1 知識(shí)講解 469
23.5.2 典型應(yīng)用 470
23.6 ConvertDefaultLocale函數(shù) 471
23.7 CreateCaret函數(shù) 471
23.8 DestroyCaret函數(shù) 472
23.9 EnumCalendarInfo函數(shù) 472
23.10 EnumDateFormats函數(shù) 472
23.11 EnumSystemCodePages函數(shù) 473
23.12 EnumTimeFormats函數(shù) 473
23.13 ExitWindowsEx函數(shù) 474
23.13.1 知識(shí)講解 474
23.13.2 典型應(yīng)用 474
23.14 ExpandEnvironmentStrings函數(shù) 476
23.15 FindWindow函數(shù) 476
23.15.1 知識(shí)講解 476
23.15.2 典型應(yīng)用 477
23.16 FreeEnvironmentStrings函數(shù) 477
23.17 GetACP函數(shù) 478
23.18 GetAsyncKeyState函數(shù) 478
23.19 GetCaretBlinkTime函數(shù) 479
23.20 GetCarePos函數(shù) 479
23.21 GetClientRect函數(shù) 479
23.21.1 知識(shí)講解 479
23.21.2 典型應(yīng)用 480
23.22 GetClipCursor函數(shù) 480
23.23 GetComputerName函數(shù) 481
23.23.1 知識(shí)講解 481
23.23.2 典型應(yīng)用 481
23.24 GetCPInfo函數(shù) 481
23.25 GetCurrencyFormat、GetCurrencyFormatByNum函數(shù) 482
23.26 GetCursor函數(shù) 482
23.27 GetCursorPos函數(shù) 482
23.28 GetDateFormat函數(shù) 483
23.29 GetDoubleClickTime函數(shù) 483
23.30 GetKBCodePage函數(shù) 483
23.31 GetEnvironmentStrings函數(shù) 484
23.32 GetEnvironmentVariable函數(shù) 484
23.33 GetKeyboardLayout函數(shù) 484
23.34 GetKeyboardLayoutList函數(shù) 485
23.35 GetKeyboardLayoutName函數(shù) 485
23.36 GetKeyboardState函數(shù) 485
23.37 GetKeyboardType函數(shù) 486
23.38 GetKeyNameText函數(shù) 486
23.39 GetKeyState函數(shù) 487
23.40 GetLastError函數(shù) 487
23.41 GetLocaleInfo函數(shù) 488
23.42 GetLocalTime函數(shù) 488
23.43 GetOEMCP函數(shù) 488
23.44 GetNumberFormat函數(shù)、GetNumberFormatByNum函數(shù) 489
23.45 GetQueueStatus函數(shù) 489
23.46 GetSysColor函數(shù) 490
23.47 GetSystemDefaultLangID函數(shù) 491
23.48 GetSystemDefaultLCID函數(shù) 491
23.49 GetSystemDirectory函數(shù) 491
23.49.1 知識(shí)講解 491
23.49.2 典型應(yīng)用 492
23.50 GetSystemInfo函數(shù) 493
23.51 GetSystemMetrics函數(shù) 493
23.52 GetSystemPowerStatus函數(shù) 495
23.53 GetSystemTime函數(shù) 495
23.54 GetSystemTimeAdjustment函數(shù) 495
23.55 GetThreadLocale函數(shù) 496
23.56 GetTickCount函數(shù) 496
23.57 GetTimeFormat函數(shù) 496
23.58 GetTimeZoneInformation函數(shù) 497
23.59 GetUserDefaultLangID函數(shù) 497
23.60 GetUserDefaultLCID函數(shù) 497
23.61 GetUserName函數(shù) 497
23.61.1 知識(shí)講解 497
23.61.2 典型應(yīng)用 498
23.62 GetVersion函數(shù) 499
23.63 GetVersionEx函數(shù) 499
23.63.1 知識(shí)講解 499
23.63.2 典型應(yīng)用 499
23.64 GetVolumeInformation函數(shù) 500
23.64.1 知識(shí)講解 500
23.64.2 典型應(yīng)用 501
23.65 GetWindowsDirectory函數(shù) 501
23.65.1 知識(shí)講解 501
23.65.2 典型應(yīng)用 502
23.66 GetWindowText函數(shù) 503
23.66.1 知識(shí)講解 503
23.66.2 典型應(yīng)用 503
23.67 GlobalMemoryStatus函數(shù) 503
23.68 HideCaret函數(shù) 504
23.69 IsValidCodePage函數(shù) 504
23.70 IsValidLocale函數(shù) 505
23.71 Keybd_event函數(shù) 505
23.72 LoadKeyboardLayout函數(shù) 505
23.73 MapVirtualKey函數(shù) 506
23.74 MapVirtualKeyEx函數(shù) 507
23.75 MessageBeep函數(shù) 507
23.76 Mouse_event函數(shù) 508
23.77 OemKeyScan函數(shù) 508
23.78 OemToChar、OemToCharBuff函數(shù) 509
23.79 SetCapture函數(shù) 509
23.79.1 知識(shí)講解 509
23.79.2 典型應(yīng)用 510
23.80 SetComputerName函數(shù) 510
23.80.1 知識(shí)講解 510
23.80.2 典型應(yīng)用 511
23.81 SetCursor函數(shù) 512
23.82 SetCursorPos函數(shù) 512
23.83 SetDoubleClickTime函數(shù) 512
23.83.1 知識(shí)講解 512
23.83.2 典型應(yīng)用 512
23.84 SetEnvironmentVariable函數(shù) 513
23.85 SetKeyboardState函數(shù) 513
23.86 SetLocaleInfo函數(shù) 514
23.87 SetLocalTime函數(shù) 514
23.88 SetSysColors函數(shù) 514
23.89 SetSystemTime函數(shù) 515
23.90 SetSystemTimeAdjustment函數(shù) 515
23.91 SetThreadLocale函數(shù) 516
23.92 SetTimeZoneInformation函數(shù) 516
23.93 ShellExecute函數(shù) 516
23.93.1 知識(shí)講解 516
23.93.2 典型應(yīng)用 517
23.94 Shell_NotifyIcon函數(shù) 517
23.94.1 知識(shí)講解 517
23.94.2 典型應(yīng)用 518
23.95 SHEmptyRecycleBin函數(shù) 519
23.95.1 知識(shí)講解 519
23.95.2 典型應(yīng)用 520
23.96 ShowCaret函數(shù) 521
23.97 ShowCursor函數(shù) 521
23.97.1 知識(shí)講解 521
23.97.2 典型應(yīng)用 522
23.98 SystemParametersInfo、SystemParametersInfoByVal函數(shù) 522
23.99 SystemTimeToTzSpecificLocalTime函數(shù) 525
23.100 SwapMouseButton函數(shù) 526
23.101 ToAscii、ToAsciiEx函數(shù) 526
23.102 ToUnicode函數(shù) 527
23.103 UnloadKeyboardLayout函數(shù) 528
23.104 VkKeyScan、VkeyScanEx函數(shù) 528
第24章 文件及磁盤(pán)操作函數(shù) 529
24.1 CDdoor函數(shù) 531
24.1.1 知識(shí)講解 531
24.1.2 典型應(yīng)用 531
24.2 CreateDirectoryEx函數(shù) 532
24.3 CreateFile函數(shù) 532
24.4 CopyFile函數(shù) 533
24.5 DeleteFile函數(shù) 534
24.6 DrawIcon函數(shù) 534
24.6.1 知識(shí)講解 534
24.6.2 典型應(yīng)用 534
24.7 ExtractIcon函數(shù) 535
24.7.1 知識(shí)講解 535
24.7.2 典型應(yīng)用 535
24.8 fCreateShellLink函數(shù) 536
24.8.1 知識(shí)講解 536
24.8.2 典型應(yīng)用 536
24.9 FindClose 537
24.10 FindFirstFile、FindNextFile函數(shù) 537
24.10.1 知識(shí)講解 537
24.10.2 典型應(yīng)用 538
24.11 GetDiskFreeSpace函數(shù) 539
24.11.1 知識(shí)講解 539
24.11.2 典型應(yīng)用 539
24.12 GetDriveType函數(shù) 540
24.12.1 知識(shí)講解 540
24.12.2 典型應(yīng)用 541
24.13 GetLogicalDrives函數(shù) 542
24.14 GetFileAttributes函數(shù) 542
24.15 GetFileSize函數(shù) 542
24.16 GetFileVersionInfo函數(shù) 542
24.17 GetFileVersionInfoSize函數(shù) 543
24.18 GetPrivateProfileInt函數(shù) 543
24.19 GetPrivateProfileSection函數(shù) 544
24.20 GetPrivateProfileString函數(shù) 544
24.21 GetProfileInt函數(shù) 545
24.22 GetProfileSection函數(shù) 545
24.23 GetProfileString函數(shù) 546
24.24 GetSystemDirectory函數(shù) 546
24.25 GetTempPath函數(shù) 547
24.26 MoveFile、MoveFileEx函數(shù) 547
24.27 SetVolumeLabel函數(shù) 548
24.28 SHFormatDrive函數(shù) 548
24.28.1 知識(shí)講解 548
24.28.2 典型應(yīng)用 549
24.29 SHFileOperation函數(shù) 549
24.29.1 知識(shí)講解 549
24.29.2 典型應(yīng)用 550
24.30 WinHelp函數(shù) 552
24.30.1 知識(shí)講解 552
24.30.2 典型應(yīng)用 552
24.31 WritePrivateProfileSection函數(shù) 553
24.32 WritePrivateProfileString函數(shù) 553
24.32.1 知識(shí)講解 553
24.32.2 典型應(yīng)用 554
24.33 WriteProfileSection函數(shù) 554
24.34 WriteProfileString函數(shù) 555
24.34.1 知識(shí)講解 555
24.34.2 典型應(yīng)用 555
24.35 VerQueryValue函數(shù) 556
第25章 圖形、圖像與多媒體函數(shù) 557
25.1 BitBlt函數(shù) 559
25.1.1 知識(shí)講解 559
25.1.2 典型應(yīng)用 559
25.2 CopyImage函數(shù) 560
25.3 CreateBitmap函數(shù) 561
25.4 CreateBitmapIndirect函數(shù) 561
25.5 CreateCompatibleBitmap函數(shù) 561
25.6 CreateDIBitmap函數(shù) 562
25.7 CreateDIBSection函數(shù) 562
25.8 CreatePen函數(shù) 563
25.8.1 知識(shí)講解 563
25.8.2 典型應(yīng)用 564
25.9 Ellipse函數(shù) 565
25.9.1 知識(shí)講解 565
25.9.2 典型應(yīng)用 565
25.10 GetBitmapBits函數(shù) 566
25.11 GetBitmapDimensionEx函數(shù) 567
25.12 GetDIBColorTable函數(shù) 567
25.13 GetDIBits函數(shù) 567
25.14 GetPixel函數(shù) 568
25.14.1 知識(shí)講解 568
25.14.2 典型應(yīng)用 568
25.15 GetShortPathName函數(shù) 569
25.15.1 知識(shí)講解 569
25.15.2 典型應(yīng)用 569
25.16 GetStretchBltMode函數(shù) 570
25.17 LoadBitmap、LoadBitmapBynum函數(shù) 570
25.18 LoadImage、LoadImageBynum函數(shù) 571
25.19 MaskBlt函數(shù) 571
25.20 mciExecute函數(shù) 572
25.20.1 知識(shí)講解 572
25.20.2 典型應(yīng)用 573
25.21 mciGetErrorString函數(shù) 573
25.21.1 知識(shí)講解 573
25.21.2 典型應(yīng)用 573
25.22 mciSendString函數(shù) 574
25.22.1 知識(shí)講解 574
25.22.2 典型應(yīng)用 575
25.23 PatBlt函數(shù) 576
25.24 PlaySound函數(shù) 576
25.24.1 知識(shí)講解 576
25.24.2 典型應(yīng)用 577
25.25 PlgBlt函數(shù) 577
25.26 Rectangle函數(shù) 578
25.26.1 知識(shí)講解 578
25.26.2 典型應(yīng)用 578
25.27 SetBitmapBits函數(shù) 579
25.28 SetBitmapDimensinEx函數(shù) 579
25.29 SetDIBColorTable函數(shù) 579
25.30 SetDIBits函數(shù) 580
25.31 SetDIBitsToDevice函數(shù) 580
25.32 SetPixel函數(shù) 581
25.32.1 知識(shí)講解 581
25.32.2 典型應(yīng)用 581
25.33 SetStretchBltMode函數(shù) 582
25.34 SndPlaySound函數(shù) 583
25.34.1 知識(shí)講解 583
25.34.2 典型應(yīng)用 584
25.35 StretchBlt函數(shù) 584
25.35.1 知識(shí)講解 584
25.35.2 典型應(yīng)用 584
25.36 StretchDIBits函數(shù) 586
25.37 waveOutGetVolume函數(shù) 587
25.37.1 知識(shí)講解 587
25.37.2 典型應(yīng)用 587
25.38 waveOutSetVolume函數(shù) 588
25.38.1 知識(shí)講解 588
25.38.2 典型應(yīng)用 589
第26章 注冊(cè)表相關(guān)函數(shù) 591
26.1 注冊(cè)表基礎(chǔ) 592
26.1.1 認(rèn)識(shí)注冊(cè)表 592
26.1.2 主鍵及數(shù)據(jù)類(lèi)型的對(duì)應(yīng)常數(shù) 592
26.1.3 注冊(cè)表相關(guān)API函數(shù)概述 594
26.2 RegCreateKey函數(shù) 595
26.2.1 知識(shí)講解 595
26.2.2 典型應(yīng)用 595
26.3 RegDeleteValue函數(shù) 596
26.3.1 知識(shí)講解 596
26.3.2 典型應(yīng)用 596
26.4 RegCloseKey函數(shù) 596
26.4.1 知識(shí)講解 596
26.4.2 典型應(yīng)用 597
26.5 RegOpenKey函數(shù) 597
26.5.1 知識(shí)講解 597
26.5.2 典型應(yīng)用 597
26.6 RegSetValueEx函數(shù) 597
26.6.1 知識(shí)講解 597
26.6.2 典型應(yīng)用 598
26.7 RegQueryValueEx函數(shù) 599
26.7.1 知識(shí)講解 599
26.7.2 典型應(yīng)用 599
26.8 RegDeleteKey函數(shù) 600
26.8.1 知識(shí)講解 600
26.8.2 典型應(yīng)用 601
第27章 網(wǎng)絡(luò)相關(guān)函數(shù) 603
27.1 IcmpSendEcho函數(shù) 604
27.1.1 知識(shí)講解 604
27.1.2 典型應(yīng)用 605
27.2 InternetAttemptConnect函數(shù) 608
27.2.1 知識(shí)講解 608
27.2.2 典型應(yīng)用 608
27.3 InternetCheckConnection函數(shù) 609
27.3.1 知識(shí)講解 609
27.3.2 典型應(yīng)用 609
27.4 InternetGetConnectedStateEx函數(shù) 609
27.4.1 知識(shí)講解 609
27.4.2 典型應(yīng)用 610
27.5 Netbios函數(shù) 610
27.5.1 知識(shí)講解 610
27.5.2 典型應(yīng)用 611
27.6 WNetAddConnection函數(shù) 612
27.6.1 知識(shí)講解 612
27.6.2 典型應(yīng)用 613
27.7 WNetCancelConnection函數(shù) 614
27.7.1 知識(shí)講解 614
27.7.2 典型應(yīng)用 614
27.8 WNetCloseEnum 615
27.9 WNetConnectionDialog函數(shù) 615
27.9.1 知識(shí)講解 615
27.9.2 典型應(yīng)用 615
27.10 WNetDisConnectionDialog函數(shù) 616
27.10.1 知識(shí)講解 616
27.10.2 典型應(yīng)用 616
27.11 WNetEnumResource函數(shù) 617
27.12 WNetGetConnection函數(shù) 617
27.13 WNetGetLastError函數(shù) 618
27.14 WNetGetUniversaIName函數(shù) 618
27.15 WNetGetUser函數(shù) 619
27.16 WNetOpenEnum函數(shù) 619
附錄 Visual Basic函數(shù)索引 621

本目錄推薦

掃描二維碼
Copyright ? 讀書(shū)網(wǎng) ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)