关于API函数

来源:百度知道 编辑:UC知道 时间:2024/06/08 12:14:30
如何看API函数包括在哪个相应的头文件中?

最简单最直接的办法就是查看MSDN就可以了,查询到函数后直接往下拉就有该函数的说明。如:
BOOL SetWindowPos(
HWND hWnd, // handle to window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
);

Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winuser.h; include Windows.h.
Library: Use User32.lib.

See Also
Windows Overview, Window Functions, MoveWindow, SetActiveWindow, SetForegroundWindow

安装vc助手,然后goto,按快捷键Alt+G,直接会跳到相应头文件

转到定义,右键go to ...

goto definisen 忘了是不是这么拼的了,反正读着发音差不多...