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 阅读(300) 评论(0)  编辑 收藏 引用

导航

<2026年10月>
日一二三四五六
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

统计

常用链接

留言簿(1)

随笔档案(21)

文章档案(1)

最新评论

评论排行榜