LPCTSTRLP for long pointer, C for const TSTR for char or wchar dependant of compiling setting for your application DLGPROC for a pointer to CALLBACK appliction-defined function, INT_PTR CALLBACK DialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam ); It processes messages sent to a modal or modeless dialog box.
参数类型强制转换 具体意思查看MSDN,有详细解释
LPCTSTR 要操作的对话框标识 DLGPROC 调用对话框时处理消息函数
typedef /* [string] */ const WCHAR __RPC_FAR *LPCWSTR; //宽字符指针 typedef /* [string] */ const TCHAR __RPC_FAR *LPCTSTR; //字符指针。具体命名意义,1楼说的很不错。但有个小trick TSTR for char or wchar dependant of compiling setting for your application 明显:TSTR是 T-CHAR ; WSTR是 W-CHAR
C for const
TSTR for char or wchar dependant of compiling setting for your application
DLGPROC for a pointer to CALLBACK appliction-defined function, INT_PTR CALLBACK DialogProc( HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
It processes messages sent to a modal or modeless dialog box.
具体意思查看MSDN,有详细解释
DLGPROC 调用对话框时处理消息函数
typedef /* [string] */ const TCHAR __RPC_FAR *LPCTSTR; //字符指针。具体命名意义,1楼说的很不错。但有个小trick
TSTR for char or wchar dependant of compiling setting for your application
明显:TSTR是 T-CHAR ; WSTR是 W-CHAR
6楼说的不错,这个About是回调处理函数。