![]() |
I met problem in CXTCaption::Create() |
Post Reply
|
| Author | |
ksiva
Newbie
Joined: 04 August 2005 Location: Russian Federation Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: I met problem in CXTCaption::Create()Posted: 05 August 2005 at 2:43pm |
|
Method CXTCaption::Create() has next code
if (HasCloseButton())
{ // Create the caption's close button. if (!m_btnCaption.Create(NULL, WS_VISIBLE|WS_CHILD|BS_ICON|BS_OWNERDRAW|BS_CENTER|BS_VCENTE R, CRect(0,0,0,0), this, XT_IDC_BTN_CLOSE)) { TRACE0( "Unable to create caption button.\n" ); return -1; } // Create the image list used by frame buttons. m_ilButton.Create (XT_IDB_BTN_OUT, 16, 1, RGB(255,0,255)); // and set the icon for the caption's close button m_btnCaption.SetIcon( CSize( 16, 15 ), m_ilButton.ExtractIcon( 2 ) ); } I have problem in m_ilButton.ExtractIcon() because it doesn't check result from m_ilButton.Create() and if it is false then m_ilButton.ExtractIcon( ) fails. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 August 2005 at 11:16pm |
|
If Create fails, that mean you have no codejock resource in your exe/dll I guess you build Application with Statically Toolkit? If so, add "XTToolkitPro.rc" in rc2 files. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ksiva
Newbie
Joined: 04 August 2005 Location: Russian Federation Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 August 2005 at 9:55am |
|
Yes. Thanks. You are genius.
|
|
![]() |
|
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 |