added wxDIB::Save() and wxDIB to/from wxBitmap) conversions, use them instead of the old C functions (the latter were removed, there is no old code left any more)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -220,13 +220,13 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
|
||||
|
||||
case wxDF_DIB:
|
||||
{
|
||||
#if wxUSE_IMAGE_LOADING_IN_MSW
|
||||
wxBitmap *bitmap = (wxBitmap *)data;
|
||||
HBITMAP hBitmap = (HBITMAP)bitmap->GetHBITMAP();
|
||||
// NULL palette means to use the system one
|
||||
HANDLE hDIB = wxBitmapToDIB(hBitmap, (HPALETTE)NULL);
|
||||
handle = SetClipboardData(CF_DIB, hDIB);
|
||||
#endif // wxUSE_IMAGE_LOADING_IN_MSW
|
||||
|
||||
HGLOBAL hDIB = wxDIB::ConvertFromBitmap(GetHbitmapOf(*bitmap));
|
||||
if ( hDIB )
|
||||
{
|
||||
handle = ::SetClipboardData(CF_DIB, hDIB);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user