PB_trayicon
所属分类:钩子与API截获
开发工具:PowerBuilder
文件大小:11KB
下载次数:63
上传日期:2013-08-07 09:06:27
上 传 者:
byya
说明: PB9托盘程序,应用最小化到屏幕右下角任务栏中。支持右键菜单。
(PB9 tray, application minimized to the task bar bottom right corner of the screen. Supports right-click menu.)
文件列表:
SysTray.pbl (28672, 1999-05-17)
SysTray.ico (766, 1999-05-13)
下载使用说明.htm (1488, 2004-08-30)
This program demonstrates how we can use a
Windows system tray in our own PowerBuilder
applications without a need for a callback function.
The uCallbackMessage parameter of a Shell_NotifyIcon
Windows API Function is usually a user-defined message.
However, we can also use a message that PowerBuilder
automatically handles as an Event - the MouseMove message.
The xPos parameter of this event contains the action.
The idea for this approach came from the program written
by Matt Hart in VisualBasic according to the tip from http://www.windx.com and posted to http://matthart.com
as a freeware.
I tested the folowing values for Mod (xPos, 256) in the
MoueMove event:
Left MouseDown: 41, 84
Left MouseUp: 46, 88
Left DoubleClick 50, 91
Right MouseDown: 55, 95
Right MouseUp: 59, 99
Right DoubleClick: ***, 102
The reason for having two different values for each event is a
different system font size selected. Listed values correspond
to Windows NT small font and large font. If you find
any additional values on Windows 95/*** or if you have any
other suggestions please send me a mail to bojan.jurca@hermes.si.
Bojan Jurca, 1999
*************************************************************
This software is FREEWARE. You may use it as you see fit for
your own projects but you may not re-sell the original or the
source code. If you redistribute it you must include this
disclaimer.
No warranty express or implied, is given as to the use of this
program. Use at your own risk.
*************************************************************
近期下载者:
相关文件:
收藏者: