repaint parent panel

I'm a newbie to coding wx / GUI apps.
I start a wxDialog from a wxPanel and the the windows overlap. If I move the wxDialog slightly before closing, the parent wxFrame has a nice gray blob where the 2 windows overlapped. What code do I need to repaint the overlapped bit?

Many thanks
Tertius