JetByte Ltd - The Right Code Right Now Contract Programming and Consulting Services
Home button
News button
Services button
Clients button
Portfolio button
Resources button
Guestbook button
Contact button

Contact us

Portfolio

MFC

One of the problems we find with MFC is that due to its original design spec it tends to make it difficult to write nicely encapsulated C++ code. It is possible, but the wizards tend to encourage you to spread functionality all over the place. The controls found in these pages try to wrap all of their functionality up into self-contained, easy to reuse, packages.

We don't want to have to cut and paste message handlers out of a dialog that almost does what we need, we want to plug in controls that do it all for us! I also hate having to implement additional functionality more than once. If I have code that would work equally well with a list box or a combo box then I want to put that code in a template that can be used with both. MFC doesn't help much here. But it is possible.

Articles:

Include/Exclude list boxes. - How to package lots of standard functionality into a CListBox derived class.

Templates - Templates are a great way of reusing code, unfortunately MFC makes it hard to write MFC friendly template classes...

back to top