Microsoft KB Archive/119906

{|
 * width="100%"|

DOC: GetPropIndex Returns -1 If Property Does Not Exist

 * }

Q119906

-

The information in this article applies to:


 * The Microsoft Foundation Classes (MFC), included with:
 * Microsoft Visual C++

-

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

Issue type :

Technology : kbAudDeveloper kbMFC