These events occur when a system setting changes.
Sub Form_DisplayChange [(index%)]
Sub Form_SysColorChange [(index%)]
Sub Form_WinIniChange [(index%)]
The DisplayChange event occurs when the display resolution has changed. The new image depth of the display in bits per pixel can be obtained with _C. The Screen.cxScreen specifies the new horizontal resolution of the screen. The Screen.cyScreen property specifies the new vertical resolution of the screen.
The SysColorChange event occurs when a change is made to a system color setting. The system sends a WM_PAINT message to any window that is affected by a system color change. Applications that have brushes using the existing system colors should delete those brushes and recreate them using the new system colors.
The WinIniChange event occurs when the SystemParametersInfo function changes a system-wide setting. The system sends this message only if the SystemParametersInfo caller specifies the SPIF_SENDCHANGE flag.
Sub Win_1_DisplayChange
Print _C , Screen.cxScreen, Screen.cyScreen
EndSub
Sub Win_1_WinIniChange
Print Screen.WorkLeft; Screen.WorkTop; _
Screen.WorkWidth; Screen.WorkHeight
EndSub
{Created by Sjouke Hamstra; Last updated: 30/09/2014 by James Gaite}