如何在wxWidgets中响应系统事件?

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
ZaviOr
In need of some credit
In need of some credit
Posts: 1
Joined: Thu Aug 27, 2009 10:18 am

如何在wxWidgets中响应系统事件?

Post by ZaviOr » Thu Aug 27, 2009 10:24 am

我想检测剪贴板变化

MSDN上说:
首先SetClipBoardViewer(hwnd)
把窗口加入ClipboardViewer Chain
这样当剪贴板有变化的时候
就会收到WM_DRAWCLIPBOARD

怎么才能在wxWidgets中响应这个事件呢?

ccnyou
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Sep 28, 2012 8:08 am

Re: 如何在wxWidgets中响应系统事件?

Post by ccnyou » Thu Mar 28, 2013 8:16 am

看wxWidgets下面的Simples,有个 ClipBoard 的例子,里面实现了OnClipBoardChange

ccnyou
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Sep 28, 2012 8:08 am

Re: 如何在wxWidgets中响应系统事件?

Post by ccnyou » Thu Mar 28, 2013 10:51 am

EVT_CLIPBOARD_CHANGED(MyFrame::OnClipboardChange)

Post Reply