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.
有一个带有逻辑坐标 (1000, 12040) 的 wxScrolledWindow。当窗口调整大小时,即最大化,我想在客户端视图中保持居中对齐。
怎么做?
您需要捕获 wxEVT_SIZE,并根据旧尺寸与新尺寸手动调整滚动位置。