**:
資料型別 意義
bool
boolean值(true or false)
bstr
32-bit字元指標
byte
8-bit整數,無正負號
colorref
32-bit數值,代表乙個顏色值
dword
32-bit整數,無正負號
long
32-bit整數,有正負號
lparam
32-bit數值,作為視窗函式或callback函式的乙個引數
lpcstr
32-bit指標,指向乙個常數字串
lpstr
32-bit指標,指向乙個字串
lpctstr
32-bit指標,指向乙個常數字串。此字串可移植到unicode
lptstr
32-bit指標,指向乙個字串。此字串可移植到unicode
lpvoid
32-bit指標,指向乙個未指定型別的資料
lpresult
32-bit數值,作為視窗函式或callback函式的返回值
uint
win16中,16-bit無正負號,win32中,32-bit無正負號
wndproc
32-bit
word
16-bit整數,無正負號
wparam
視窗函式的乙個引數,win16中16bits,win32中32bits
mfc獨特的資料型別
資料型別 意義
position
乙個數值,代表
collection
物件(例如陣列或鍊錶)中的元素位置,常使用於
mfc collection classes
lpcrect
32-bit
指標,指向乙個不變的
rect結構
afx中的全域性函式列表
函式名稱 說明
afxwininit 被
winmain
(由mfc
提供)呼叫的乙個函式用作
mfc gui
程式初始化的一部分
afxbeginthread
開始乙個新的執行緒
afxendthread
結束乙個舊的執行緒
afxformatstring 類似
printf
一般的將字串格式化
afxmessagebox 類似
window api
函式messagebox
afxoutdebugstring
將字串輸往出錯裝置
afxgetinstancehandle
得到當前例項控制代碼
獲得(派生物件)的指標
afxgetmainwnd
獲得程式主視窗的指標
afxgetinstance
獲得程式的
instance handle
afxregisterclass
以自定的
wndclass
註冊視窗類
VC 常用資料型別
型別名 作用handle 控制代碼winapi 乙個巨集 替換的是 stdcall lpvoid 沒有型別的指標 dword double word 登錄檔鍵值 wchar t 寬字元 unicode編碼也是存在這裡面但是不能代表這是unicode的儲存型別 可以使用text 將char轉為wcha...
VC常用資料型別列表
type default size description基礎 型別全是 小寫說明 這些基礎資料型別對於mfc還是api都是被支援的 boolean unsigned 8 bit 取值true false byte unsigned 8 bit,整數,輸出按字元輸出 char unsigned 8 ...
VC常用資料型別列表
type default size description 基 礎類 型 全 是 小 寫 說明 這些基礎資料型別對於mfc還是api都是被支援的 boolean unsigned 8 bit 取值true false byte unsigned 8 bit,整數,輸出按字元輸出 char unsig...