DOC: GetPropIndex Returns -1 If Property Does Not Exist

ID: Q119906

The information in this article applies to:

   The Microsoft Foundation Classes (MFC), included with:
    - Microsoft Visual C++ for Windows, versions 1.0 and 1.5

The CVBControl class contains the member function GetPropIndex, which can obtain the index of a property once it is given the property's name. The documentation for the GetPropIndex function states that the return value is the index of the given property. However, the documentation does not point out that if the property does not exist in the VBX table of properties, then the return value from GetPropIndex is -1.

Additional query words: 1.00 1.50 2.00 2.50 controls ctl

Keywords          : kb16bitonly
Technology        : kbMfc

Last Reviewed: November 12, 1998