PT-90 Mobile Computer SDK Programming Manual
81
SetPreviewSize
To set the x-axis coordinate
、
y-axis coordinate
、
width
、
height of the preview window.
DWORD SetPreviewSize
{
UINT
uiPosX
UINT
uiPosY
UINT
uiWidth
UINT
uiHeight
}
Parameters
uiPosX
[in] Specifies the x-axis coordinate to be set. Range: 0~240.
uiPosY
[in] Specifies the y-axis coordinate to be set. Range: 0~320.
uiWidth
[in] Specifies the width to be set. Range: 0~240.
uiHeight
[in] Specifies the height to be set. Range: 0~320.
Returned Values
If the action succeeds, the returned value is
. If the action fails, possible returned values are
Example
UINT uiPosX, uiPosY, uiWidth, uiHeight;
uiPosX = 0;
uiPosY = 0;
uiWidth = 240;
uiHeight = 320;
if(SetPreviewSize(uiPosX, uiPosY, uiWidth, uiHeight) != E_FUNC_SUCCEED)
AfxMessageBox(_T("Set preview size fail"));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT90