Morya

wxPaintDC

A wxPaintDC must be constructed if an application wishes to paint on the client area of a window from within an EVT_PAINT() event handler. This should normally be constructed as a temporary stack object; don't store a wxPaintDC object. If you have an EVT_PAINT() handler, you must create a wxPaintDC object within it even if you don't actually use it.

如果使用EVT_PAINT()分配paint事件处理函数,一定要在处理函数里创建一个wxPaintDC临时变量。否则程序会Halt。

posted on 2008-11-05 17:06 Morya 阅读(275) 评论(0)  编辑 收藏 引用

导航

<2009年12月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

统计

常用链接

留言簿(1)

随笔档案(21)

文章档案(1)

最新评论

评论排行榜