The sequence used in this sample is by kind permission of Arthur Le Vernoy. An example to draw a line using VB code. Any of the Windows API line output functions can be used in a similar manner. The advantage is increased drawing speed and the power of the various APIs. This may be an advantage in a application where a great deal of line drawing is done OR sophisticated drawing techniques are needed.
Extensive comments explain how everything works.
Demonstrates the BitBlt API call, the PaintPicture method, and how to use masking. This article includes instructions to create a 16-bit Visual Basic 4.0 OLE server that determines free system resources and provides that information to OLE clients. It demonstrates also loading a .x file and you can even choose the motion sensibility. PolyDraw - Matt Hart how to draw polygons. By using the CreateFont and CreateFontIndirect Win32 API calls, it is possible to rotate text on a Device context such as a picture box, a form, or the Printer Object.