MFC OCX Subclassing Problem 
Author Message
 MFC OCX Subclassing Problem

I am trying to create an OCX based on the "EDIT" standard windows control.
I would like to trap the WM_KEYPRESS message, look for the VK_RETURN value
in that message, and prevent the control from beeping.  I don't want the
control to be multilined.  I've allready told the ClassWizard that I want
my control subclassed under the "EDIT" control.  My problem is where do I
intercept the message?  Just intercepting in an OnKeyDown () function
doesn't seem to do the trick.  It executes the code in that function, but
then it goes on and lets the control beep.

Can anyone out there help?

Chris Mitzel



Mon, 07 Feb 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Subclassing ListView in an OCX + Inactive mode paint

2. problem with inserting ocx into mfc project

3. problems by calling mfc-dialog with included ocx

4. problems by calling mfc-dialog with included ocx

5. problem in linking static MFC in an OCX project,urgent

6. Loading a static-mfc-dll using ocx in a non-mfc application

7. How to create ocx within another ocx in the same .ocx file

8. Subclassing in MFC

9. Subclassing Windows class in MFC

10. newbie: subclassing richedit in an ActiveX MFC ctl

11. MFC Subclassing

12. subclassing a MFC subclassed window

 

 
Powered by phpBB® Forum Software