Click to open or copy the files for the DDex1 sample.
This sample creates a DirectDraw object and then a primary surface with a back buffer. The sample slowly switches the DirectDraw object between the primary surface and the back buffer.
This sample uses the following keywords:
beginpaint; createsurface; createwindowex; defwindowproc; destroywindow; directdrawcreate; dispatchmessage; doinit; endpaint; finiobjects; flip; getattachedsurface; getclientrect; getdc; getmessage; getsystemmetrics; gettextextentpoint; loadcursor; loadicon; lstrlen; messagebox; postmessage; postquitmessage; registerclass; release; releasedc; restore; rgb; setbkcolor; setcooperativelevel; setcursor; setdisplaymode; settextcolor; settimer; showwindow; switch; textout; translatemessage; updatewindow; windowproc; winmain; wsprintf