Print Page | Close Window

Exception on SetIcons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1384
Printed Date: 06 November 2025 at 11:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Exception on SetIcons
Posted By: Vitaly
Subject: Exception on SetIcons
Date Posted: 08 November 2004 at 9:25am

Can't understand why within CMainFrame::OnCreate() on this line:

m_paneManager.SetIcons(IDB_BITMAP_PANEICONS, nIDPaneIcons, _countof(nIDPaneIcons), RGB(0, 255, 0));

i'm always getting an exception from XTPDockingPaneManager.cpp, Line 590.

Any idea why? I'm evaluating the product, so can't debug into to see what's wrong. This is an MDI app.

 




Replies:
Posted By: Vitaly
Date Posted: 08 November 2004 at 10:23am

Found something: resizing the bitmap to just actually supported images helped. This is strange, because i specified correctly how many images i wanted from that bitmap, and the map of commands was correct too...

Any comments?

 



Posted By: Oleg
Date Posted: 08 November 2004 at 12:02pm

In the code we have assert:

 ASSERT(il.GetImageCount() == nCount); // Icons must be 16x16.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net