Can I add a menu item to the popup menu of any CEdit?
-
Hi All, I just in between of a project.. i need to add some menuitem in the default cut,copy,paste menu.. but problem is that i am not able to get Handle to the Menu so that.. i can add my new sub item... Could someone give me some pointer to solve this problem.. in brief i want to extend the default Right Click Cut,Copy,Paste menu which come when you right click on any EDIT Box in unmanaged VC++
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
-
Hi All, I just in between of a project.. i need to add some menuitem in the default cut,copy,paste menu.. but problem is that i am not able to get Handle to the Menu so that.. i can add my new sub item... Could someone give me some pointer to solve this problem.. in brief i want to extend the default Right Click Cut,Copy,Paste menu which come when you right click on any EDIT Box in unmanaged VC++
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
I know your problem and I think I saw an example that insert items to right click on editbox but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)
WhiteSky
-
I know your problem and I think I saw an example that insert items to right click on editbox but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)
WhiteSky
WhiteSky wrote:
but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)
my search is't fruitfull today, might be yours:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
-
Hi All, I just in between of a project.. i need to add some menuitem in the default cut,copy,paste menu.. but problem is that i am not able to get Handle to the Menu so that.. i can add my new sub item... Could someone give me some pointer to solve this problem.. in brief i want to extend the default Right Click Cut,Copy,Paste menu which come when you right click on any EDIT Box in unmanaged VC++
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
I think that you will have to override the right-click/WM_CONTEXTMENU and provide your own. I do not think it is possible to directly modify the the edit control's menu because I think that menu is built-into the edit control and is a standard feature of Win32 (ever since Win2K or Win9x, I believe). A global hook can simulate a modification to the shared menu... Peace!
-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!) -
I think that you will have to override the right-click/WM_CONTEXTMENU and provide your own. I do not think it is possible to directly modify the the edit control's menu because I think that menu is built-into the edit control and is a standard feature of Win32 (ever since Win2K or Win9x, I believe). A global hook can simulate a modification to the shared menu... Peace!
-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!)James R. Twine wrote:
I think that menu is built-into the edit control and is a standard feature of Win32 (ever since Win2K or Win9x, I believe).
I tried that, but no use?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
-
WhiteSky wrote:
but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)
my search is't fruitfull today, might be yours:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
-
WhiteSky wrote:
How to modify a CEdit context menu[^]By Mr PJ Arends.
thanks hamid!.. that i am looking for.. thanks a ton!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
-
WhiteSky wrote:
How to modify a CEdit context menu[^]By Mr PJ Arends.
thanks hamid!.. that i am looking for.. thanks a ton!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You
I glad that your problem solve:-D
WhiteSky