VBnet Constants Reference
Constants - W
W
WA_ACTIVE = 1 WM_ACTIVATEAPP: Detect Application Activation State
WA_CLICKACTIVE = 2 WM_ACTIVATEAPP: Detect Application Activation State
WA_INACTIVE = 0 WM_ACTIVATEAPP: Detect Application Activation State
WAIT_ABANDONED = &H80 FindFirstChangeNotification: Create a 'Watched' Folder
WAIT_INFINITE = -1& WaitForSingleObject: Determine when a Shelled App has Ended
WAIT_INFINITE= -1& WaitForSingleObject: Determine when a Process has Ended
WAIT_IO_COMPLETION = &HC0 FindFirstChangeNotification: Create a 'Watched' Folder
WAIT_OBJECT_0 = &H0 FindFirstChangeNotification: Create a 'Watched' Folder
WAIT_TIMEOUT = &H102 FindFirstChangeNotification: Create a 'Watched' Folder
WC_LISTVIEW "SysListView" SendMessage: ListView API Messages, Styles, and Notifications
WC_LISTVIEW = WC_LISTVIEWA SendMessage: ListView API Messages, Styles, and Notifications
WC_LISTVIEW = WC_LISTVIEWW SendMessage: ListView API Messages, Styles, and Notifications
WC_LISTVIEWA = "SysListView32" SendMessage: ListView API Messages, Styles, and Notifications
WC_LISTVIEWW = "SysListView32" SendMessage: ListView API Messages, Styles, and Notifications
WH_CBT = 5 SetWindowsHookEx: 'Self-Closing' Message Box using a VB Timer
SetWindowsHookEx: 'Self-Closing' Message Box using SetTimer
SetWindowsHookEx: Centre the API Message Box
SetWindowsHookEx: Customize the API Message Box
WH_KEYBOARD_LL = 13 SetWindowsHookEx: Detect Caps/Numlock/Scrollock via System-wide Keyboard Hook
WH_KEYBOARD_LL = 13& SetWindowsHookEx: Trapping Special Key Events using Low Level Hooks
WM_ACTIVATE = &H6 WM_ACTIVATEAPP: Detect Application Activation State
WM_ACTIVATEAPP = &H1C WM_ACTIVATEAPP: Detect Application Activation State
WM_APP = &H8000& Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Animate the System Tray Icon
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_CHOOSEFONT_APPLY = (WM_USER + 2) ChooseFont: Adding 'Apply' to the ChooseFont Dialog
WM_CHOOSEFONT_GETLOGFONT = (WM_USER + 1) ChooseFont: Adding 'Apply' to the ChooseFont Dialog
WM_CLOSE = &H10 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_COMMAND = &H111 ChooseFont: Adding 'Apply' to the ChooseFont Dialog
GetOpenFileName: Forcing an Open/Save Dialog's Initial Listview View
Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Animate the System Tray Icon
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_CONTEXTMENU = &H7B WM_CONTEXTMENU: Kill the Default Combo Box Context Menu
WM_CONTEXTMENU: Kill the Default Text Box Context Menu
WM_CREATE = &H1 CreateStatusWindow: The Common Control Status Bar via API - Overview
WM_CTLCOLORSTATIC = &H138 WM_CTLCOLORSTATIC: Change the Backcolour of a Slider
WM_DESTROY = &H2 CreateStatusWindow: The Common Control Status Bar via API - Overview
WM_CTLCOLORSTATIC: Change the Backcolour of a Slider
WM_DRAWITEM: Set Command Button ForeColor
WM_SIZING: Maintain Form Aspect Ratio During Resizing
WM_DRAWITEM = &H2B WM_DRAWITEM: Set Command Button ForeColor
WM_DROPFILES = &H233 DragAcceptFiles: File Drag/Drop in VB
WM_GETFONT = &H31 CreateFontIndirect: Change ListView Header Text Style
CreateStatusWindow: The Common Control Status Bar via API - Overview
GetTextExtentPoint32: Right-Align List Box Data
WM_GETMINMAXINFO = &H24 WM_CTLCOLORSTATIC: Change the Backcolour of a Slider
WM_GETMINMAXINFO: Restrict Form Resizing
WM_GETTEXT = &HD CreateStatusWindow: The Common Control Status Bar via API - Overview
GetGuiThreadInfo: Active Application GUI Information
WM_GETTEXTLENGTH = &HE CreateStatusWindow: The Common Control Status Bar via API - Overview
GetGuiThreadInfo: Active Application GUI Information
WM_HOTKEY = &H312 WM_HOTKEY: System-Wide Keyboard Trapping
WM_INITDIALOG = &H110 ChooseColor: Centering and Customizing the ChooseColor Common Dialog
ChooseFont: Adding 'Apply' to the ChooseFont Dialog
GetOpenFileName: Advanced Dialog Centering using a Callback
GetOpenFileName: Customize File Open/Save Common Dialog Controls
GetOpenFileName: File Dialog Centering using a Callback
GetOpenFileName: Forcing an Open/Save Dialog's Initial Listview View
WM_KEYDOWN = &H100 WM_LBUTTONDOWN: Substitute a ListView for a Combo's Dropdown List
WM_LBUTTONDOWN: Substitute a Tabbed List for a Combo's Dropdown List
WM_LBUTTONDBLCLK = &H203 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_LBUTTONDOWN = &H201 SendMessage: Visually Pressing a Command Button Through Code
SetWindowsHookEx: 'Self-Closing' Message Box using a VB Timer
SetWindowsHookEx: 'Self-Closing' Message Box using SetTimer
Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_LBUTTONDOWN: Substitute a ListView for a Combo's Dropdown List
WM_LBUTTONDOWN: Substitute a Tabbed List for a Combo's Dropdown List
WM_LBUTTONDOWN: Using a Combo in a MSFlexGrid to Select Data
WM_LBUTTONUP = &H202 SendMessage: Visually Pressing a Command Button Through Code
SetWindowsHookEx: 'Self-Closing' Message Box using a VB Timer
SetWindowsHookEx: 'Self-Closing' Message Box using SetTimer
Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_LBUTTONDOWN: Using a Combo in a MSFlexGrid to Select Data
WM_MBUTTONDBLCLK = &H209 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_MBUTTONDOWN = &H207 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_MBUTTONUP = &H208 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_MYHOOK = WM_APP + &H15 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Animate the System Tray Icon
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_NCDESTROY = &H82 SHChangeNotifyRegister: Receive Shell Change Notifications
WM_NCHITTEST = &H84 CreateStatusWindow: The Common Control Status Bar via API - Overview
WM_NCHITTEST: Simulating a Non-Client Action to Move a Form
WM_NCLBUTTONDOWN = &HA1 ReleaseCapture: Simulating a Working Size-Grip on a VB Form
SendMessage: Creating a Scrollable Viewport to Simulate a Scrollable Form
SendMessage: Move Controls to Simulate Form Scrolling
WM_NOTIFY = &H4E Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Animate the System Tray Icon
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_NOTIFY = &H4E& GetOpenFileName: Forcing an Open/Save Dialog's Initial Listview View
WM_NOTIFY: Detect Sizing Notifications from a ListView ColumnHeader
WM_NOTIFY: Track Highlighted ListView Column Width Changes via Subclassing
WM_PAINT = &HF CreateStatusWindow: The Common Control Status Bar via API - Overview
WM_LBUTTONDOWN: Using a Combo in a MSFlexGrid to Select Data
WM_PAINT: Subclassing to Create a Flat Combo Box
WM_RBUTTONDBLCLK = &H206 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_RBUTTONDOWN = &H204 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_RBUTTONUP = &H205 Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Animate the System Tray Icon
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_SETFONT = &H30 CreateFontIndirect: Change ListView Header Text Style
CreateStatusWindow: The Common Control Status Bar via API - Overview
CreateWindowEx: Create the Common Control Header
WM_SETREDRAW = &HB FtpFindFirstFile: Download Files via FTP with a Download Progress Callback
SendMessage: Text Range Selection via API
WM_SETTEXT = &HC CreateStatusWindow: The Common Control Status Bar via API - Overview
GetWindowThreadProcessId: Obtain the hWnd of an App Started with Shell()
WM_SETTINGCHANGE = &H1A RegSetValueEx: Forcing a Refresh of Shell Icon Cache
SetLocaleInfo: Change System Long and Short Date Formats
WM_SHNOTIFY = &H401 SHChangeNotifyRegister: Receive Shell Change Notifications
WM_SIZE = &H5 CreateStatusWindow: The Common Control Status Bar via API - Overview
WM_LBUTTONDOWN: Using a Combo in a MSFlexGrid to Select Data
WM_NOTIFY: Detect Sizing Notifications from a ListView ColumnHeader
WM_NOTIFY: Track Highlighted ListView Column Width Changes via Subclassing
WM_SIZING = &H214 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WM_SYSCOMMAND = &H112 SendMessage: Change the Display Power State
WM_SYSCOMMAND: Change and Respond to a Customized System Menu
WM_TIMECHANGE = &H1E WM_CTLCOLORSTATIC: Change the Backcolour of a Slider
WM_TIMECHANGE: Detect System Changes to the Date/Time
WM_TIMER = &H113 FlashWindow: Timing Window Notifications using SetTimer
SetWindowsHookEx: 'Self-Closing' Message Box using SetTimer
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_USER = &H400 ChooseFont: Adding 'Apply' to the ChooseFont Dialog
CreateStatusWindow: The Common Control Status Bar via API - Overview
CreateWindowEx: 21st Century ToolTips for VB- The Basics
CreateWindowEx: Common Control ProgressBarAPI Overview
CreateWindowEx: Create the Common Control ProgressBar
FindWindowEx: Change a VB Toolbar to a Rebar-Style Toolbar
FindWindowEx: Fix the IE5/MsComCtrl 5 Toolbar Problem
GetOpenFileName: Customize File Open/Save Common Dialog Controls
SendMessage: Change the Colour of a VB ProgressBar
SetParent: Add a VB Progress Bar to a VB StatusBar
SHBrowseForFolder: Browse for Folders Callback Overview
SHBrowseForFolder: Pre-selecting Folders using a Browse Callback
SHBrowseForFolder: Restrict Browse Selection to a CD/DVD via Callback
Shell_NotifyIcon: Add Icon to Windows System Tray
Shell_NotifyIcon: Animate the System Tray Icon
Shell_NotifyIcon: Display Systray Balloon Tips
Shell_NotifyIcon: Respond to Systray Balloon Tip Clicks
Shell_NotifyIcon: Respond to Systray Icon/Menu Interaction in a MDI App
Shell_NotifyIcon: Use SetTimer to Define Balloon Tip Life
WM_NOTIFY: Detect Sizing Notifications from a ListView ColumnHeader
WM_NOTIFY: Track Highlighted ListView Column Width Changes via Subclassing
WM_USER = &H400& WM_CTLCOLORSTATIC: Change the Backcolour of a Slider
WM_VSCROLL = &H115 WM_VSCROLL: Subclassing Listview Scrollbar Messages
WM_WININICHANGE = &H1A SetDefaultPrinter: Changing Windows' Default Printer
WriteProfileString: Changing Windows' Default Printer
WMSZ_BOTTOM = 6 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_BOTTOMLEFT = 7 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_BOTTOMRIGHT = 8 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_LEFT = 1 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_RIGHT = 2 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_TOP = 3 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_TOPLEFT = 4 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WMSZ_TOPRIGHT = 5 WM_SIZING: Maintain Form Aspect Ratio During Resizing
WPF_RESTORETOMAXIMIZED = &H2 EnumWindows: Enumerate (and Restore) a Window via Callback
WRITE_DAC = &H40000 RegSetValueEx: Create an Application Launch Button on the IE Toolbar
RegSetValueEx: Forcing a Refresh of Shell Icon Cache
WRITE_OWNER = &H80000 RegSetValueEx: Create an Application Launch Button on the IE Toolbar
RegSetValueEx: Forcing a Refresh of Shell Icon Cache
WS_BORDER = &H800000 CreateWindowEx: Create the Common Control Header
WS_CHILD = &H40000000 CreateStatusWindow: The Common Control Status Bar via API - Overview
CreateWindowEx: Create the Common Control Header
CreateWindowEx: Create the Common Control ProgressBar
WS_EX_LAYERED = &H80000 SetLayeredWindowAttributes: Fading a Form In/Out
WS_EX_LEFTSCROLLBAR = &H4000 SetLayeredWindowAttributes: Fading a Form In/Out
SetWindowLong: Right-Align List Box Data and/or the Scrollbar
SetWindowLong: Right-Align List Contents in a Combo
WS_EX_RIGHT = &H1000 SetLayeredWindowAttributes: Fading a Form In/Out
SetWindowLong: Right-Align List Box Data and/or the Scrollbar
SetWindowLong: Right-Align List Contents in a Combo
WS_EX_TOPMOST = &H8& CreateWindowEx: 21st Century ToolTips for VB- The Basics
WS_EX_TRANSPARENT = &H20& SetLayeredWindowAttributes: Fading a Form In/Out
WS_POPUP = &H80000000 CreateWindowEx: 21st Century ToolTips for VB- The Basics
WS_THICKFRAME = &H40000 SetWindowLong: Turn a Text Box into a Resizable Control
WS_VERSION_MAJOR gethostbyname: Determine Network Host Name and IP Address
gethostbyname: Resolve Host Name to IP Address
WS_VERSION_MINOR = WS_VERSION_REQD And &HFF& gethostbyname: Determine Network Host Name and IP Address
gethostbyname: Resolve Host Name to IP Address
WS_VERSION_REQD = &H101 gethostbyaddr: Obtain Host Name from IP Address
gethostbyname: Determine Network Host Name and IP Address
gethostbyname: Resolve Host Name to IP Address
IcmpSendEcho: Perform a Tracert (Trace Route) in VB
IcmpSendEcho: Perform a Tracert (Trace Route) in VB with Host Name Resolution
IcmpSendEcho: Ping a Machine by Host Name
IcmpSendEcho: Ping a Machine by IP Address
IPRenewAddress: Release and Renew a DHCP IP Address
WSAEnumProtocols: Additional Data from Enumerated Windows Socket Protocols
WSAEnumProtocols: Enumerating Installed Windows Socket Protocols
WS_VISIBLE = &H10000000 CreateStatusWindow: The Common Control Status Bar via API - Overview
CreateWindowEx: Create the Common Control Header
CreateWindowEx: Create the Common Control ProgressBar
WSABASEERR = 10000 WSAEnumProtocols: Enumerating Installed Windows Socket Protocols
WSADescription_Len = 255 IcmpSendEcho: Perform a Tracert (Trace Route) in VB
IcmpSendEcho: Perform a Tracert (Trace Route) in VB with Host Name Resolution
WSADescription_Len = 256 gethostbyaddr: Obtain Host Name from IP Address
WSAENOBUFS = WSABASEERR + 55 WSAEnumProtocols: Enumerating Installed Windows Socket Protocols
WSAPROTOCOL_LEN = 255 WSAEnumProtocols: Additional Data from Enumerated Windows Socket Protocols
WSAEnumProtocols: Enumerating Installed Windows Socket Protocols
WSASYS_Status_Len = 127 IcmpSendEcho: Perform a Tracert (Trace Route) in VB
IcmpSendEcho: Perform a Tracert (Trace Route) in VB with Host Name Resolution
WSASYS_Status_Len = 128 gethostbyaddr: Obtain Host Name from IP Address
WTS_CURRENT_SERVER_HANDLE = 0 WTSQuerySessionInformation: Obtaining the Name of a Computer running a Remote Desktop Session
WTS_CURRENT_SESSION = -1 WTSQuerySessionInformation: Obtaining the Name of a Computer running a Remote Desktop Session
WTSClientName = 10 WTSQuerySessionInformation: Obtaining the Name of a Computer running a Remote Desktop Session

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy