STDMETHOD(SetExtent)(DWORD dwDrawAspect, SIZEL *psizel)
{
BITMAP bitmap;
HBITMAP hbmp = LoadBitmap( _AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(IDB_WINSOCKIPV6) );
GetObject ( hbmp, sizeof(bitmap), &bitmap) ;
DeleteObject( hbmp);
static const int HIMETRIC_INCH = 2540;
HDC hdc = ::GetDC( NULL );
psizel->cx = MulDiv( bitmap.bmWidth, HIMETRIC_INCH, GetDeviceCaps( hdc, LOGPIXELSX) );
psizel->cy = MulDiv( bitmap.bmHeight, HIMETRIC_INCH, GetDeviceCaps( hdc, LOGPIXELSY) );
::ReleaseDC( NULL, hdc);
return IOleObjectImpl<CWinSockIPv6>::SetExtent( dwDrawAspect, psizel);
}