[winecfg] Show detected audio systems, and offer selection
Dmitry Timoshkov
dmitry at baikal.ru
Wed Jan 26 09:26:55 CST 2005
"Paul van Schayck" <polleke at gmail.com> wrote:
> On Wed, 26 Jan 2005 08:33:01 -0600, Rob Shearman <rob at codeweavers.com> wrote:
> > Instead of generating the dialog box manually, why don't you store it in
> > a resource? It will then be easier to localise and should be easier to
> > use. You could also disable the radio boxes of drivers that cannot be
> > used instead of hiding them and then you wouldn't have to do complicated
> > rearranging.
>
> It's making the dialog based on the sAudioDrivers array. Dynamically.
> In case you want to add a driver you can simply add an entry to that
> array and the radio box will be created as well. Otherwise you would
> have to edit the resource file as well to add a new driver.
> If that seems to be bloated (ie we will rarely add or remove a driver)
> I can indeed just use a static resource.
You really have to create a dialog template in an .rc file and add/remove/
enable/disable controls if needed in the WM_INITDIALOG handler.
--
Dmitry.
More information about the wine-devel
mailing list