L_DispContainerPrintCell

Summary

Returns windows bitmap; HBITMAP that contains a printable version of the specified cell or sub-cell.

Syntax

#include "ltivw.h"

L_LTIVW_API HBITMAP EXT_FUNCTION L_DispContainerPrintCell(hCellWnd, uFlags)

Parameters

L_HWND hCellWnd

A handle to the window that represents the cell on which the function's effect will be applied.

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
>0 HBITMAP.
0 An error occurred. Refer to Return Codes.

Comments

Once the HBITMAP is no longer needed, you should delete it using the windows function DeleteObject.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example print the first cell

HBITMAP DispContainerPrintCellExample(HDISPCONTAINER hCon) 
{ 
   if (L_DispContainerGetCellCount(hCon, 0) == 0) 
   { 
      MessageBox(NULL, TEXT("you must at least have one cell added to the viewer"), TEXT("No Cell attached"), MB_OK); 
      return NULL; 
   } 
 
   HWND hCellWnd = L_DispContainerGetCellWindowHandle(hCon, 0, 0); 
 
   HBITMAP hBitmap = L_DispContainerPrintCell(hCellWnd, 0); 
 
   return hBitmap; 
} 

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.