Embedding DWT

yidabu yidabu.spam at gmail.com
Wed Oct 15 04:20:13 PDT 2008

On Tue, 14 Oct 2008 18:28:26 -0400
"sleek" <cslush at gmail.com> wrote:

> Threading issues have been resolved. Basically we needed to create a shell 
> that parented an HWND we were provided. We tried using display.syncExec 
> which worked until we attempted the Shell.win32_new ... apparantly you can't 
> create a window that parents an HWND from a different thread. So instead, in 
> the syncExec, we create a new normal shell, create an OleFrame that parents 
> the shell. After the syncExec, we now have a shell object with a bogus hwnd. 
> So what we do is a simple Windows function call:   SetParent(shell.handle, 
> hwndParent). voila, problem solved. DWT is making me happy again

How about post simple sample code for the trick? 

yidabu <yidabu.spam at gmail.com>

D 语言-中文(D Chinese):

More information about the Digitalmars-d-dwt mailing list