usRow (USHORT)

      Row index.

      Row index of the item to be queried. Rows have a value from 1 to the value of the usRowCount field. This value, which is the total number of rows in the value set, is specified in the VSCDATA data structure when the value set control is created.

    usColumn (USHORT)

      Column index.

      Column index of the item to be queried. Columns have a value from 1 to the value of the usColumnCount field. This value, which is the total number of columns in the value set, is specified in the VSCDATA data structure when the value set control is created.

    pvsText (PVSTEXT)

      Pointer to a VSTEXT data structure or NULL.

      If the attribute of the item to query is VIA_TEXT, the value of the param2 parameter is the same as the value of the pvsText field. For all other attributes, the param2 parameter is reserved and should be set to a NULL value.

    ulItemId (ULONG)

      Item information.

      This value depends on the VIA_* attribute specified for the value set item.

      • If the VIA_TEXT attribute is set, the following is returned:

          usTextLen (USHORT)

            Number of bytes copied to the buffer. This is the length of the text string, excluding the null termination character.
          
            If the VIA_BITMAP attribute is set, the following is returned:

            hbmItem (HBITMAP)

              Handle of the bit map associated with the item indexed by the param1 parameter. If the item is empty, a NULL value is returned.
            
              If the VIA_ICON attribute is set, the following is returned:

              hptItem (HPOINTER)

                Handle of the icon associated with the item indexed by the param1 parameter. If the item is empty, a NULL value is returned.
              
                If the VIA_RGB attribute is set, the following is returned:

                rgbItem (ULONG)

                  Color value associated with the item indexed by the param1 parameter. If the item is empty, a NULL value is returned. Each color value is a 4-byte integer with a value of:
                  (R * 65536) + (G * 256) + B

                  where:

                  R

                    Red intensity value
                  G
                    Green intensity value
                  B
                    Blue intensity value.
                  
                    If the VIA_COLORINDEX attribute is set, the following is returned:

                    ulColorIndex (ULONG)

                      Index of the color associated with the item indexed by the param1 parameter.
                    The following is returned for any of the items to indicate an error condition:

                    VSERR_INVALID_PARAMETERS

                      An error occurred. The WinGetLastError function may return the following errors:

                      • PMERR_INVALID_PARAMETERS 
                          PMERR_PARAMETER_OUT_OF_RANGE.


                        [Back] [Next]