Print Page | Close Window

Adding a Caption Button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3299
Printed Date: 04 May 2024 at 12:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding a Caption Button
Posted By: nguyena1
Subject: Adding a Caption Button
Date Posted: 28 November 2005 at 4:17pm

I'm just trying to add a caption button to all windows.  I followed the example docking containers. 

m_arrCaptionButtons.Add(new CXTPDockingPaneCaptionButton(IDB_BITMAP, this)

My problem is that I can't get an image to show up.  I've got a button theyre, I have an event handling for it, everything done.  I just can't get my bitmap image to show up on the caption bar?  A box is there when i hover mouse on and click and stuff.  But no image. 

Anthony




Replies:
Posted By: Oleg
Date Posted: 29 November 2005 at 12:51am

You must draw it manually in

CDockingPanePaintManager::DrawCaptionButton



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


Posted By: ferduva
Date Posted: 27 September 2012 at 5:59am
do yuo have an example?



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