comctl32/trackbar: Default to TBTS_TOP position on creation.
This commit is contained in:
parent
8385fe4f17
commit
5594a5f960
|
@ -868,15 +868,13 @@ static void test_tool_tips(HWND hWndTrackbar){
|
||||||
flush_sequences(sequences, NUM_MSG_SEQUENCE);
|
flush_sequences(sequences, NUM_MSG_SEQUENCE);
|
||||||
/* testing TBM_SETTIPSIDE */
|
/* testing TBM_SETTIPSIDE */
|
||||||
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_TOP, 0);
|
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_TOP, 0);
|
||||||
todo_wine{
|
expect(TBTS_TOP, r);
|
||||||
expect(0, r);
|
|
||||||
}
|
|
||||||
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_LEFT, 0);
|
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_LEFT, 0);
|
||||||
expect(0, r);
|
expect(TBTS_TOP, r);
|
||||||
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_BOTTOM, 0);
|
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_BOTTOM, 0);
|
||||||
expect(1, r);
|
expect(TBTS_LEFT, r);
|
||||||
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_RIGHT, 0);
|
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_RIGHT, 0);
|
||||||
expect(2, r);
|
expect(TBTS_BOTTOM, r);
|
||||||
|
|
||||||
/* testing TBM_SETTOOLTIPS */
|
/* testing TBM_SETTOOLTIPS */
|
||||||
hWndTooltip = CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, NULL, 0,
|
hWndTooltip = CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, NULL, 0,
|
||||||
|
|
|
@ -1408,7 +1408,7 @@ TRACKBAR_Create (HWND hwnd, const CREATESTRUCTW *lpcs)
|
||||||
infoPtr->lSelMin = 0;
|
infoPtr->lSelMin = 0;
|
||||||
infoPtr->lSelMax = 0;
|
infoPtr->lSelMax = 0;
|
||||||
infoPtr->lPos = 0;
|
infoPtr->lPos = 0;
|
||||||
infoPtr->fLocation = -1;
|
infoPtr->fLocation = TBTS_TOP;
|
||||||
infoPtr->uNumTics = 0; /* start and end tic are not included in count*/
|
infoPtr->uNumTics = 0; /* start and end tic are not included in count*/
|
||||||
infoPtr->uTicFreq = 1;
|
infoPtr->uTicFreq = 1;
|
||||||
infoPtr->tics = NULL;
|
infoPtr->tics = NULL;
|
||||||
|
|
Loading…
Reference in New Issue