Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Random GDI icons on Toobarbuttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Random GDI icons on Toobarbuttons

 Post Reply Post Reply
Author
Message
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post Topic: Random GDI icons on Toobarbuttons
    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++
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.109 seconds.