Boost logo

Boost :

From: Max Motovilov (max_at_[hidden])
Date: 2004-03-04 10:53:01


"Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
news:c27ip1$i78$1_at_sea.gmane.org...

> >In particular, on the Win32 architecture,
> > changing ownership amounts to
> >
> > DestroyWindow(hwnd);
> > hwnd = CreateWindow(TEXT("BUTTON"), label.c_str(), WS_CHILD, 0, 0,
> > new_owner->get_hwnd(), 0);
>
> yeah, I hate the win32 API.

Ummm.... what's wrong with SetParent() ?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setparent.asp

...Max...


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk