[SNDVOL32]

Redraw window with correct size.
Window height was growing after changing preferences.

svn path=/trunk/; revision=51289
This commit is contained in:
Sylvain Petreolle 2011-04-08 23:18:20 +00:00
parent 6d9847ecb3
commit 02a6a17e28

View file

@ -130,11 +130,11 @@ AddDialogControl(
} }
/* now create the window */ /* now create the window */
hwnd = CreateWindowExW(DialogItem->dwExtendedStyle, hwnd = CreateWindowExW(DialogItem->dwExtendedStyle,
ClassName, ClassName,
WindowName, WindowName,
DialogItem->style, DialogItem->style,
rect.left, rect.left,
rect.top, rect.top,
rect.right, rect.right,
rect.bottom, rect.bottom,
@ -187,7 +187,7 @@ AddDialogControl(
Offset++; Offset++;
} }
/* check if there is additional data */ /* check if there is additional data */
if (*Offset == 0) if (*Offset == 0)
{ {
/* no additional data */ /* no additional data */
@ -323,8 +323,8 @@ LoadDialog(
BOOL BOOL
CALLBACK CALLBACK
EnumConnectionsCallback( EnumConnectionsCallback(
PSND_MIXER Mixer, PSND_MIXER Mixer,
DWORD LineID, DWORD LineID,
LPMIXERLINE Line, LPMIXERLINE Line,
PVOID Context) PVOID Context)
{ {
@ -439,7 +439,7 @@ EnumConnectionsCallback(
GetWindowRect(PrefContext->MixerWindow->hWnd, &rect); GetWindowRect(PrefContext->MixerWindow->hWnd, &rect);
/* now move the window */ /* now move the window */
MoveWindow(PrefContext->MixerWindow->hWnd, rect.left, rect.top, (PrefContext->Count * DIALOG_VOLUME_SIZE), rect.bottom, TRUE); MoveWindow(PrefContext->MixerWindow->hWnd, rect.left, rect.top, (PrefContext->Count * DIALOG_VOLUME_SIZE), rect.bottom - rect.top, TRUE);
} }
} }
} }