samples/mfc: disable composition to allow wxClientDC to work

This commit is contained in:
Bill Su 2023-05-26 13:19:06 -04:00
parent 6b1683757f
commit 6ab144f9bf

View file

@ -297,6 +297,7 @@ wxEND_EVENT_TABLE()
MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
: wxScrolledWindow(parent, -1, pos, size)
{
MSWDisableComposited();
}
// Define the repainting behaviour