Creating truly transparent owner-drawn controls
The How To section provides some extended articles explaining in depth how to use Win32 techniques
from VB, packed full of sample code and (possibly) erudite VB knowledge.
You may have noticed, however, there aren't many here right now - too many beers and fine wines!
But hopefully more will come...
Component Base Addresses
Store Objects against a Control Item's Tag or ItemData property
Subclassing Without The Crashes
Associating File Types With Your Application
There's lots to think about to do this task properly and reliably. But as you will see from
the article, by judiciously using the Win32 API, and using the code in the
Registry class and
SSUBTMR you end up with a fairly small code base to completely solve this task. This
article describes code designed for the Goldfish
- Associate a file with your application, including setting a customised document icon and
creating as many Explorer menu actions as you want for your association.
Properly detect whether an existing instance of your app is running or not
- Sending information cross-process from one instance to another.
Something I think is quite cool (although, as famous VB hacker Escher once said,
this is because I've got a 'brain the size of a walnut'. I'd give you a link to this great fun
article, but unfortunately it has been deleted from MSDN. However, the article was called
'Slimy Windows Hacks for VB' and went on at some length about how the author was a rabbit and
therefore benefited from great vision due to eating carrots.)
Building Fully-Featured Applications with no dependencies other than VB runtimes
I'm afraid I have had to put this article is on hold due to technical difficulties.