wxWidgets 101 -15 Load bitmap from resources or files

    wxBitmap bmp(_("ID_xxx"), wxBITMAP_TYPE_BMP);

    wxMemoryDC dcTmp;
    dcTmp.SelectObject(bmp);
    rect->bottom = bmp.GetHeight() + rect->top;
    dc.Blit(rect->left, rect->top, rect->GetWidth(), rect->GetHeight(),
        &dcTmp, 0, 0 /* wxCOPY*/);

你可能感兴趣的:(wxWidgets 101 -15 Load bitmap from resources or files)