Custom event handler can't catch wxPaintEvent?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
bloodlee
Experienced Solver
Experienced Solver
Posts: 77
Joined: Thu Nov 30, 2006 10:49 am
Location: Shenzhen, CHN

Custom event handler can't catch wxPaintEvent?

Post by bloodlee » Thu Oct 30, 2008 3:25 am

Hi, all.

I wrote a custome event handler and try to catch the wxPaintEvent. Code:

Code: Select all

BEGIN_EVENT_TABLE(....)
EVT_PAINT(...)
END_EVENT_TABLE()
In XP, it's OK. But when using wxGTK, I failed.

Any suggestions?

Thanks. :)

bloodlee
Experienced Solver
Experienced Solver
Posts: 77
Joined: Thu Nov 30, 2006 10:49 am
Location: Shenzhen, CHN

Post by bloodlee » Thu Oct 30, 2008 8:48 am

Sorry, that's my code mistake.

Post Reply