Datalogic .NET SDK
PostStartMsg (Method)
Syntax
public bool PostStartMsg(MessageWindow wnd, uint uDataMsg);
Description
Posts a request to be notified when a scan attempt is started.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
MessageWindow |
wnd |
A reference to an instance of the Microsoft.WindowsCE.Forms.MessageWindow class whose window procedure (WinProc) is to receive a message when a scan attempt is started. |
[in] |
uint |
uDataMsg |
Specifies the message to be posted when the scan attempt is started. This should be a value of WM_USER (defined in winuser.h) or higher. |
|
|
|
|
[return] |
bool |
|
A value of TRUE is returned on success, otherwise FALSEis returned to indicate failure. |
[on error] |
FALSE |
|
|
Example
private void btnSetPostStart_Click(object sender, EventArgs e) { // hDcd = new DecodeHandle(...); Global instance of DecodeHandle class
bool bPostSuccess = hDcd.PostStartMsg(wndMsg, Constants.WM_STARTSCAN); MySetTextBox("Set-PostStartMsg"); }
|
Remarks
For each decoding device, only one event or message can be in effect at any time.
For example if a start event (Datalogic.API.DecodeEvent.ScanStart) is in use, then you need to stop listening to the event (Datalogic.API.DecodeEvent.StopScanListener), or cancel the notification before a message can be used. If a previous message was posted, then you need to cancel the start notification to post the new start windows message.
See Also
Microsoft.WindowsCE.Forms.MessageWindow, WM_USER, DecodeEvent.ScanStart (Event), DecodeEvent.StopScanListener (Method), Example #017.
Copyright © Datalogic ADC. All Right Reserved