getclientrect

    1熱度

    1回答

    我正在監視Vista上處於窗口模式的DirectX應用程序。 GetClientRect報告正確的大小,直到應用程序最小化和恢復,然後它總是返回預覽大小(106x160)。 是否有任何其他方式來查詢窗口的客戶區比使用GetClientRect WinAPI?也許將消息發送到窗口,或檢查Windows對窗口客戶區的瞭解? 任何幫助,將不勝感激,如果你可以使用C#或.NET這將是一個獎金,但任何其他語

    0熱度

    3回答

    根據MSDN,GetClientRect函數實際上僅適用於確定客戶端寬度&高度,因爲頂部始終爲零&。有沒有辦法獲得完整的客戶端座標,包括左邊&頂部(在屏幕空間或窗口空間中)?

    0熱度

    1回答

    m_PICTURE_OD之後是IDC_STATIC, m_PICTURE_OD.MoveWindow(640 /*x*/,96/*y*/,480/*w*/,288/*h*/); RECT myrect; m_PICTURE_OD.GetClientRect(&myrect); myrect.bottom = 288; myrect.top = 0; myrect.left = 0; myr

    4熱度

    2回答

    Range.getClientRects()方法返回一個由range佔用的ClientRect列表,當範圍在具有文本的正常範圍內時,該方法運行良好。 <div class="line"> <span class="run">Hello!</span><span class="run"></span> </div> 但是當span爲空時,它不能得到ClientRect。 (像在第二個

    2熱度

    2回答

    我試圖用Delphi創建一個從TLabel繼承的組件,並在TLabel.Paint中添加了一些自定義圖形。我想要的圖形是文本的左側,所以我推翻GetClientRect: function TMyComponent.GetClientRect: TRect; begin result := inherited GetClientRect; result.Left := 20;

    0熱度

    1回答

    我有一個問題,試圖調用GetClientRect並傳遞一個Stuct以填充返回的值。這是我的代碼。 [return: MarshalAs(UnmanagedType.Bool)] [DllImport("user32.dll")] internal static extern bool GetClientRect(IntPtr hwnd, ref RECT lpRect);