C language function:GdiFlush sample codes

Search sample code in the internet.It is the result.



GdiFlush();.......
http://download.sr-support.com/dispdoc/graphics_using_gdi.html



The code for this function is very simple: it calls GdiFlush(), then calls GetPixel() to read a single pixel from the display. Because Windows cannot determine what color a pixel will be until drawing is finished, this read does not return until drawing is completed. As you can see, most of the code is involved with preparing for the call to GetPixel(), so if you are writing your own graphics code it may be more efficient to simply call GetPixel() following your own graphics code........
http://download.sr-support.com/dispdoc/graphics_using_gdi.html
search Google

https://www.google.com/#q=GdiFlush