From: Manfred Wilner on
I am struggling to find any information on how to create a listbox in an OEM
DLL for a Unidriver printer driver.
I want a dialog that should have a listbox with selections for commands send
to the printer but I don't find any information on how to fill in the
information into such a dialog.

Well, I have the dialog but can't fill in the selections.
The dialog is created in hrOEMDevicePropertySheets with

Page.dwSize = sizeof(PROPSHEETPAGE);
Page.dwFlags = PSP_DEFAULT;
Page.hInstance = ghInstance;
Page.pszTemplate = MAKEINTRESOURCE(IDD_DEVICE_PROP2);
Page.pfnDlgProc = ToolsPageProc;
Page.lParam = (LONG_PTR)((OEMUIPSPARAM*)(pPSUIInfo->lParamInit));
lResult = pPSUIInfo->pfnComPropSheet(pPSUIInfo->hComPropSheet,
CPSFUNC_ADD_PROPSHEETPAGE, (LPARAM)&Page, 0);


--
\Manfred

From: Pavel A. on
See Property Sheet control reference in the Platform SDK documentation.
Your Page struct is a PROPSHEETPAGE structure, and
Page.pfnDlgProc is the callback that will receive window handle
of the dialog. Thru this handle you can manipulate child controls
on the dialog. For more details, please visit some forum that deals
with Windows GUI.

Regards,
--pa


"Manfred Wilner" <ManfredWilner(a)discussions.microsoft.com> wrote in message
news:09316D09-63B7-4AC5-8A67-1ED31CB417B5(a)microsoft.com...
> I am struggling to find any information on how to create a listbox in an
> OEM
> DLL for a Unidriver printer driver.
> I want a dialog that should have a listbox with selections for commands
> send
> to the printer but I don't find any information on how to fill in the
> information into such a dialog.
>
> Well, I have the dialog but can't fill in the selections.
> The dialog is created in hrOEMDevicePropertySheets with
>
> Page.dwSize = sizeof(PROPSHEETPAGE);
> Page.dwFlags = PSP_DEFAULT;
> Page.hInstance = ghInstance;
> Page.pszTemplate = MAKEINTRESOURCE(IDD_DEVICE_PROP2);
> Page.pfnDlgProc = ToolsPageProc;
> Page.lParam = (LONG_PTR)((OEMUIPSPARAM*)(pPSUIInfo->lParamInit));
> lResult = pPSUIInfo->pfnComPropSheet(pPSUIInfo->hComPropSheet,
> CPSFUNC_ADD_PROPSHEETPAGE, (LPARAM)&Page, 0);
>
>
> --
> \Manfred
>
From: Manfred Wilner on
Thank you Pavel, I did find this out but it is not really what I wanted it to
be. :(
--
\Manfred



"Pavel A." wrote:

> See Property Sheet control reference in the Platform SDK documentation.
> Your Page struct is a PROPSHEETPAGE structure, and
> Page.pfnDlgProc is the callback that will receive window handle
> of the dialog. Thru this handle you can manipulate child controls
> on the dialog. For more details, please visit some forum that deals
> with Windows GUI.
>
> Regards,
> --pa
>
>
> "Manfred Wilner" <ManfredWilner(a)discussions.microsoft.com> wrote in message
> news:09316D09-63B7-4AC5-8A67-1ED31CB417B5(a)microsoft.com...
> > I am struggling to find any information on how to create a listbox in an
> > OEM
> > DLL for a Unidriver printer driver.
> > I want a dialog that should have a listbox with selections for commands
> > send
> > to the printer but I don't find any information on how to fill in the
> > information into such a dialog.
> >
> > Well, I have the dialog but can't fill in the selections.
> > The dialog is created in hrOEMDevicePropertySheets with
> >
> > Page.dwSize = sizeof(PROPSHEETPAGE);
> > Page.dwFlags = PSP_DEFAULT;
> > Page.hInstance = ghInstance;
> > Page.pszTemplate = MAKEINTRESOURCE(IDD_DEVICE_PROP2);
> > Page.pfnDlgProc = ToolsPageProc;
> > Page.lParam = (LONG_PTR)((OEMUIPSPARAM*)(pPSUIInfo->lParamInit));
> > lResult = pPSUIInfo->pfnComPropSheet(pPSUIInfo->hComPropSheet,
> > CPSFUNC_ADD_PROPSHEETPAGE, (LPARAM)&Page, 0);
> >
> >
> > --
> > \Manfred
> >
> .
>