LBGfx is a graphics box replacement that is very similar to the native graphic box, but is double buffered so you can have flicker free graphics without adding a lot of complexity to your code to not only draw the buffers, but also having a timer to refresh that buffer.
The zip with the DLL, source code to the DLL, and BAS example files is here for you to download and mess around with. Download
If you want to handle mouse and keyboard events like you would with a native graphicbox, its really easy. You setup a dummy graphicbox in your window, and pass that handle to the function that creates the LBGfx box. You do the mouseMove/leftButtonDown/etc commands the dummy box, and when an event happens to the LBGfx box, it will be sent also to the dummy box so you can process those events.
Its open source/public domain, do whatever you want with it.
I'm continuing work on it and would love any feedback anyone has.
Last update version 10, 3Mar17
-Added loadImage function, load a jpg/png/gif -Added saveImage function, save an HBITMAP as a jpg/png/gif
If you're havin issues, take a look at these guys:
-I'm setting a scroll area bigger then my screen, but stuff I draw to it isnt showing up. Possible reason: When you set the scroll area with scrollyon or scrollxon, at that point it resizes the buffer, so if you were drawing outside of the screen size before using scrollxyon, you wont be able to see those graphics. You should set the scroll area before drawing to those areas.
-I cant see nothing Possible reason: Dont forget to issue the 'flip' command.