SHBrowseForFolder: Pre-selecting Folders using a Browse Callback
Add a callback routine to your VB5/6 code to allow pre-selecting of a file system object when displaying the Browse Folders Dialog. Added version-detecting code and necessary changes to allow the String method to function on NT.
SHBrowseForFolder: Restrict Browse Selection to a CD/DVD via Callback
Adding GetDriveType() to a Browse callback to enable selection of a CD/DVD drive only. March 31.2004
ChangeDisplaySettings: Change Display Resolution
Use this routine to change the current screen resolution or depth.
EnumDisplayDevices: Enumerating System Display Devices
Calling EnumDisplayDevices to obtain information about the display
devices in a system. Mar 29.2002
EnumFontFamilies: Enumerating Windows Fonts by Type
Code to enumerate the available Windows fonts using a callback and the Windows EnumFontFamilies API, but populating the listbox only with
fonts matching a desired type
EnumFontFamilies: Enumerate Windows Fonts with Font Preview
This was just for fun ... code to enumerate the available Windows fonts using a callback and the Windows EnumFontFamilies API, populating
the listbox with all fonts, and previewing the font at any size between 8 and 120 points.
SetMenuItemInfo: Create a Multi-Column Font Menu
How to populate a Fonts menu and specify column breaks to assure it remains on-screen.
EnumWindows: Enumerate Windows via a Callback
Another Enum API, this one enumerates system windows using AddressOf.
EnumChildWindows: Enumeration of Parent and Child Windows via Callbacks
Using EnumWindows and EnumChildWindows. Jan 26.2000
Like what you see here? Help ensure continued VB Classic
development by making a
donation today. Thank you.
Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.