|
Short story: Provides runtime access to "read-only" properties such as ControlBox, MaxButton, MinButton, Moveable, and ShowInTaskbar. Adds new properties such as AutoDrag, Sizeable, Titlebar, and Topmost.
Longer description from old site: click here.
To be edited...
This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):
- Toggle the Titlebar (and Other Form Tricks), Ask the VB Pro, VBPJ, November 2000
- Add a Window to the Taskbar, Ask the VB Pro, VBPJ, January 2001
- Extract Color Values Painlessly, Q&A, VSM, September 2001
This sample uses the following API calls:
Module Library Function CFormBorder.cls user32 GetCursorPos
GetMenuItemCount
GetMenuItemID
GetMenuItemInfo
GetSystemMenu
GetWindowLong
LockWindowUpdate
ReleaseCapture
RemoveMenu
SendMessage
SetMenuItemInfo
SetWindowLong
SetWindowPos
ShowWindowCOpSysInfo.cls kernel32 GetVersionEx FNoEdge.frm user32 DrawEdge
ReleaseCapture
SendMessageMCalcNoIcon.bas kernel32
shell32
user32Sleep
ShellExecute
FindWindowMFlipStyleBits.bas user32 GetWindowLong
SetWindowLong
SetWindowPos
ShowWindowMSvcsNt4.bas kernel32
shell32
user32Sleep
ShellExecute
FindWindowDon't see what you're looking for? Here's a complete API cross-reference.
Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you don't share the sample by any form of mass distribution. Download FormBdr.zip, 32Kb, Last Updated: Thursday, August 9, 2001