15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


WM_CONTEXTMENU and CRichEditCtrl

Mark Eastman -- Mark_Eastman@pc173.qsp.co.uk
Monday, July 29, 1996

     Environment: VC++ 4.1 on Win 95.
     
     I'm trying to detect the context menu request WM_CONTEXTMENU within a 
     CRichEditCtrl which was dynamically created on a CDialog derived 
     class.
     
     The standard CRichEditView supports a virtual function to get the 
     context menu after the view has detected that one is required. However 
     I am creating a control on a dialog and not using the view class.
     
     In a more general nature how do I detect messages for controls which 
     are not supported by class wizard. What I want is something like
        ON_CONTROL_MESSAGE( WM_MESSAGE_ID, id, function )
     but I can't find any such macro.
     
     Help appreciated.
     
     Mark Eastman (email MarkE@qsp.co.uk)



Mark Eastman -- Mark_Eastman@qsp.co.uk
Monday, August 05, 1996

     Environment:  VC++ 4.1, Win95
     
     I'm trying to detect the context menu request WM_CONTEXTMENU within a 
     CRichEditCtrl which was dynamically created on a CDialog derived 
     class.
     
     The standard CRichEditView supports a virtual function to get the 
     context menu after the view has detected that one is required. However 
     I am creating a control on a dialog and not using the view class.
     
     In a more general nature how do I detect messages for controls which 
     are not supported by class wizard. What I want is something like
        ON_CONTROL_MESSAGE( WM_MESSAGE_ID, id, function )
     but I can't find any such macro.
     
     Help appreciated.
     
     Mark Eastman (email MarkE@qsp.co.uk)




| Вернуться в корень Архива |