Commit f93a0780 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

Remove the checking/setting of the defaults in TRACKBAR_Create.

parent 740d6bc3
...@@ -1336,7 +1336,7 @@ static LRESULT ...@@ -1336,7 +1336,7 @@ static LRESULT
TRACKBAR_Create (HWND hwnd, LPCREATESTRUCTW lpcs) TRACKBAR_Create (HWND hwnd, LPCREATESTRUCTW lpcs)
{ {
TRACKBAR_INFO *infoPtr; TRACKBAR_INFO *infoPtr;
DWORD oldStyle, newStyle; DWORD dwStyle;
infoPtr = (TRACKBAR_INFO *)Alloc (sizeof(TRACKBAR_INFO)); infoPtr = (TRACKBAR_INFO *)Alloc (sizeof(TRACKBAR_INFO));
if (!infoPtr) return -1; if (!infoPtr) return -1;
...@@ -1359,19 +1359,10 @@ TRACKBAR_Create (HWND hwnd, LPCREATESTRUCTW lpcs) ...@@ -1359,19 +1359,10 @@ TRACKBAR_Create (HWND hwnd, LPCREATESTRUCTW lpcs)
TRACKBAR_InitializeThumb (infoPtr); TRACKBAR_InitializeThumb (infoPtr);
oldStyle = newStyle = GetWindowLongW (hwnd, GWL_STYLE); dwStyle = GetWindowLongW (hwnd, GWL_STYLE);
if (oldStyle & TBS_VERT) {
if (! (oldStyle & (TBS_LEFT | TBS_RIGHT | TBS_BOTH)) )
newStyle |= TBS_RIGHT;
} else {
if (! (oldStyle & (TBS_TOP | TBS_BOTTOM | TBS_BOTH)) )
newStyle |= TBS_BOTTOM;
}
if (newStyle != oldStyle)
SetWindowLongW (hwnd, GWL_STYLE, newStyle);
/* Create tooltip control */ /* Create tooltip control */
if (newStyle & TBS_TOOLTIPS) { if (dwStyle & TBS_TOOLTIPS) {
infoPtr->hwndToolTip = infoPtr->hwndToolTip =
CreateWindowExW (0, TOOLTIPS_CLASSW, NULL, 0, CreateWindowExW (0, TOOLTIPS_CLASSW, NULL, 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment