![]() |
[BUG?] XTPControlGallery.cpp(362) |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 17 August 2011 at 4:48am |
XTP 15.1.2
CString strCaption; if (nId > 0 && strCaption.LoadString(nId)){ pItem->SetCaption(strCaption); What if pItem already has a caption? Is the above really correct? (Not to mention that you should always use your own XTPResourceManager()->LoadString().) I would suggest something like this: CString strCaption; if (nId > 0 && pItem->GetCaption().GetLength() == 0 && strCaption.LoadString(nId))
{ pItem->SetCaption(strCaption); |
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thanks, good suggestion. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |