Presentation is loading. Please wait.

Presentation is loading. Please wait.

Raymond Chen Programmer Microsoft Corporation PC43.

Similar presentations


Presentation on theme: "Raymond Chen Programmer Microsoft Corporation PC43."— Presentation transcript:

1 Raymond Chen Programmer Microsoft Corporation PC43

2

3 // WM_CREATE BufferedPaintInit(); // WM_DESTROY BufferedPaintUnInit(); // WM_PAINT hdc = BeginPaint(hwnd, &ps); hBuffer = BeginBufferedPaint(…, &hdc); PaintContent(hwnd, hdc); EndBufferedPaint(hBuffer, TRUE); EndPaint(hwnd, &ps);

4

5

6

7 // WM_PAINT if (!BufferedPaintRenderAnimation(…)) { parms.dwDuration = ANIMATION_DURATION; hBuffer=BeginBufferedAnimation(…, &hdcFrom, &hdcTo); if (hdcFrom) paint into hdcFrom; if (hdcTo) paint into hdcTo; EndBufferedAnimation(hBuffer, TRUE); }

8

9 // WM_PAINT if (!BufferedPaintRenderAnimation(…)) { parms.dwDuration = ANIMATION_DURATION; if (m_curState == m_drawnState) parms.dwDuration = 0; hBuffer=BeginBufferedAnimation(…, &hdcFrom, &hdcTo); if (hdcFrom) PaintState(hdcFrom, m_drawnState); if (hdcTo) PaintState(hdcTo, m_curState); EndBufferedAnimation(hBuffer, TRUE); m_drawnState = m_curState; }

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30 Please fill out your evaluation for this session at: This session will be available as a recording at:

31

32 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

33


Download ppt "Raymond Chen Programmer Microsoft Corporation PC43."

Similar presentations


Ads by Google