Print Page | Close Window

Using constraints and expand button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=2140
Printed Date: 23 November 2024 at 9:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using constraints and expand button
Posted By: ssimon
Subject: Using constraints and expand button
Date Posted: 21 April 2005 at 10:26am
I would like to use both a combobox and an 'expand' button. Unfortunately, the CXTPPropertyGridItem doesn't appear to support both flags simultaneously.

So I am trying to write my own CXTPPropertyGridItem-derived class that uses a CComboBox and CButton. I have followed the same pattern as the samples that use custom grid items, and in my OnSelect() I call Create() and MoveWindow() on my combobox (and button) passing in the CRect returned by GetValueRect(). Unfortunately, when the combobox is drawn its height is taller than the height of the grid cell. Might anyone have any ideas/suggestions? Or is there a better way to approach this?

Thank you in advance for any suggestions.





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