Datalogic .NET SDK
PostReleaseMsg (Method)
Syntax
public bool PostReleaseMsg(MessageWindow wnd, uint uDataMsg);
Description
Posts a request to be notified when the trigger button is released.
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 the trigger button is released. |
[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 FALSE is returned to indicate failure. |
[on error] |
FALSE |
|
|
Example
private void btnSetReleaseMsg_Click(object sender, EventArgs e) { // hDcd = new DecodeHandle(...); Global instance of DecodeHandle class
bool bPostSuccess = hDcd.PostReleaseMsg(wndMsg, Constants.WM_RELEASESCAN); MySetTextBox("Set-PostReleaseMsg"); }
|
Remarks
For each device, only one event or message can be in effect at any time.
For example, if a press event (Datalogic.API.DecodeEvent.ScanPress) 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 is posted, then you need to cancel the press notification to post the new start windows message.
See Also
Microsoft.WindowsCE.Forms.MessageWindow, WM_USER, DecodeEvent.ScanStart (Event), DecodeEvent.StopScanListener (Method), Example #020.
Copyright © Datalogic ADC. All Right Reserved