// C callbacks void Update::cbBeginPaint(rdpContext* context) { Update *self = reinterpret_cast<wsgContext *>(context)->pUpdate; if (self) { self->BeginPaint(context); } }