![]() |
Random GDI icons on Toobarbuttons |
Post Reply ![]() |
Author | |
BobWansink ![]() Groupie ![]() ![]() Joined: 24 January 2008 Status: Offline Points: 59 |
![]() ![]() ![]() ![]() ![]() Posted: 09 June 2009 at 8:21am |
Hi all,
We've been using the Commandbars for a while now, and something seems to be going wrong. Our toolbars are dynamic. We create them with a constructor and Add() them to CXPControl * pControls. Everything seems in order, but sometimes we get icons that disappear; they are there the first time we load the dialog, but when the menu and toolbar's are recalculated, we get toolbaritems without icons, or worse, with random windows icons. From Google, I've learned that random icons on toolbars often means that the gdi pool might be full. Icons are loaded into a CImageList, and each Control that has an icon uses function CXTPControl::SetIconId(); to add an icon to the control. Do any of you know what might cause my toolbar to display the wrong images? Thanks in advance. Bob |
|
Product: Xtreme ToolkitPro (MFC) version 13.0.0
Platform: Windows (32bit) - XP - Vista Language: Visual C++ |
|
![]() |
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 |