Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to make toolbar in the scrollbar? Pin
1mao25-Oct-00 14:21
suss1mao25-Oct-00 14:21 
GeneralDCOM Server Pin
Roger25-Oct-00 9:42
Roger25-Oct-00 9:42 
GeneralRe: DCOM Server Pin
Roger26-Oct-00 1:33
Roger26-Oct-00 1:33 
GeneralRe: DCOM Server Pin
Roger31-Oct-00 2:00
Roger31-Oct-00 2:00 
GeneralRe: DCOM Server Pin
Roger31-Oct-00 2:01
Roger31-Oct-00 2:01 
QuestionHow can I enable/disable CEdit control context menu items? Pin
Byron Thomas Cullen25-Oct-00 9:27
Byron Thomas Cullen25-Oct-00 9:27 
AnswerRe: How can I enable/disable CEdit control context menu items? Pin
Erik Funkenbusch25-Oct-00 11:06
Erik Funkenbusch25-Oct-00 11:06 
GeneralRe: How can I enable/disable CEdit control context menu items? Pin
Byron Thomas Cullen26-Oct-00 7:57
Byron Thomas Cullen26-Oct-00 7:57 
Erik,

Thanks for your response.

I have CEdit subclassed already and I can trap the WM_COPY/CUT/PASTE messages there if I needed to in ::WindowProc. But I want to disable the menu items in the first place.

In a nutshell what I am trying to do is have a custom 'read-only' state in the edit control.

So I would like to be able to disable the Cut/Delete/Paste items of the default CEdit context menu when my control is 'read-only'. That way the user doesn't even have the option of selecting it.

The only thing I can think of is to create my own pop-up menu and look for a right click or that other windows key. Which is do-able, but I'd rather just be able to enable/disable the default context menu items at will.

Any ideas?

Byron
GeneralRe: How can I enable/disable CEdit control context menu items? Pin
Andrew Truckle26-Jan-22 21:38
professionalAndrew Truckle26-Jan-22 21:38 
Questionhow to disable focus on button when using arrows key Pin
eucalyptus25-Oct-00 6:03
eucalyptus25-Oct-00 6:03 
AnswerRe: how to disable focus on button when using arrows key Pin
Erik Funkenbusch25-Oct-00 9:25
Erik Funkenbusch25-Oct-00 9:25 
GeneralRe: how to disable focus on button when using arrows key Pin
eucalyptus25-Oct-00 21:49
eucalyptus25-Oct-00 21:49 
GeneralRe: how to disable focus on button when using arrows key Pin
Erik Funkenbusch26-Oct-00 11:32
Erik Funkenbusch26-Oct-00 11:32 
GeneralChange task bar menu "Start->Shut down ..." Pin
Mouez25-Oct-00 4:23
Mouez25-Oct-00 4:23 
GeneralRe: Change task bar menu Pin
Erik Funkenbusch25-Oct-00 9:26
Erik Funkenbusch25-Oct-00 9:26 
GeneralCopying a section of a char string Pin
David Wulff25-Oct-00 4:03
David Wulff25-Oct-00 4:03 
GeneralRe: Copying a section of a char string Pin
Serge Velikevitch25-Oct-00 5:22
sussSerge Velikevitch25-Oct-00 5:22 
GeneralRe: Copying a section of a char string Pin
Michael Dunn25-Oct-00 5:24
sitebuilderMichael Dunn25-Oct-00 5:24 
GeneralToolTip on CComboBoxEx Pin
Sylvain Courbette25-Oct-00 3:57
sussSylvain Courbette25-Oct-00 3:57 
GeneralProblems with ATL Component in Visual Basic Application Pin
Eduardo Rigolao25-Oct-00 3:18
sussEduardo Rigolao25-Oct-00 3:18 
Generalui Pin
koteswara25-Oct-00 1:56
koteswara25-Oct-00 1:56 
GeneralRe: ui Pin
Michael Dunn25-Oct-00 5:29
sitebuilderMichael Dunn25-Oct-00 5:29 
GeneralKoti -- How to add a tab to control panel / display Pin
koteswara25-Oct-00 1:23
koteswara25-Oct-00 1:23 
GeneralRe: Koti -- How to add a tab to control panel / display Pin
Michael Dunn25-Oct-00 5:42
sitebuilderMichael Dunn25-Oct-00 5:42 
GeneralMacro Processor for VC Pin
RobinT24-Oct-00 22:13
RobinT24-Oct-00 22:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.