Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't show configuration dialog in modal mode #19

Open
knowis1972 opened this issue Aug 18, 2020 · 0 comments
Open

Doesn't show configuration dialog in modal mode #19

knowis1972 opened this issue Aug 18, 2020 · 0 comments

Comments

@knowis1972
Copy link

knowis1972 commented Aug 18, 2020

Hello!
I'm exploring NTwain project, WPF samle. There is the call
DsmWinNew(origin, destination, DataGroups.Control, DataArgumentType.UserInterface, msg, data);
where data is
[StructLayout(LayoutKind.Sequential, Pack = 2)]
partial class TWUserInterface
{
TW_BOOL _showUI;
TW_BOOL _modalUI;
TW_HANDLE _hParent;
}

and
TW_BOOL = System.UInt16;
and _showUI = 1 and _modalUI = 1 and _hParent is actual window handle

and DsmWinNew defined as
[DllImport("twaindsm.dll", EntryPoint = "DSM_Entry")]
public static extern ReturnCode DsmWinNew(
[In, Out]TWIdentity origin,
[In, Out]TWIdentity destination,
DataGroups dg,
DataArgumentType dat,
Message msg,
[In, Out]TWCieColor data);

Unfortunately dialog doesn't shows in modal mode

@knowis1972 knowis1972 changed the title Doen't show configuration dialog in modal mode Doesn't show configuration dialog in modal mode Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant