Click here to Skip to main content
15,844,498 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Eugen Podsypalnikov9-Feb-12 21:30
Eugen Podsypalnikov9-Feb-12 21:30 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen12310-Feb-12 6:35
Fallen12310-Feb-12 6:35 
AnswerRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 0:17
mveRichard MacCutchan6-Feb-12 0:17 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 0:38
Fallen1236-Feb-12 0:38 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 1:04
mveRichard MacCutchan6-Feb-12 1:04 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 1:35
Fallen1236-Feb-12 1:35 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 2:14
mveRichard MacCutchan6-Feb-12 2:14 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 3:16
Fallen1236-Feb-12 3:16 
Okay article that fried me.

I was almost sure I couldn't pull this trick (and still thinking about it Trapping OnChildNotify ...).

I think I'll try to derive A Ctoolbar class with a wndproc handler - OnChildNotify firing messages on to my derived clistbox wndproc. It seems that might do it. All it would need is the original Window creating the toolbar.

If that fails

I'll probably just recreate my class Via CFrame, add the cListbox and toolbar. write the toolbar handler in Cframe ... and make the CFrame invisible using Defines

Still it seems that you should be able to rout the WndProc messages of a child to any handler you want. Then filter, and send unprocessed messages to the original handler.


One way or the other Thanx for your input
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 4:03
mveRichard MacCutchan6-Feb-12 4:03 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 7:35
Fallen1236-Feb-12 7:35 
QuestionSegFault Pin
chidacode5-Feb-12 8:07
chidacode5-Feb-12 8:07 
AnswerRe: SegFault Pin
Albert Holguin5-Feb-12 9:45
professionalAlbert Holguin5-Feb-12 9:45 
AnswerRe: SegFault Pin
CPallini5-Feb-12 22:57
mveCPallini5-Feb-12 22:57 
GeneralRe: SegFault Pin
Albert Holguin6-Feb-12 11:14
professionalAlbert Holguin6-Feb-12 11:14 
AnswerRe: SegFault Pin
Stephen Hewitt6-Feb-12 5:07
Stephen Hewitt6-Feb-12 5:07 
QuestionTCP/IP problems Pin
ForNow4-Feb-12 17:27
ForNow4-Feb-12 17:27 
AnswerRe: TCP/IP problems Pin
Mohibur Rashid5-Feb-12 5:34
professionalMohibur Rashid5-Feb-12 5:34 
AnswerRe: TCP/IP problems Pin
Albert Holguin5-Feb-12 9:42
professionalAlbert Holguin5-Feb-12 9:42 
GeneralRe: TCP/IP problems Pin
ForNow5-Feb-12 13:14
ForNow5-Feb-12 13:14 
GeneralRe: TCP/IP problems Pin
Albert Holguin5-Feb-12 14:46
professionalAlbert Holguin5-Feb-12 14:46 
GeneralRe: TCP/IP problems Pin
ForNow5-Feb-12 17:05
ForNow5-Feb-12 17:05 
Questionsystem phisycal drive Pin
RomTibi4-Feb-12 7:15
RomTibi4-Feb-12 7:15 
AnswerRe: system phisycal drive Pin
Rajesh R Subramanian4-Feb-12 9:15
professionalRajesh R Subramanian4-Feb-12 9:15 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 3:04
RomTibi5-Feb-12 3:04 
GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 4:00
professionalJochen Arndt5-Feb-12 4:00 

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.