[winecfg] Show detected audio systems, and offer selection

Paul van Schayck polleke at gmail.com
Wed Jan 26 08:45:54 CST 2005

Hey Rob,

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.

And it's not hiding radio boxes, it's disabling them (gray). Look at
the WM_INITDIALOG case of SelectAudioDrvProc().


More information about the wine-devel mailing list