ComCtl2, COM interface constants for VB.Net / VBScript

ComCtl2 - interface constants

     This page contains simple VBA include for the ComCtl2 COM library.

library parameters

File NameWINDOWS\system32\COMCT232.OCX


enum, 2 members.
  'Constants for the OLEDropMode property (but not the DragMode or OLEDragMode properties).
Public Enum OLEDropConstants

  'Accepts no OLE drag/drop operations.
  cc2OLEDropNone = 0  '&H0

  'Accepts an OLE drag/drop under programmatic control only.
  cc2OLEDropManual = 1  '&H1
End Enum


enum, 3 members.
  'State transition constants for the DragOver and OLEDragOver events.
Public Enum DragOverConstants

  'Source control dragged into target.
  cc2Enter = 0  '&H0

  'Source control dragged out of target.
  cc2Leave = 1  '&H1

  'Source control dragged from one position in target to another.
  cc2Over = 2  '&H2
End Enum


enum, 8 members.
  'Clipboard format constants.
Public Enum ClipBoardConstants

  'Text (.txt file).
  cc2CFText = 1  '&H1

  'Bitmap (.bmp file).
  cc2CFBitmap = 2  '&H2

  'Metafile (.wmf file).
  cc2CFMetafile = 3  '&H3

  'Device-independent bitmap.
  cc2CFDIB = 8  '&H8

  'Color palette.
  cc2CFPalette = 9  '&H9

  'Enhanced metafile (.emf file).
  cc2CFEMetafile = 14  '&HE

  'Filename list (Microsoft Windows Explorer)
  cc2CFFiles = 15  '&HF

  'Rich Text Format (.rtf file).
  cc2CFRTF = -16639  '&HFFFFBF01
End Enum


enum, 4 members.
  'Drop effect constants for OLE drag and drop events.
Public Enum OLEDropEffectConstants

  'No OLE drag/drop operation has taken place/would take place.
  cc2OLEDropEffectNone = 0  '&H0

  'A mask to indicate that a copy has taken place/would take place.
  cc2OLEDropEffectCopy = 1  '&H1

  'A mask to indicate that a move has take place/would take place.
  cc2OLEDropEffectMove = 2  '&H2

  'A mask to indicate that the drop target window has scrolled/would scroll.
  cc2OLEDropEffectScroll = -2147483648  '&H80000000
End Enum


enum, 25 members.
  'Error Constants
Public Enum ErrorConstants

  'Bad file name or number
  cc2BadFileNameOrNumber = 52  '&H34

  'File not found
  cc2FileNotFound = 53  '&H35

  'Invalid property value
  cc2InvalidPropertyValue = 380  '&H17C

  'Property cannot be set at run time
  cc2SetNotSupportedAtRuntime = 382  '&H17E

  'Property is read-only
  cc2SetNotSupported = 383  '&H17F

  'DataObject formats list may not be cleared or expanded outside of the OLEStartDrag event
  cc2DataObjectLocked = 672  '&H2A0

  'Expected at least one argument.
  cc2ExpectedAnArgument = 673  '&H2A1

  'Invalid procedure call
  cc2InvalidProcedureCall = 5  '&H5

  'Invalid object use
  cc2InvalidObjectUse = 425  '&H1A9

  'Specified format doesn't match format of data
  cc2WrongClipboardFormat = 461  '&H1CD

  'Illegal recursive invocation of OLE drag and drop
  cc2RecursiveOleDrag = 674  '&H2A2

  'Non-intrinsic OLE drag and drop formats used with SetData require Byte array data.  GetData may return more bytes than were given to SetData.
  cc2FormatNotByteArray = 675  '&H2A3

  'Requested data was not supplied to the DataObject during the OLESetData event.
  cc2DataNotSetForFormat = 676  '&H2A4

  'Internal state of the control has become corrupted
  cc2InconsistentObject = 35750  '&H8BA6

  'Unable to set property
  cc2ErrorDuringSet = 35751  '&H8BA7

  'Unable to open AVI file
  cc2ErrorOpeningVideo = 35752  '&H8BA8

  'Unable to play AVI file
  cc2ErrorPlayingVideo = 35753  '&H8BA9

  'Must open AVI file first
  cc2VideoNotOpen = 35755  '&H8BAB

  'Error trying to stop playing AVI file
  cc2ErrorStoppingVideo = 35757  '&H8BAD

  'Error closing open AVI file
  cc2ErrorClosingVideo = 35758  '&H8BAE

  'Stop method does not effect AutoPlay property
  cc2CantStopAutoPlay = 35759  '&H8BAF

  'BuddyControl property must be set first
  cc2NoValidBuddyCtl = 35754  '&H8BAA

  'AutoBuddy not set, no potential buddy controls found
  cc2AutoBuddyNotSet = 35756  '&H8BAC

  'BuddyControl must be a separate control within the same container
  cc2BuddyNotASibling = 35760  '&H8BB0

  'An UpDown control cannot be buddied with another UpDown control
  cc2NoUpDownAsBuddy = 35761  '&H8BB1
End Enum


enum, 2 members.
  'Background Style Constants
Public Enum BackStyleConstants

  cc2BackstyleTransparent = 0  '&H0

  cc2BackstyleOpaque = 1  '&H1
End Enum


enum, 2 members.
Public Enum AlignmentConstants

  'Left Align
  cc2AlignmentLeft = 0  '&H0

  'Right Align
  cc2AlignmentRight = 1  '&H1
End Enum


enum, 2 members.
Public Enum OrientationConstants

  cc2OrientationVertical = 0  '&H0

  cc2OrientationHorizontal = 1  '&H1
End Enum
online utility - toplist