Click here to Skip to main content
16,005,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting 'MFCs' current directory Pin
Andy Latham10-Dec-03 6:47
Andy Latham10-Dec-03 6:47 
GeneralRe: Getting 'MFCs' current directory Pin
valikac10-Dec-03 8:49
valikac10-Dec-03 8:49 
GeneralAbout Winamp's Plugin Visualiztion Pin
pmasknguyen9-Dec-03 5:44
pmasknguyen9-Dec-03 5:44 
GeneralRe: About Winamp's Plugin Visualiztion Pin
User 66589-Dec-03 6:46
User 66589-Dec-03 6:46 
GeneralRe: About Winamp's Plugin Visualiztion Pin
pmasknguyen9-Dec-03 21:45
pmasknguyen9-Dec-03 21:45 
GeneralVisual C++ GUI Widgets Pin
LauraLee9-Dec-03 5:37
LauraLee9-Dec-03 5:37 
GeneralRe: Visual C++ GUI Widgets Pin
Neville Franks9-Dec-03 9:13
Neville Franks9-Dec-03 9:13 
GeneralMsg must stay... Pin
Michael Pauli9-Dec-03 5:12
Michael Pauli9-Dec-03 5:12 
I have this situation:

I have a CDialog and in it some ctrl's. I Enumerate all the ctrl's in it to let another window take over (a CTabCtrl derived class) the ctrl's for itself - working as a delegate for the "real" other window (called Wr here) - the dialog. This I do in order to let pages of the tab-ctrl work with the ctrl-sets to mimic that the dialog is embedded into the tab. So on tab shown I go SetWindowPos(...) on all the child's etc.

I use ::SetParent(hWndNewParent, hWndChild) for taking over the ownership - all works just fine!

Now my problem: How do I STILL let the messages from all kinds of ctrls go to the Wr (dialogs in this case and later on CView's)? Say I press a btn. on tab 0 - now the BN_CLICKED generated as a result of this press go to hWndNewParent (the CTabCtrl derived) and I want to route it to the Wr. This wish is because we already have all msg-handlers installed in lots of Wr's and would like to have'm stay their - otherwise it's mixed into a CTabCtrl derived and - well; no good!

My sugestion is still to catch "all interesting" messages on the new object and then go in the direction of (pseudo): pTabDlg->PostMessage(msg)...

So in other words my CTabCtrl derived class is a delegate only. Can I do that? I can use any help I can possible get – thanks in advance!



Regards,
Michael Mogensen, mm it-consult dk.

><((((º> ·.¸¸.· ><((((º> ·.¸¸.· ><((((º>
GeneralCustom CTreeCtrl expanded with NM_CUSTOMDRAW want to add HScrollbar Pin
sommelo19-Dec-03 4:51
sommelo19-Dec-03 4:51 
QuestionPlease help me, why I cannot open the project? Pin
zhaopzhi9-Dec-03 4:35
zhaopzhi9-Dec-03 4:35 
AnswerRe: Please help me, why I cannot open the project? Pin
Alexander M.,9-Dec-03 4:49
Alexander M.,9-Dec-03 4:49 
GeneralRe: Please help me, why I cannot open the project? Pin
zhaopzhi9-Dec-03 17:45
zhaopzhi9-Dec-03 17:45 
GeneralCapture input of the CommandWindow Pin
Adi Narayana9-Dec-03 4:22
Adi Narayana9-Dec-03 4:22 
GeneralRe: Capture input of the CommandWindow Pin
JoeZhang9-Dec-03 18:00
JoeZhang9-Dec-03 18:00 
GeneralUDP Muticast Pin
suiram409-Dec-03 3:58
suiram409-Dec-03 3:58 
GeneralRe: UDP Muticast Pin
Alexander M.,9-Dec-03 4:50
Alexander M.,9-Dec-03 4:50 
GeneralRenameing Resource.h Pin
Prakash Nadar9-Dec-03 3:28
Prakash Nadar9-Dec-03 3:28 
GeneralRe: Renameing Resource.h Pin
Alexander M.,9-Dec-03 4:54
Alexander M.,9-Dec-03 4:54 
GeneralPlease Help with my Switching View Problem Pin
swerajan9-Dec-03 3:04
swerajan9-Dec-03 3:04 
GeneralRe: Please Help with my Switching View Problem Pin
Joel Lucsy9-Dec-03 3:25
Joel Lucsy9-Dec-03 3:25 
GeneralRe: Please Help with my Switching View Problem Pin
Michael P Butler9-Dec-03 3:27
Michael P Butler9-Dec-03 3:27 
GeneralBasic question on Pointers!! Pin
Ilamparithi9-Dec-03 2:35
Ilamparithi9-Dec-03 2:35 
GeneralRe: Basic question on Pointers!! Pin
Taka Muraoka9-Dec-03 2:46
Taka Muraoka9-Dec-03 2:46 
GeneralRe: Basic question on Pointers!! Pin
jmkhael9-Dec-03 2:46
jmkhael9-Dec-03 2:46 
GeneralCCombobox than Dropdown! Pin
Wholesaler9-Dec-03 1:57
Wholesaler9-Dec-03 1:57 

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.