0
我正在尋找與「桌面窗口」相對的「對話框窗口」座標嗎?如何在桌面上找到我的對話框窗口的位置?
以下都不做我需要的東西。在剛開始的0,0
定義起始於0,0
HWND hWnd = ::GetForegroundWindow();
::GetClientRect(hWnd, &rectWin);
c.Format("%d %d %d %d", rectWin.top, rectWin.bottom, rectWin.left, rectWin.right);
MessageBox(c);
對話框窗口的尺寸定義起始於0,0
HWND hWnd = ::GetDesktopWindow();
::GetClientRect(hWnd, &rectWin);
c.Format("%d %d %d %d", rectWin.top, rectWin.bottom, rectWin.left, rectWin.right);
MessageBox(c);