1.1 窗体赋值/取值
SetWindowText(句柄,数据缓存区);
GetWindowText(句柄,数据缓冲区,长度);
1.2 查找窗体
FindWindow(类名, 窗体名);
1.3 切换窗体(显示/隐藏)
typedef void (WINAPI* PSWITCHTOTHISWINDOW) (HWND, BOOL);
PSWITCHTOTHISWINDOW SwitchToThisWindow;
HMODULE hUser32 = LoadLibrary(L"user32.dll");
SwitchToThisWindow = (PSWITCHTOTHISWINDOW)GetProcAddress(hUser32, "SwitchToThisWindow");
SwitchToThisWindow(HWND hwnd, BOOL result);
BOOL ShowWindow(
HWND hWnd,
int nCmdShow
);
BOOL CloseWindow(HWND hwnd);
1.4 查找子窗体
FindWindowExW(
HWND hWndParent,
HWND hWndChildAfter,
LPCWSTR lpszClass,
LPCWSTR lpszWindow
);
FindWindowExA(...