解决方案 »
- 合并Exe与DLL
- 网络接收和发送IOCP
- 有没有办法在缺少.h .lib的情况下,直接使用DLL文件中的类?
- VC裏,怎麼調出局域網的“本地連接”的“屬性”窗口?
- 通过移动短信网关发送短信成功,但是发送图片总是失败。请高人指点,文挡或者代码都可,顶也给分!!!
- 怎么搜索出特定目录下的所有的指定的某种类型的文件?
- C#怎么引用VCD的DLL
- 有谁知道怎样让漂浮的工具条的关闭按钮禁止的吗 或者 在显示浮动工具条时就不显示标题栏
- 在socket 中,send()后getlasterror()返回的值为10038,谁能告诉是什么错误吗?
- Winsocket中的completionport编程问题
- Splash screen component加入失败
- 如何生成一个两级标题的列表框
因为 COleControl 不直接支持 ON_MOUSEWHEEL 事件,但 COleControl 是从 CWnd 派生出来的,而 CWnd 是支持这一事件的,因此考虑在应用程序主类(CXXXCtrl)中直接使用 CWnd 类的消息函数。
子类化参考下面的
http://www.vckbase.com/document/viewdoc/?id=1343
Hi there,
I created one ATL control(Composite Control) and let it to receive
WM_MouseWheel
message. After completing, I found it could not receive WM_MouseWheel
message
(But any others like WM_LBUTTONDBLCLK are OK). I searched here and
found I
need do SetFocus() before mousewheel action. It works in ActiveX
Control test Container. But when I inserted it in MFC application, it
did not work. No
response for mouse whel action. Following is some segments of my
code:
1. Message handle
CHAIN_MSG_MAP(CComCompositeControl<CAVNicePlay>)
MESSAGE_HANDLER(WM_MOUSEWHEEL, OnMouseWheel)
2. I used LBDown to do SetFocus()
LRESULT CAVNicePlay::OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM
lParam, BOOL& bHandled)
{
SetFocus();
return 0;
}
Is there something wrong?
Thanks in advance
Alex
看一下控件中各个窗口的属性,是否有WS_TAB属性