Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - TaskPanel Group Height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TaskPanel Group Height

 Post Reply Post Reply
Author
Message
Shajeer View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2006
Location: India
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shajeer Quote  Post ReplyReply Direct Link To This Post Topic: TaskPanel Group Height
    Posted: 11 July 2008 at 12:50am
Hi

I am using CXTPTaskPanel and I want to increase the caption height of each group and I want make the caption to be center aligned.

Please advice.

Thanks
Shajeer

Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2008 at 12:41pm
We derive a custom theme from CXTPTaskPanelExplorerThemePlain. The task panel samples contain a custom theme (I believe that is where we started ours from).
 
Override DrawGroupCaption. The routine gets in a flag that indicates the caption is being drawn or just measured. You can return the height you want when called to measure. When called to draw, you can draw the text however you like. The CDC is passed in and make sure you use DT_CENTER instead of DT_LEFT. We have calls to DrawText in both the measure and display sections of the method. We use DT_LEFT  in both cases and I assume you would want to use DT_CENTER in both cases.
 
 
Back to Top
ricyang View Drop Down
Newbie
Newbie


Joined: 26 August 2008
Location: China
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ricyang Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2008 at 8:51pm
Hi, rdhd,
 
I also want to increase the caption heiggt of each group. Could you explain in detail?
 
Ric
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.203 seconds.