Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Exception on SetIcons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception on SetIcons

 Post Reply Post Reply
Author
Message
Vitaly View Drop Down
Groupie
Groupie


Joined: 05 November 2004
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vitaly Quote  Post ReplyReply Direct Link To This Post Topic: Exception on SetIcons
    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.

 

Back to Top
Vitaly View Drop Down
Groupie
Groupie


Joined: 05 November 2004
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vitaly Quote  Post ReplyReply Direct Link To This Post 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?

 

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.