关于窗口操作的一些API介绍。
BOOL SetWindowPos(
HWND hWnd,
HWND hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
UINT uFlags
);
HWND FindWindow(
LPCSTR lpClassName,
LPCSTR lpWindowName
);
int GetWindowTextA(
HWND hWnd,
LPSTR lpString,
int nMaxCount
);
BOOL IsWindow(
HWND hWnd
)
BOOL IsWindowVisible(
HWND hWnd
)
BOOL IsWindowEnabled(
HWND hWnd
)
BOOL SetForegroundWindow(
HWND hWnd
);
HWND GetForegroundWindow()
HWND GetParent(
HWND hWnd
);
BOOL GetWindowRect(
HWND hWnd,
LPRECT lpRect
);
HWND GetDesktopWindow()
void GetNextWindow(
hWnd,
wCmd
);
BOOL IsZoomed(
HWND hWnd
);
BOOL IsIconic(
HWND hWnd
);