Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Using constraints and expand button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using constraints and expand button

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

Joined: 14 April 2005
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ssimon Quote  Post ReplyReply Direct Link To This Post Topic: Using constraints and expand button
    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.


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