_variant_t CBCGPCommandManager::GetControlValue | ( | UINT | nID, |
VARTYPE | vtPreferredType = VT_UNKNOWN , |
||
UINT | nFlags = 0 |
||
) |
Retrieves the toolbar or ribbon bar item value (e.g., text of the edit box).
nID | Control command ID. |
vtPreferredType | The preferred result type. |
nFlags | The combination of the following flags: BCGP_CONTROL_VALUE_VISIBLE, BCGP_CONTROL_VALUE_FOCUSED and BCGP_CONTROL_VALUE_RECENT_ACTION. |
Call this method to obtain a value of the control bar control. The method returns a value for the first matched control. The parameter "nFlags" specifies the search condition: