control in View
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
in my MDI project. there is a "CGridCtrl m_Grid" variable in MyView. I want MyView to intercept Windows Message to m_Grid. Can I do that? I was thinking SubclassDlgItem may work, but I realy can't to figure it out. Any help is appreciate. :^)
If you just want posted and input messages you could overide
PreTranslateMessage
in your view class. If you want all messages, not just those dispatched by the message loop, it will be harder. One option would be to subclass the control and have the newWindowProc
delegate the work to your view class. Steve