#include "BIDISP.H"
LRESULT CALLBACK DisplayWmCreate( HWND hWnd,
WPARAM wParam,
LPARAM lParam,
LPDISPLAYSTRUCT cb)
Description
The DisplayWmCreate function should be called in response to the WM_CREATE message. The propose of this function is to initialize the cb structure.
Parameters
|
HWND |
hWnd |
Window handle to get client parameters. |
|
WPARAM |
wParam |
First 32 bits additional information of the window |
|
LPARAM |
lParam |
Second 32 bits additional information of the window |
|
LPDISPLAYSTRUCT |
cb |
Display information structure. |
Return values
The return value is the result of the message processing.
Requirements
Header : Declared in BIDisp.h; include BIDisp.h.
Library : Use BIDisp.lib.
DLLs : BIDisp.dll.
Code example
#include "BIDISP.H"
. . .
case WM_CREATE:
DisplayWmCreate(hWnd, wParam, lParam, &sDisplayStruct);
break;
// user defined message to display the image.
case WM_USER:
rOrg .left = rOrg.top = rOrg.right = rOrg.bottom = 0;
rScale.left = rScale.top = rScale.right = rScale.bottom = 1;
DisplayDIBStart(hWnd, hDib, &rOrg, &rScale, wDispFormat,
&sDisplayStruct);
break;
case WM_PAINT:
DisplayWmPaint(hWnd, &sDisplayStruct);
break;
case WM_HSCROLL:
DisplayWmHorzScroll(hWnd, wParam, lParam, &sDisplayStruct);
break;
case WM_VSCROLL:
DisplayWmVertScroll(hWnd, wParam, lParam, &sDisplayStruct);
break;
case WM_SIZE:
DisplayWmSize(hWnd, wParam, lParam, &sDisplayStruct);
break;
case WM_DESTROY:
DisplayWmDestroy(hWnd, wParam, lParam, &sDisplayStruct);
break;