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.
On Cocoa, to lock a child window to its parent window, one can use addChildWindow:ordered: from the Cocoa library.
I am looking for a similar method on Windows for cross-platform developping.
Do you know of any equivalent method on Windows ?
子(即'WS_CHILD')窗口总是与父窗口一起移动,它们不需要被锁定。
但是,如果您的意思是浮动(例如“WS_POPUP”)窗口,则无法在 WinAPI 中“锁定”它们。例如,您需要处理 WM_WINDOWPOSCHANGED,并手动重新定位浮动窗口。