0

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 ?

4

1 回答 1

0

子(即'WS_CHILD')窗口总是与父窗口一起移动,它们不需要被锁定。

但是,如果您的意思是浮动(例如“WS_POPUP”)窗口,则无法在 WinAPI 中“锁定”它们。例如,您需要处理 WM_WINDOWPOSCHANGED,并手动重新定位浮动窗口。

于 2013-01-21T11:41:09.623 回答