mfc >> Suppressing in-line edit of Tree control

by Anders Eriksson » Mon, 24 Nov 2003 17:18:29 GMT

Hello!

One on the most stupid features in Windows it the in-line editing when
clicking on a node in a Tree Control. I don't know how many times my users
(.it's not me.) has renamed a directory so that they can't find anything
anymore...

How do I suppress this in my application?
Is it possible to suppress this in Explorer?


I still want the right-click - Rename to work.

// Anders


mfc >> Suppressing in-line edit of Tree control

by Ajay Kalra » Mon, 24 Nov 2003 18:12:09 GMT


Try this: http://www.codeguru.com/treeview/PreventEditing.shtml

Also follow the comments in the above article.

--
Ajay Kalra [MVP - VC++]
XXXX@XXXXX.COM




| Hello!
|
| One on the most stupid features in Windows it the in-line editing when
| clicking on a node in a Tree Control. I don't know how many times my users
| (.it's not me.) has renamed a directory so that they can't find anything
| anymore...
|
| How do I suppress this in my application?
| Is it possible to suppress this in Explorer?
|
|
| I still want the right-click - Rename to work.
|
| // Anders




Similar Threads

1. multi line edit control - new line

This is a silly question, but the answer has escaped me.  I'm building
a CString in code and want to load it in a multi line edit control.
Normally I would use '\n' for a new line but the edit control doesn't
process this.  What character should I insert in the CString to start a
new line?  The edit control is set to multi line and accept return.
Thanks,
Paul

2. next line on edit control

3. DLGC_WANTMESSAGE doesn't works well for multi-line edit controls

I don't want ESC to dismiss my dialog box when focus is on the edit
control. So I subclass the edit control called CMyEdit and add a
handler to the WM_GETDLGCODE message and always return
DLGC_WANTALLKEYS.

I wish all keyboard input could be intercepted in my CMyEdit class
now. But unfortunately when the edit control is a single-line control,
keyboard input VK_RETURN and VK_ESCAPE are both intercepted. While
when to multi-line edit controls only VK_RETURN could be intercepted,
but press ESC still dismiss the dialogbox.

Why doesn't DLGC_WANTALLKEYS intercepte all keyboard input?
Thank you!

4. newb: What multi line edit control can I use

5. setting tab order for multi line edit control

hello all

        Can dynamically created multi line edit control is included in the tabbing order. i placed WS_TABSTOP   while creating but while pressing tab focus is not going to other control.for single line edit control its working.

6. newb: What multi line edit control can I use

7. Suppress warning from a single line

I want to suppress the following warning when compiling.
warning CS0169: The private field 'myvar' is never used

In C++ you would do something like (not sure of the syntax):
#pragma nowarn:0169
  string myvar;
#pragma warn:0169

Is this really still not possible in C#?
I know you can set the /nowarn:0169 option in you project, but I do not want 
to disable it for everything in the project..
I just want to disable it from that one line until 'myvar' gets implemented. 


8. Suppress showing a QuickReport Preview line - Borland C++ Builder VCL Components