Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Adding a Caption Button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding a Caption Button

 Post Reply Post Reply
Author
Message Reverse Sort Order
ferduva View Drop Down
Newbie
Newbie


Joined: 22 September 2012
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ferduva Quote  Post ReplyReply Direct Link To This Post Topic: Adding a Caption Button
    Posted: 27 September 2012 at 5:59am
do yuo have an example?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 29 November 2005 at 12:51am

You must draw it manually in

CDockingPanePaintManager::DrawCaptionButton

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
nguyena1 View Drop Down
Groupie
Groupie


Joined: 28 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyena1 Quote  Post ReplyReply Direct Link To This Post 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

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.172 seconds.