comctl32/trackbar: Default to TBTS_TOP position on creation.

This commit is contained in:
Nikolay Sivov 2009-09-02 20:35:15 +04:00 committed by Alexandre Julliard
parent 8385fe4f17
commit 5594a5f960
2 changed files with 5 additions and 7 deletions

View file

@ -868,15 +868,13 @@ static void test_tool_tips(HWND hWndTrackbar){
flush_sequences(sequences, NUM_MSG_SEQUENCE);
/* testing TBM_SETTIPSIDE */
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_TOP, 0);
todo_wine{
expect(0, r);
}
expect(TBTS_TOP, r);
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_LEFT, 0);
expect(0, r);
expect(TBTS_TOP, r);
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_BOTTOM, 0);
expect(1, r);
expect(TBTS_LEFT, r);
r = SendMessage(hWndTrackbar, TBM_SETTIPSIDE, TBTS_RIGHT, 0);
expect(2, r);
expect(TBTS_BOTTOM, r);
/* testing TBM_SETTOOLTIPS */
hWndTooltip = CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, NULL, 0,

View file

@ -1408,7 +1408,7 @@ TRACKBAR_Create (HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr->lSelMin = 0;
infoPtr->lSelMax = 0;
infoPtr->lPos = 0;
infoPtr->fLocation = -1;
infoPtr->fLocation = TBTS_TOP;
infoPtr->uNumTics = 0; /* start and end tic are not included in count*/
infoPtr->uTicFreq = 1;
infoPtr->tics = NULL;