Table of Contents

 
GetCaption
 

Purpose

Finds the button's current caption

 

Protoype

string CButtonMngr::GetCaption (string str_button)
 

Parameters

button the ID of the button to query
 

Description

This function queries the button object passed in with str_button and extracts the current caption of the button, if any. The returned value is a CText object ID.

 

Use

CButtonMngr button;
string button_cap = button.GetCaption("my_button");
 

Prev: GetButtonY
Next: GetHeight