Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Resources on SubClassing

Posted on 2002-04-29
5
Medium Priority
?
274 Views
Last Modified: 2010-05-02
Does anyone have any good resources on SubClassing, preferrably On-Line.

Busically I'm just wanting to know the theory behind subclassing, and practices.

Just trying to become a better VB Programmer

Thanks
0
Comment
Question by:raizon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Accepted Solution

by:
SimonORorke earned 200 total points
ID: 6978496
I recommend VBAccelerator's free subclassing utility (includes source) http://www.vbaccelerator.com/codelib/ssubtmr/ssubtmr.htm.  The documentation on the web page gives quite a good introduction to subclassing in general.

If you want the detail on exactly what you can subclass, I recommend you invest in Dan Appleman's classic "Guide to the Win32 API".  That also include a general introduction to subclassing and the Message Reference section of the chapter on General Windows Messages has a sub-heading Use with Subclassing for each Windows message which can be subclassed.
0
 
LVL 15

Expert Comment

by:ameba
ID: 6978705
Subclassing is not good practice in business applications.  It is too hardcore and maintenance is problematic.

But it is good to know it.

If you use it in real app, make sure there is a very good reason.
0
 

Expert Comment

by:SimonORorke
ID: 6978959
In my previous comment the name of Dan Appleman's book should have been "Visual Basic Programmer's Guide to the Win32 API".  For further info on this book, see the page on Appleman's web site http://www.desaware.com/VBPGWin32APIL2.htm.

I'd just add to ameba's comment of caution by saying that if you do use subclassing in production applications, I would recommend providing clear and detailed documentation of what you are doing.  In an application I recently wrote with a great deal of subclassing, there are more comment lines than lines of code in the rather large subclassing procedure.  When someone else has to maintain the program, there's a good chance they will not know much about subclassing, so I've tried to help them get into it if they have to.
0
 
LVL 5

Author Comment

by:raizon
ID: 6983892
Thanks to everyone for the comments.

This article and book reference was the most helpful.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question