Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 MyCFrame 中有 4 个 CToolbar。它们停靠在 MyCFrame 上。如何计算免费的 CFrame 客户区?我需要找到一些具有值的 CRect(没有停靠栏大小的 CFrameClientRect)。
通过查看您的快照,我得出结论,您正在使用一些显示图像的窗口。
获取此窗口矩形:调用GetWindowRectangle(ptrToRect)
GetWindowRectangle(ptrToRect)
并将其转换为框架窗口的客户端坐标,传递rect如下:
rect
pMyFrame->ScreenToClient(ptrToRect)