Prev: Create MFC dll and use with rundll32
Next: How to override the behavior of Ctrl+Tab in a MFC based MDI application
From: Bill David on 1 Nov 2009 22:39 By default, press Ctrl+Tab in a MFC based MDI application will switch between opened documents. But in some situation, I need bypass this behavior and continue dispatching this message to my CDockablePane. But I don't know which base class has defined above document switching behavior, so that I don't know where to redefine the behavior. How could I achieve it?
From: Kerem Gümrükcü on 1 Nov 2009 23:58
Hi Bill, i would recommend to Hook the MDI Parent and modify the behavior of the Key Stroke repectively the Window Messages on the MDI Parent. You will use a WH_KEYBOARD Hook for this, and/or WH_CALLWNDPROC on it, depending on what you additionally want to modify,... Thats what first comes to my mind,... Its been a long time for me using MFC, maybe you can override/implement something inside CMDIFrameWnd Handlers,... Regards Kerem -- ----------------------- Beste Gr�sse / Best regards / Votre bien devoue Kerem G�mr�kc� Latest Project: http://www.pro-it-education.de/software/deviceremover Latest Open-Source Projects: http://entwicklung.junetz.de ----------------------- "Bill David" <billdavidcn(a)gmail.com> schrieb im Newsbeitrag news:14a7f7ad-19e1-45db-a976-41cb46d70d3e(a)s21g2000prm.googlegroups.com... > By default, press Ctrl+Tab in a MFC based MDI application will switch > between opened documents. But in some situation, I need bypass this > behavior and continue dispatching this message to my CDockablePane. > > But I don't know which base class has defined above document switching > behavior, so that I don't know where to redefine the behavior. > > How could I achieve it? |