| VB Extension Tools HTML project report | |
| Project: CodeHelperCollection | Module: MCaptureWindows |
| Module Type  | Standard module  |
|---|---|
| File  | C:\Code\EE-projects\units\vb\standard\src\CaptureWindows.bas  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  |
This module contains several routines for capturing windows into a picture for 32 bit Windows platforms. The routines also have palette support.  |
| Requierements  |
win.tlb Standard OLE Types  |
| CreateBitmapPicture | |
| CaptureWindow | |
| CaptureScreen | |
| CaptureForm | |
| CaptureClient | |
| CaptureActiveWindow | |
| PrintPictureToFitPage |
| Procedure 'CreateBitmapPicture' | List of procedures |
| Scope/Type  | Public Function  |
|---|---|
| Code parameters  |
ByVal hBmp As Long ByVal hPal As Long  |
| Code return value  | Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Creates a bitmap type Picture object from a bitmap and palette.  |
| Result  | Reference to a 'Picture' object containing the bitmap.  |
| In parameters  |
Handle to a bitmap. Handle to a Palette (Can be null if bitmap doesn't use palette).  |
| Procedure 'CaptureWindow' | List of procedures |
| Scope/Type  | Public Function  |
|---|---|
| Code parameters  |
ByVal hWndSrc As Long ByVal Client As Boolean ByVal LeftSrc As Long ByVal TopSrc As Long ByVal WidthSrc As Long ByVal HeightSrc As Long  |
| Code return value  | Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Captures any portion of a window.  |
| Result  | Reference to a 'Picture' object containing a bitmap of the.  |
| In parameters  |
Handle to the window to be captured. Client:   If True CaptureWindow captures from the client area of   the window.   If False CaptureWindow captures from the entire window. LeftSrc, TopSrc, WidthSrc, HeightSrc   - Specify the portion of the window to capture   - Dimensions need to be specified in pixels  |
| Procedure 'CaptureScreen' | List of procedures |
| Scope/Type  | Public Function  |
|---|---|
| Code return value  | Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Captures the entire screen  |
| Result  | Picture object containing a bitmap of the screen  |
| Procedure 'CaptureForm' | List of procedures |
| Scope/Type  | Public Function  |
|---|---|
| Code parameters  | frmSrc As Form  |
| Code return value  | Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Captures an entire form including title bar and border.  |
| Result  | Picture object containing a bitmap of the entire form  |
| In parameters  | Form object to capture  |
| Procedure 'CaptureClient' | List of procedures |
| Scope/Type  | Public Function  |
|---|---|
| Code parameters  | frmSrc As Form  |
| Code return value  | Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Captures the client area of a form  |
| Result  | The Form object to capture  |
| In parameters  | Picture object containing a bitmap of the form's  |
| Procedure 'CaptureActiveWindow' | List of procedures |
| Scope/Type  | Public Function  |
|---|---|
| Code return value  | Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Captures the currently active window on the screen.  |
| Procedure 'PrintPictureToFitPage' | List of procedures |
| Scope/Type  | Public Sub  |
|---|---|
| Code parameters  |
Prn As Printer pic As Picture  |
| Author  | Ralf Kunsmann  |
| Date  | 2001 06 21  |
| Purpose  | Prints a Picture object as big as possible.  |
| In parameters  |
Destination Printer object. Source Picture object.  |