Advertisement
4_2005-2006 Windows API Call/ Explanation #151993

Put a form in the System Tray. Now you can rezise the system tray for more room![Update #3]

In my endeavor the make a weather program for my computer that would scroll weather information, I came to make this code. I was looking for a place to scroll the information without bothering any other programs and without the form taking focus. I was looking for the perfect place. I found it but it was of course occupied by something else. That something else was the task tray (Those small little icons and the clock in the bottom right hand corner of most windows computers). Well I said to myself how shall I take that area. I thought I would simply shape my form to that of the trays window. Then make my form a child of that window and set it's position to the topmost. Well my idea was correct and it works perfectly. You can use this technique for any window, it is far less involved then many other attempts witch require sub-classing. The window will resize to the RECT of the tray when the Task bar is resize and or moved and call the form to repaint also. I hope all of you can get something useful out of this I know have. *NEW* YOU can now resize the tray by doing a call ResizeTray (Number to resize by, A 1 or a 2 for either making it larger or smaller) So call resizetray 11,1 would add eleven icons to the tray and call resizetray 11,2 would subtract eleven icons

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
Upload
원본 댓글 (3)
Wayback Machine에서 복구됨