Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,0,0,80,80,0,0,Instancia,nil); the socket dont work [IMG]http://www.devarchive.com/forum/images/smiles/icon_exclaim.gif[/IMG]
and if make it like this: Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,1,1,80,80,1,1,Instancia,nil);
the socket work and everything ok! so whats the problem with it??
Take a look on the help for details. But, the problem is probably thehWndParent value. In the first you passed 0 and at second 1. I think that You must pass the main window handle to this param. hMenu could be null (0). (See below)
Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,0,0,80,80,hWndParent,hMenu,Instancia,nil);
p.s. sorry for my bad english.