On Tue Sep 2 22:03:46 2025 +0000, Esme Povirk wrote:
Why do we check the constraint type here?
This block repeats the initialization of the parameters in the InitializeDialog function. I have saved only the necessary operations to generate the parameters.
`
/* initialize values */ if (opt.type == TYPE_STRING && opt.constraint_type != CONSTRAINT_NONE) { CHAR buffer[255]; WCHAR *p;
for (p = opt.constraint.strings; *p; p += lstrlenW(p) + 1) SendMessageW( control,CB_ADDSTRING,0, (LPARAM)p ); sane_option_get_value( i, buffer ); SendMessageA(control,CB_SELECTSTRING,0,(LPARAM)buffer); }
`