AddExpandButton return value |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 03 May 2008 at 2:31pm |
The following functions should return the pointer to the button:
AddExpandButton
AddSpinButton
AddComboButton
Otherwise you get ugly code such as this:
pOptions->AddExpandButton();
pOptions->GetButton(0)->SetIconIndex(iconIndex); // How do we know 0 is indeed this button?
Better:
pOptions->AddExpandButton()->SetIconIndex(iconIndex);
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |