Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#3

AW: Scrollbar position ist falsch

  Alt 3. Aug 2017, 10:25
Schau Dir mal Deine Case und Switch flows genauer an.......

Deine Breaks sind, ich sag mal suboptimal
Wenn Du C++ Code schreibst must Du aufhören Delphi zu denken

Gruss
Wie wäre es denn richtig ?
Und vor allem behebt das mein Problem mit der Scroll Position?

OK ich denke kann diese aus
Code:
if (wParam = MOVIE_TIMER)
rauswerfen
und nur am ende von Case setzen.
Code:
    case WM_TIMER:
    {
        if (wParam = MOVIE_TIMER)
        {
            if (bIsTracking)
            {
                return 0;
            }

            if (TimerTick)
            {
                return 0;
            }
            if (aMediaProperty.PlaybackLength > 0)
            {
                MilSecond = KVideo_GetStreamPosition() / 10000;
                LONG64 Second = MilSecond / 1000;
               
                SetScrollPos(hWnd, SBS_HORZ, (int)MilSecond, FALSE);

                if (Second == LastPlayingPos)
                {
                    TimerTick = FALSE;
                    return 0;
                }
                else
                    LastPlayingPos = Second;
            }
        }
    }
    break;
gruss

Geändert von EWeiss ( 3. Aug 2017 um 10:29 Uhr)
  Mit Zitat antworten Zitat