Win32 SDK:一般都会让传递HWND hWnd等 int GetWindowText( HWND hWnd, // handle to window or control LPTSTR lpString, // text buffer int nMaxCount // maximum number of characters to copy); ============================= MFC:一般不传HWND hWnd,而且都是类CXX 的成员函数 CWnd::GetWindowText int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;void GetWindowText( CString& rString ) const;
1.我看里面有没有窗体句柄之类的,有的话API概率很高
2.看参数类型,如果参数里面有带Cxxx类型的,多数是MFC
1.番茄插件会提示的,貌似有土黄色的?的都是API
2.打::这个符号后面能出现的函数也是API
int GetWindowText( HWND hWnd, // handle to window or control
LPTSTR lpString, // text buffer
int nMaxCount // maximum number of characters to copy);
=============================
MFC:一般不传HWND hWnd,而且都是类CXX 的成员函数
CWnd::GetWindowText
int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;void GetWindowText( CString& rString ) const;