千
千中元
Unregistered / Unconfirmed
GUEST, unregistred user!
Private<br>TrayIconNOTIFYICONDATA;<br>Icon:TIcon;<br>....<br>Procedure TFormCreate(Sender:Tobject);<br> begin<br> New(TrayIcon);<br> TrayIcon.cbSize:=Sizeof(TrayIcon^);<br> //Sizeof 函数:Returns the number of bytes occupied by a variable or type.<br> //问题0:忘了指针怎么用了,用指针能在这里能得到一个Number,不明白 <br> TrayIcon.uID:=200; // Application-defined identifier of the taskbar icon ,<br> // 问题1:为什么是200呢?这个取值得区间是什么?<br> TrayIcon.Wnd:=Handle;//问题2:Handle默认是Form的句柄么?<br> //Handle to the window that will receive notification messages<br> //associated with an icon in the taskbar status area. <br> <br><br>