Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp! Checkboxes in CListCtrl's Pin
Sprudling9-Aug-01 4:33
Sprudling9-Aug-01 4:33 
GeneralRe: Help! Checkboxes in CListCtrl's Pin
Tomasz Sowinski9-Aug-01 4:43
Tomasz Sowinski9-Aug-01 4:43 
GeneralRe: Help! Checkboxes in CListCtrl's Pin
Sprudling9-Aug-01 5:32
Sprudling9-Aug-01 5:32 
GeneralRe: Help! Checkboxes in CListCtrl's Pin
Tomasz Sowinski9-Aug-01 5:37
Tomasz Sowinski9-Aug-01 5:37 
GeneralDC-conversion from 32 to 8 bit Pin
9-Aug-01 2:17
suss9-Aug-01 2:17 
GeneralRe: DC-conversion from 32 to 8 bit Pin
Reno Tiko9-Aug-01 3:20
Reno Tiko9-Aug-01 3:20 
GeneralRe: DC-conversion from 32 to 8 bit Pin
9-Aug-01 5:02
suss9-Aug-01 5:02 
GeneralSublassing CEdit from CTreeCtrl with edit labels style Pin
9-Aug-01 1:49
suss9-Aug-01 1:49 
Hi,

I have a nice subclassed CEDit class that controls input to exactly the characters I allow. And I have a CTreeCtrl with Edit labels style. I'd like to be able to use my subclassed CEdit to control what the user can enter in the edit part of the treeview.

It says that this can be done in the help:

During label editing, typically in response to the TVN_BEGINLABELEDIT notification message, you can get a pointer to the edit control used for label ....[you can]...subclass the edit control to intercept and discard invalid characters. Note, however, that the edit control is displayed only after TVN_BEGINLABELEDIT is sent.

I know what it's saying, and I know how to get this CEdit pointer. But I have no idea how to implement this as a CMyEdit. Is it as simple as just casting the pointer into a CMyEdit?

ie:
CMyEdit *p_MyEdit;
p_MyEdit = (CMyEdit *) m_MyTreeCtrl.GetEditControl();


or am i barking up the wrong tree totally?

I'm certainly getting in at the deep end, but learning a lot as I do it. So thanks everyone who's helpmed me in the last few weeks!

Slippyr4
GeneralRe: Sublassing CEdit from CTreeCtrl with edit labels style Pin
Tomasz Sowinski9-Aug-01 2:45
Tomasz Sowinski9-Aug-01 2:45 
GeneralRe: Sublassing CEdit from CTreeCtrl with edit labels style Pin
9-Aug-01 3:04
suss9-Aug-01 3:04 
GeneralRe: Sublassing CEdit from CTreeCtrl with edit labels style Pin
Michael Dunn9-Aug-01 2:53
sitebuilderMichael Dunn9-Aug-01 2:53 
GeneralWeird, weird, weird request! Pin
9-Aug-01 1:32
suss9-Aug-01 1:32 
GeneralRe: Weird, weird, weird request! Pin
Tomasz Sowinski9-Aug-01 2:42
Tomasz Sowinski9-Aug-01 2:42 
GeneralDatabase Pin
vijayaramaraju9-Aug-01 0:58
vijayaramaraju9-Aug-01 0:58 
GeneralDirectory changes detection Pin
Hong Wye Kean9-Aug-01 0:45
Hong Wye Kean9-Aug-01 0:45 
GeneralRe: Directory changes detection Pin
Michael Dunn9-Aug-01 0:50
sitebuilderMichael Dunn9-Aug-01 0:50 
GeneralRe: Directory changes detection Pin
Hong Wye Kean9-Aug-01 15:31
Hong Wye Kean9-Aug-01 15:31 
GeneralRe: Directory changes detection Pin
Michael Dunn9-Aug-01 15:51
sitebuilderMichael Dunn9-Aug-01 15:51 
GeneralPing From Code Pin
AJ1239-Aug-01 0:21
AJ1239-Aug-01 0:21 
GeneralRe: Ping From Code Pin
9-Aug-01 1:04
suss9-Aug-01 1:04 
GeneralMFC DLLs and Static Libraries Pin
8-Aug-01 21:30
suss8-Aug-01 21:30 
GeneralRe: MFC DLLs and Static Libraries Pin
Tomasz Sowinski9-Aug-01 4:06
Tomasz Sowinski9-Aug-01 4:06 
GeneralAdding minimize button to a toolbar window Pin
Reno Tiko8-Aug-01 19:57
Reno Tiko8-Aug-01 19:57 
GeneralPlease help me with some buttons... Pin
8-Aug-01 18:08
suss8-Aug-01 18:08 
GeneralRe: Please help me with some buttons... Pin
Derek Waters8-Aug-01 21:10
Derek Waters8-Aug-01 21:10 

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.