![]() |
Context menu in property grid |
Post Reply
|
| Author | |
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Topic: Context menu in property gridPosted: 22 July 2008 at 6:55am |
|
Hi!
Is it possible to have a context (RMB) menu in a property grid item? Thanks! Dennis |
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 July 2008 at 7:39am |
|
Hi;
Just overwrite the CXTPPropertyGridItem::OnRButtonDown(UINT nFlags, CPoint point); It's a virtual function and can be used to show a popup menu. |
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 July 2008 at 8:40am |
Thank you! Will do that. |
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
zanget
Newbie
Joined: 21 April 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 April 2009 at 8:33am |
|
im a new for codejock,i had a problem on overwrite this functions:
this is my code:
class CCustomItemzPWDChilds : public CXTPPropertyGridItem
{ public: CCustomItemzPWDChilds(CString strCaption,CString * editText,int Maxlen) : CXTPPropertyGridItem(strCaption), m_wndEdit(editText,Maxlen) { if(editText) { CString tmp = *editText; BindToString(editText); *editText = tmp; } } protected: but the edit box also had a menu,i just need to disable the menu....
i dont know why and how to do so.
wait for you replay...
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |