@@ -25,25 +25,25 @@ struct WindowDisplay {
2525};
2626
2727
28- static void Exit (HWND hwnd) {
28+ static void Exit (const HWND hwnd) {
2929 KillTimer (hwnd, DATE_TIMER_ID);
3030 KillTimer (hwnd, ANIMATION_TIMER_ID);
3131 PostQuitMessage (0 );
3232}
3333
34- static void timerWindowFadeIn (HWND hwnd, WindowDisplay &wd) {
34+ static void timerWindowFadeIn (const HWND hwnd, WindowDisplay &wd) {
3535 wd.is_show = TRUE ;
3636 wd.fading = TRUE ;
37- SetTimer (hwnd, ANIMATION_TIMER_ID, 10 , NULL ); // 启动新定时器
37+ SetTimer (hwnd, ANIMATION_TIMER_ID, 10 , nullptr ); // 启动新定时器
3838}
3939
40- static void timerWindowFadeOut (HWND hwnd, WindowDisplay &wd) {
40+ static void timerWindowFadeOut (const HWND hwnd, WindowDisplay &wd) {
4141 wd.is_show = FALSE ;
4242 wd.fading = TRUE ;
43- SetTimer (hwnd, ANIMATION_TIMER_ID, 10 , NULL ); // 启动新定时器
43+ SetTimer (hwnd, ANIMATION_TIMER_ID, 10 , nullptr ); // 启动新定时器
4444}
4545
46- static void updateTimerWindowFadeAnimation (HWND hwnd, WindowDisplay &wd) {
46+ static void updateTimerWindowFadeAnimation (const HWND hwnd, WindowDisplay &wd) {
4747 // 提醒窗口开始动画
4848 if (wd.fading && wd.is_show ) {
4949 wd.alpha += FADE_DURATION;
@@ -119,7 +119,7 @@ static LRESULT CALLBACK timeWndProc(
119119 g_step_down.reset (Date::NextHourDistance ());
120120 }
121121
122- InvalidateRect (hWnd, NULL , TRUE );
122+ InvalidateRect (hWnd, nullptr , TRUE );
123123 }
124124
125125 if (wParam == ANIMATION_TIMER_ID) {
0 commit comments