Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlEdit - Custom Height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlEdit - Custom Height

 Post Reply Post Reply
Author
Message
ceen View Drop Down
Newbie
Newbie


Joined: 16 September 2008
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ceen Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlEdit - Custom Height
    Posted: 16 September 2008 at 1:22pm
Hi,

I've had some success in creating a edit control with custom height by deriving from the PaintManager and m_nEditHeight, but that affects all Edit Controls.  Is there a way to have different edit controls in the same ribbon bar different heights?  Thank you.
Back to Top
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 91
Post Options Post Options   Thanks (1) Thanks(1)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2017 at 5:06am

With version 17.3, I derived a new class from CXTPControlEdit and had overridden the following function 

virtual void CXTPControlEdit::DeflateEditRect(CRect& rcControl)

Then modified rcControl and m_rcControl rects.

It worked.

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