Getpreviewsize – Argox PT-9130 User Manual
Page 89

PT-90 Mobile Computer SDK Programming Manual 82
GetPreviewSize
To get the x-axis coordinate、y-axis coordinate、width、height of the preview window.
DWORD GetPreviewSize
{
UINT *
uiPosX
UINT *
uiPosY
UINT *
uiWidth
UINT *
uiHeight
}
Parameters
uiPosX
[out] Specifies the x-axis coordinate to be retrieved.
uiPosY
[out] Specifies the y-axis coordinate to be retrieved.
uiWidth
[out] Specifies the width to be retrieved.
uiHeight
[out] Specifies the height to be retrieved.
Returned Values
If the action succeeds, the returned value is
. If the action fails, possible returned values are
Example
UINT uiPosX, uiPosY, uiWidth, uiHeight;
if(GetPreviewSize(&uiPosX, &uiPosY, &uiWidth, &uiHeight) != E_FUNC_SUCCEED)
AfxMessageBox(_T("Get 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