VC++常用技术术语文档格式.docx

上传人:b****6 文档编号:21642771 上传时间:2023-01-31 格式:DOCX 页数:26 大小:28.53KB
下载 相关 举报
VC++常用技术术语文档格式.docx_第1页
第1页 / 共26页
VC++常用技术术语文档格式.docx_第2页
第2页 / 共26页
VC++常用技术术语文档格式.docx_第3页
第3页 / 共26页
VC++常用技术术语文档格式.docx_第4页
第4页 / 共26页
VC++常用技术术语文档格式.docx_第5页
第5页 / 共26页
点击查看更多>>
下载资源
资源描述

VC++常用技术术语文档格式.docx

《VC++常用技术术语文档格式.docx》由会员分享,可在线阅读,更多相关《VC++常用技术术语文档格式.docx(26页珍藏版)》请在冰豆网上搜索。

VC++常用技术术语文档格式.docx

m_pDoc,

l_

局部作用域

l_strName

少用

编程时尽量少用全程变量,对于全程变量还应在类型前缀后加上如下关键字:

特征模块 

Fea

草图模块 

Sket

装配模块 

Asm

工程图模块:

Lay

曲面模块 

Surf

界面模块 

Ui

常用的一般数据类型的前缀

内存规格描述

ch

char

8-bitcharacter

chGrade

TCHAR

16-bitcharacterif_UNICODEisdefined

chName

b

BOOL

Booleanvalue

bEnabled

n

int

Integer(sizedependentonoperatingsystem)

nLength

UINT

Unsignedvalue(sizedependentonoperatingsystem)

w

WORD

16-bitunsignedvalue

wPos

l

LONG

32-bitsignedinteger

lOffset

dw

DWORD

32-bitunsignedinteger

dwRange

p

*

Ambientmemorymodelpointer

pDoc

lp

FAR*

Farpointer

lpDoc

lpsz

LPSTR

32-bitpointertocharacterstring

lpszName

LPCSTR

32-bitpointertoconstantcharacterstring

LPCTSTR

32-bitpointertoconstantcharacterstringif_UNICODEisdefined

h

handle

HandletoWindowsobject

hWnd

lpfn

(*fn)()

callbackFarpointertoCALLBACKfunction

lpfnAbort

常用Windows对象名称缩写

Windows对象

例子变量

MFC类

例子对象

HWND

hWnd;

CWnd*

pWnd;

HDLG

hDlg;

CDialog*

pDlg;

HDC

hDC;

CDC*

pDC;

HGDIOBJ

hGdiObj;

CGdiObject*

pGdiObj;

HPEN

hPen;

CPen*

pPen;

HBRUSH

hBrush;

CBrush*

pBrush;

HFONT

hFont;

CFont*

pFont;

HBITMAP

hBitmap;

CBitmap*

pBitmap;

HPALETTE

hPalette;

CPalette*

pPalette;

HRGN

hRgn;

CRgn*

pRgn;

HMENU

hMenu;

CMenu*

pMenu;

hCtl;

CStatic*

pStatic;

CButton*

pBtn;

CEdit*

pEdit;

CListBox*

pListBox;

CComboBox*

pComboBox;

VisualC++常用宏定义命名列表

符号类型

符号例子

范围

IDR_

标识多个资源共享的类型

IDR_MAINFRAME

1to0x6FFF

IDD_

对话框资源(Dialog)

IDD_SPELL_CHECK

IDB_

位图资源(Bitmap)

IDB_COMPANY_LOGO

IDC_

光标资源(Cursor)

IDC_PENCIL

IDI_

图标资源(Icon)

IDI_NOTEPAD

ID_IDM_

工具栏或菜单栏的命令项

ID_TOOLS_SPELLING

0x8000to0xDFFF

HID_

命令上下文帮助(CommandHelpcontext)

HID_TOOLS_SPELLING

0x18000to0x1DFFF

IDP_

消息框提示文字资源

IDP_INVALID_PARTNO

8to0xDFFF

HIDP_

消息框上下文帮助(Message-boxHelpcontext)

HIDP_INVALID_PARTNO

0x30008to0x3DFFF

IDS_

字符串资源(String)

IDS_COPYRIGHT

1to0x7FFF

对话框内的控制资源(Control)

IDC_RECALC

VISUALC++下的数据类型

含义

ATOM

Atom.Formoreinformation,seeAtoms.

Booleanvariable(shouldbeTRUEorFALSE).

BOOLEAN

BYTE

Byte(8bits).

CALLBACK

Callingconventionforcallbackfunctions.

CHAR

8-bitWindows(ANSI)character.Formoreinformation,seeCharacterSetsUsedByFonts.

COLORREF

Red,green,blue(RGB)colorvalue(32bits).SeeCOLORREFforinformationonthistype.

CONST

Variablewhosevalueistoremainconstantduringexecution.

32-bitunsignedinteger.

DWORD_PTR

Unsignedlongtypeforpointerprecision.Usewhencastingapointertoalongtypetoperformpointerarithmetic.(Alsocommonlyusedforgeneral32-bitparametersthathavebeenextendedto64bitsin64-bitWindows.)

DWORD32

DWORD64

64-bitunsignedinteger.

FLOAT

Floating-pointvariable.

HACCEL

Handletoanacceleratortable.

HANDLE

Handletoanobject.

Handletoabitmap.

Handletoabrush.

HCONV

Handletoadynamicdataexchange(DDE)conversation.

HCONVLIST

HandletoaDDEconversationlist.

HCURSOR

Handletoacursor.

Handletoadevicecontext(DC).

HDDEDATA

HandletoDDEdata.

HDESK

Handletoadesktop.

HDROP

Handletoaninternaldropstructure.

HDWP

Handletoadeferredwindowpositionstructure.

HENHMETAFILE

Handletoanenhancedmetafile.

HFILE

HandletoafileopenedbyOpenFile,notCreateFile.

Handletoafont.

HandletoaGDIobject.

HGLOBAL

Handletoaglobalmemoryblock.

HHOOK

Handletoahook.

HICON

Handletoanicon.

HIMAGELIST

Handletoanimagelist.

HIMC

Handletoinputcontext.

HINSTANCE

Handletoaninstance.

HKEY

Handletoaregistrykey.

HKL

Inputlocaleidentifier.

HLOCAL

Handletoalocalmemoryblock.

Handletoamenu.

HMETAFILE

Handletoametafile.

HMODULE

Handletoamodule.Thevalueisthebaseaddressofthemodule.

HMONITOR

Handletoadisplaymonitor.

Handletoapalette.

Handletoapen.

Handletoaregion.

HRSRC

Handletoaresource.

HSZ

HandletoaDDEstring.

HWINSTA

Handletoawindowstation.

Handletoawindow.

INT

32-bitsignedinteger.

INT_PTR

Signedintegraltypeforpointerprecision.Usewhencastingapointertoanintegertoperformpointerarithmetic.

INT32

INT64

64-bitsignedinteger.

LANGID

Languageidentifier.Formoreinformation,seeLocales.

LCID

Localeidentifier.Formoreinformation,seeLocales.

LCTYPE

Localeinformationtype.Foralist,seeLocaleandLanguageInformation.

32-bitsignedinteger.

LONG_PTR

Signedlongtypeforpointerprecision.Usewhencastingapointertoalongtoperformpointerarithmetic.

LONG32

LONG64

LONGLONG

LPARAM

Messageparameter.

LPBOOL

PointertoaBOOL.

LPBYTE

PointertoaBYTE.

LPCOLORREF

PointertoaCOLORREFvalue.

LPCRITICAL_SECTION

PointertoaCRITICAL_SECTION.

Pointertoaconstantnull-terminatedstringof8-bitWindows(ANSI)characters.Formoreinformation,seeCharacterSetsUsedByFonts.

AnLPCWSTRifUNICODEisdefined,anLPCTSTRotherwise.

LPCVOID

Pointertoaconstantofanytype.

LPCWSTR

Pointertoaconstantnull-terminatedstringof16-bitUnicodecharacters.Formoreinformation,seeCharacterSetsUsedByFonts.

LPDWORD

PointertoaDWORD.

LPHANDLE

PointertoaHANDLE.

LPINT

PointertoanINT.

LPLONG

PointertoaLONG.

Pointertoanull-terminatedstringof8-bitWindows(ANSI)characters.Formoreinformation,seeCharacterSetsUsedByFonts.

LPTSTR

AnLPWSTRifUNICODEisdefined,anLPSTRotherwise.

LPVOID

Pointertoanytype.

LPWORD

PointertoaWORD.

LPWSTR

Pointertoanull-terminatedstringof16-bitUnicodecharacters.Formoreinformation,seeCharacterSetsUsedByFonts.

LRESULT

Signedresultofmessageprocessing.

LUID

Locallyuniqueidentifier.

PBOOL

PointertoaBOOL.

PBOOLEAN

PBYTE

PointertoaBYTE.

PCHAR

PointertoaCHAR.

PCRITICAL_SECTION

PCSTR

PCTSTR

APCWSTRifUNICODEisdefined,aPCSTRotherwise.

PCWCH

PointertoaconstantWCHAR.

PCWSTR

Pointertoaconstantnull-terminatedstringof16-bitUnicodecharacters.Formoreinformation,seeCharacterSetsUsedByFonts.

PDWORD

PFLOAT

PointertoaFLOAT.

PHANDLE

PHKEY

PointertoanHKEY.

PINT

PointertoanINT.

PLCID

PointertoanLCID.

PLONG

PLUID

PointertoaLUID.

POINTER_32

32-bitpointer.Ona32-bitsystem,thisisanativepointer.Ona64-bitsystem,thisisatruncated64-bitpointer.

POINTER_64

64-bitpointer.Ona64-bitsystem,thisisanativepointer.Ona32-bitsystem,thisisasign-extended32-bitpointer.

PSHORT

PointertoaSHORT.

PSTR

PTBYTE

PointertoaTBYTE.

PTCHAR

PointertoaTCHAR.

PTSTR

PWSTRifUNICODEisdefined,aPSTRotherwise.

APWSTRifUNICODEisdefined,aPSTRotherwise.

PUCHAR

PointertoaUCHAR.

PUINT

PointertoaUINT.

PULONG

PointertoaULONG.

PUSHORT

PointertoaUSHORT.

PVOID

PWCHAR

PointertoaWCHAR.

PWORD

PWSTR

REGSAM

Securityaccessmaskforregistrykey.

SC_HANDLE

Handletoaservicecontrolmanagerdatabase.Formoreinformation,seeSCMHandles.

SC_LOCK

Handletoaservicecontrolmanagerdatabaselock.Formoreinformation,seeSCMHandles.

SERVICE_STATUS_HANDLE

Handletoaservicestatusvalue.Formoreinformation,seeSCMHandles.

SHORT

Shortinteger(16bits).

SIZE_T

Themaximumnumberofbytestowhichapointercanpoint.Useforacountthatmustspanthefullrangeofapointer.

SSIZE_T

SignedSIZE_T.

TBYTE

AWCHARifUNICODEisdefined,aCHARotherwise.

UCHAR

UnsignedCHAR.

UnsignedINT.

UINT_PTR

UnsignedINT_PTR.

UINT32

UnsignedINT32.

UINT64

UnsignedINT64.

ULONG

UnsignedLONG.

ULONG_PTR

UnsignedLONG_PTR.

ULONG32

UnsignedLONG32.

ULONG64

UnsignedLONG64.

ULONGLONG

UNSIGNED

Unsignedattribute.

USHORT

UnsignedSHORT.

VOID

Anytype.

WCHAR

16-bitUnicodecharacter.Formoreinformation

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1