home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
VBEYES10.ZIP
/
EYES.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1994-01-26
|
11KB
|
113 lines
Form15
Picture9
Picture8
Picture7
Picture6
Picture5
Picture4
Picture3
Picture2
Picture1
@ Form_Load`
GetCursorPos
lpRect
lrect
lpPoint
lpoint-
Right
Bottom
Form_Click@
Form_Resizeb
Form1|
WindowStateQ
DrawWidth
Width
Height
Eyes1
Caption
Cursor
DoEyes
Fill_Desktop
Control
DeskF
ChipWidth
DeskWidthV
ChipHeight
DeskHeight
xloopO
yloop
hSrcDC
hDestDCe
ScaleWidthV
ScaleHeight
Screenw
MousePointer
Visibleq
times
dwRop
BitBlt
CurrentXm
ITop!
ILeft
IBottom
IRight
CurrentY
GetWindowRect
Irect
sRect
winSize
hwndSrc
GetDesktopWindow
GetDC6
YSrc`
nWidth
nHeight
Picture1
ReleaseDCz
Sector
OldSector
ThenEyes1
@ GetSector
Skipit
CaseSector
Picture
Picture2
Picture3L
Picture4;
Picture5u
Picture6[
Picture7e
Picture8
Picture9
Picture1_Click
Form_DblClick
Form_Paint
Form_Activate
Form_Unload
Cancel
Title
Eyes\
Global Variable Used to Determine Cursor Position's Sector
Form_Load
Hide the Normal Form Off the Screen Boundaries
Form_Resize
Declare Cursor Structure & OldSector
Quit Program if Not IconicO
If Iconic State
Get the Current Cursor Position
Save the Last Sector Numbert
Determine the New Sector Number
Skip Icon Paint if Same Sector as Beforet
Update Icon with New Sector Picture
Return Processing Back to Windowsu
GetSector
This Subroutine determines the sector number associated with the cursor position
There are 9 possible sectors, number 5 being the icon itselfr
| 01 | 02 | 03 |
| 04 |icon| 06 |
| 07 | 08 | 09 |
Declare Icon Structuren
Find Size of Icone
Find X Sectorn
Find Y Sector