Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Subclassing the Verb window......
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Subclassing the Verb window......

 Post Reply Post Reply
Author
Message
Kevin6 View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Topic: Subclassing the Verb window......
    Posted: 16 August 2005 at 6:46am

Hi,

 I would like to subclass the verb window - currently when you use the current line of code -:

 this->GetVerbs()->Add(_T("Run Update"), 1);

It adds a 'link' to the verb panel - but I would like to add 'buttons'?

It is not clear to me  how to do this as the Verb window would appear to be set up via the Property Pane as a child window.....

Can anyone point me in the right direction for this?

regards

Richard

Kevin.
Back to Top
Kevin6 View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2005 at 8:36am

Cor that wasn't fun....

So the verb window and the help window are not 'windows' at all which I would have thought would be a much neater implementation.

They are CRects that get drawn during the Paint call for the Property Grid.

To customise these you need to derive your own Property Grid and over-ride the OnPaint - but not call the Codejock base class method.

This will still let the grid area to be drawn but the Verb and help area are now disabled... and you can draw what you want here...

I would recommend referring to the code source in XTPropertyGrid.h and .cpp to replicate and customise the drawing.

Rich

Kevin.
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.141 seconds.