Trappable Errors for the Windows Common Controls (ComCtl2)

The following tables list the trappable errors and constants for the Windows Common Controls in the MSComct2.OCX file.

The following are the errors for the Windows Common Controls located in the MSComct2.OCX file. Controls included in this file are: Animation, DateTimePicker, FlatScrollBar, MonthView, and UpDown.

Constant Value Description
cc2InvalidProcedureCall 5 Invalid procedure call.
cc2BadFileNameOrNumber 52 Bad file name or number.
cc2FileNotFound 53 File not found.
cc2InvalidPropertyValue 380 Invalid property value.
cc2SetNotSupportedAtRuntime 382 Property cannot be set at runtime.
cc2SetNotSupported 383 Property is read-only.
cc2GetNotSupported 394 Property is write-only.
cc2InvalidObjectUse 425 Invalid object use.
cc2WrongClipboardFormat 461 Specified format doesn't match format of data.
cc2DataObjectLocked 672 DataObject formats list may not be cleared or expanded outside of the OLEStartDrag event.
cc2ExpectedAnArgument 673 Expected at least one argument.
cc2RecursiveOleDrag 674 Illegal recursive invocation of OLE drag and drop.
cc2FormatNotByteArray 675 Non-intrinsic OLE drag and drop formats used with SetData require byte array data. GetData may return more bytes than were given to SetData.
cc2DataNotSetForFormat 676 Requested data was not supplied to the DataObject during the OLESetData event.
cc2InconsistentObject 35750 Internal state of the control has become corrupted.
cc2ErrorDuringSet 35751 Unable to set property.
cc2ErrorOpeningVideo 35752 Unable to open AVI file.
cc2ErrorPlayingVideo 35753 Unable to play AVI file.
cc2NoValidBuddyCtl 35754 BuddyControl property must be set first.
cc2VideoNotOpen 35755 Must open AVI file first.
cc2AutoBuddyNotSet 35756 AutoBuddy not set, no potential buddy controls found.
cc2ErrorStoppingVideo 35757 Error trying to stop playing video file.
cc2ErrorClosingVideo 35758 Error closing open video file.
cc2CantStopAutoPlay 35759 Stop method does not effect AutoPlay property.
cc2BuddyNotASibling 35760 BuddyControl must be a separate control within the same container.
cc2NoUpDownAsBuddy 35761 An UpDown control cannot be buddied with another UpDown control.
cc2InvalidRange 35770 An invalid date range was specified.
cc2InvalidMaxDate 35771 An invalid date was specified for the MaxDate property.
cc2InvalidMinDate 35772 An invalid value was specified for the MinDate property.
cc2DateOutOfRange 35773 A date was specified that doesn't fall within the MinDate and MaxData properties.
cc2InvalidMaxDateMin 35774 A value was specified for the MaxDate property that is lower than the current value of MinDate.
cc2InvalidMinDateMax 35775 A value was specified for the MinDate property that is higher than the current value of MaxDate.
cc2InvalidRowColValue 35776 A value was specified for MonthRows or MonthColumns that is not between 1 and 12.
cc2InvalidRowColTotal 35777 A value was specified for MonthRows that would cause the total number of months (ie. MonthRows * MonthCols) to be greater than 12.
cc2MonthViewError 35778 An error occurred in a call to the Windows MonthView control.
cc2SetDayMultiSelectOn 35779 Can't set Day property when MultiSelect = True.
cc2SetDayOfWeekMultiSelectOn 35780 Can't set DayOfWeek property when MultiSelect = True.
cc2SetMonthMultiSelectOn 35781 Can't set Month property when MultSelect = True.
cc2SetWeekMultiSelectOn 35782 Can't Set Week property when MultiSelect = True.
cc2SetYearMultiSelectOn 35783 Can't set Year property when MultiSelect = True.
cc2SetMaxSelCountMultiSelectOff 35784 Can't set MaxSelCount property when MultiSelect = False.
cc2SetSelEndMultiSelectOff 35785 Can't set SelEnd property when MultiSelect = False.
cc2SetSelStartMultiSelectOff 35786 Can't set SelStart property when MultiSelect = False.
cc2NullValueNotAllowed 35787 Can't set Value to NULL when CheckBox property = FALSE.
cc2DTPickerError 35788 An error occurred in a call to the Windows DTPicker control.
cc2ScrollValueOutOfRange 35789 Scroll value is out of range.