Advertisement
6_2008-2009 Windows API Call/ Explanation #216847

Snap Window to the Size of the Screen

This is a bug-fixed version of the code to snap a program to the sides of the screen, and keep it is a preserved space other programs see as a "dead zone", so other windows can't expand to. this is extremely useful in some cases. important notice. fixed from SKoW's original post at http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=14562&lngWId=1 (original credit reserved for SKoW) another thing to notice about is the fact that the measurement of the screen is not 100% accurate in this version. you may use the better way to find out taskbar's height in the following code: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=23892&lngWId=1 I will look at any suggestions written in comments area, considering a better lining with the screen's borders.

AI

Ringkasan 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.

Kode Sumber
original-source
'TO USE IN YOU FORM (NO CONTROLS ADDING NEEDED)
Private Sub Form_Activate()
  DockForm Me, DockRight
End Sub
Private Sub Form_Terminate()
  UnDockForm Me
End Sub
Komentar Asli (3)
Dipulihkan dari Wayback Machine