Here's a little example on how to use DIBSection for drawing... with DIBSection you have direct access to the a buffer that can later be blitted on screen quickly, so it's relatively easy to implement old school demo effect algorithms... i'm no demo coder, in fact im not a good coder at all so this source may be full of bugs and definitely not optimized, it's just to show some basics on how to use DIBSection and how you can draw on screen with it. the example client code draws a classic 2d star field and a dot that moves on a sine curve.