Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > How to create a listbox for a Unidriver DLL

Reply
Thread Tools Display Modes

How to create a listbox for a Unidriver DLL

 
 
Manfred Wilner
Guest
Posts: n/a

 
      06-02-2010
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

 
Reply With Quote
 
 
 
 
Pavel A.
Guest
Posts: n/a

 
      06-02-2010
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" <> wrote in message
news:09316D09-63B7-4AC5-8A67-...
> 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
>

 
Reply With Quote
 
Manfred Wilner
Guest
Posts: n/a

 
      06-03-2010
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" <> wrote in message
> news:09316D09-63B7-4AC5-8A67-...
> > 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
> >

> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Create folders in WLM aphetically David Webb Windows Live Mail 1 04-28-2010 03:00 PM
Create a Virtual Monitor MsdnSubscriber Windows Vista Drivers 2 02-27-2010 04:35 AM
SBS 2008 console unable to create new Distribution Groups Glenn_Thomas Windows Small Business Server 2 02-17-2010 03:57 AM
How to create video for WEB? wbardo Windows Vista Music, Pictures and Video 0 01-15-2010 01:50 PM
Procedure to create new account doesn't work - Help! Frederick Lamartin Windows Vista Installation 0 06-28-2007 04:55 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59