关于SetWindowLongA

不知道那位大侠可以讲一下函数
function SetWindowLongA(hWnd: HWND; nIndex: Integer; dwNewLong: Longint): Longint; stdcall;
的具体用法,有例子最好
[136 byte] By [ahafriend] at [2007-12-16]
# 1
一个鼠标件控程序,最小化为托盘
Procedure TForm1.Button4Click(Sender: TObject);
Begin
MyTrayIcon.cbSize := SizeOf(TNotifyIconData);
MyTrayIcon.Wnd := Handle;
MyTrayIcon.uId := 1;
MyTrayIcon.uFlags := NIF_ICON or NIF_TIP or NIF_MESSAGE;
MyTrayIcon.uCallbackMessage := WM_MYTRAYICONCALLBACK;
//MyTrayIcon.hIcon := LoadIcon(0,IDI_WINLOGO);
MyTrayIcon.hIcon := Application.Icon.Handle;
MyTrayIcon.szTip := '鼠标监控程序';
//向托盘添加图标
Shell_NotifyIcon(NIM_ADD,@MyTrayIcon);

form1.visible := false;
setwindowlong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
End;
9igogo-就爱狗狗 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...