begin<br>result:=0;<br>if int=Hshell_WINDOWCREATED then<br> begin<br> lparam:=getwindowlong(wparam,GWL_STYLE);<br> postmessage(HWND_BROADCAST,registerwindowmessage('cbtcreatewndmessage'),wparam,lparam);<br> end<br>else<br> result:= callnexthookex(hookhandle,int,wparam,lparam);<br>end;<br><br>Maybe you should call callnexthookex after postmessage after Hshell_WINDOWCREATED<br>and do not modify lparam when transfer it to callnexthookex.