This example shows how the Image File class returns the handle to a bitmap representing the data stored in the data file. Notice how this method calls the wpQueryBitmapHandle method so all subclasses of WPImageFile can provide this function without adding any extra code.
SOM_Scope LHANDLE SOMLINK img_wpQueryHandleFromContents(WPImageFile *somSelf) { HBITMAP hBitmap = NULLHANDLE; _wpQueryBitmapHandle(somSelf,&hBitmap,NULL,0,0,0,RGB_BLACK,NULL); return hBitmap; }