Print Page | Close Window

CXTPControlEdit - Custom Height

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12165
Printed Date: 16 November 2024 at 5:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlEdit - Custom Height
Posted By: ceen
Subject: CXTPControlEdit - Custom Height
Date 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.



Replies:
Posted By: g_j_a_i_n
Date 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.




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