README.md

December 4, 2022 ยท View on GitHub

TrayButton in TitleBar

Description

This has kept me occupied for a couple weeks.

Most of what is in here I learned to use while writing it.

I think I have thought of everything, but maybe not.

The button draws itself in the correct system colours, it sizes and positions itself according to system settings.

I have noticed that the TrayMenu does not react properly in the development environment, it does behave itself once compiled though. Also, when compiled, the Tooltip does not work until after you have restored the App from the system tray, but it works ok in the development environment. I don't know why this is, maybe someone could explain it for me.

More Info

This project uses subclassing, so make sure you use the close button to stop the program in Development Environment.DO NOT PRESS STOP IN THE TOOLBAR! DO NOT TYPE END TO CLOSE THE PROGRAM.

Submitted On2001-07-16 12:37:48
ByMick Doherty
LevelIntermediate
User Rating4.9 (64 globes from 13 users)
CompatibilityVB 5.0
CategoryWindows API Call/ Explanation
WorldVisual Basic
Archive FileTrayButton228547162001.zip

API Declarations

AppendMenu
CallWindowProc
CreatePopupMenu
CreateWindowEx
DestroyMenu
DestroyWindow
DrawFrameControl
FillRect
GetAsyncKeyState
GetCursorPos
GetSysColorBrush
GetSystemMetrics
GetTitleBarInfo
GetWindowDC
PtInRect
Shell_NotifyIcon
SendMessage
SetWindowLong
SetWindowPos
TrackPopupMenu