On Tue, Nov 24, 2009 at 3:44 PM, graniteglory <[email protected]>wrote:

> Setting nsIBaseWindow vis SetWindowPos () with native HWND does not
> seem to work.
>
> Do I have to subclass nsIBaseWindow and process WM_SIZE message and
> call nsIBaseWindow->SetPositionAndSize () myself ?
>

That should not be necessary. Also, WM_SIZE is an obsolete message. Mozilla
windows (in this case nsWindow which inherits from nsIBaseWindow) should
respond to WM_WINDOWPOSCHANGED messages. Do you see those being generated
using Spy++? I would be surprised if SetWindowPos does not send the message
so perhaps something else is going wrong. If you use a different API (ex:
MoveWindow), does it work?

-Rob
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to