Table of Contents

 
IsHotSpot
 

Purpose

Determines whether or not the button is actually a hotspot

 

Protoype

bool CButtonMngr::IsHotSpot (string str_button)
 

Parameters

button the ID of the button object to query
 

Description

There's really no outward distinction (code-wise) that tells you what's a hotspot and what's a button so this function does it for you. Pass in the button ID you want to type for str_button and the function will return TRUE if it's a hotspot and FALSE if it's a button.

 

Use

CButtonMngr button;
if (button.IsHotSpot("my_button"))
    // button is a hotspot
 

Prev: IsDisabled
Next: IsStuck