The MFC Professional

FUTURE TIPS . . . WE'RE HARD AT WORK ON THESE

Would you like to write a tip for publication on this site? Let us know!
We'll give you prominent credit, and we'll even buy you a beer next time you're in town.


Modifying dialog properties (fonts, colors, etc.)
VB programmers can do this in three seconds flat. Well, it may take us a leeetle bit longer, but I'll bet your VB-ing buddy won't be able to finish his can of Jolt by the time you've caught up.

Using the Win 95 controls
Wow. This is a big one. Well, folks, we'll end up splitting this one into many little bite-sized pieces. Stay tuned.

Putting a toolbar in a dialog box
This is super-handy for applications that need a floating toolbar, or that are so complex that they need to break up or duplicate portions of their main toolbar in separate dialog boxes.

Multithreading
Like sex in junior high, everyone talks about it, but no one's actually done it. Well, almost no one!

Adjusting column widths in a CListCtrl to accomodate a window
Adjusting column widths in the new list control is pretty easy, but what if you need to adjust them according to the size of the window?

Moving files to recycle bin
Don't throw away those nasty old files: teach your program to recycle them!

Printing contents of rich edit control
We've all seen the rich edit control by now, and some of us have actually used it. But wouldn't it be cool to instantly print or print preview it? We thought so, too.

Implemeting tooltips
How to implement tooltips in your toolbars.

Setting checkmarks and bullets in menu items
Update your menus in that split-second before the menu is actually displayed.

Using graphics in menus
Now considered somewhat passe (where's the "e" accent?), bitmaps in menus are still cool in a couple of cases.

Using graphics in a listbox.
This should be in every VC++ programmer's toolkit.

Using a timer
Timers are an important part of your daily regimen, and it pays to know how to use them.

Getting rid of initial empty document
You've just created an MDI application, and you're pretty happy. But you don't want that empty document to always come up when the app begins. What can you do???

Implementing a splash screen
Just about every shrink-wrapped app has one o' these. What about your app?

Subclassing a control
Create a text box that only accepts digits, or that converts all letters to uppercase. Subclassing is as old as the hills, but MFC makes it a whole lot easier.

Adding buttons to a property sheet
Hey, I never said that Microsoft designed the greatest controls in the universe. Why it should be such torture just to add a button, I'll never know!

Using naming conventions
Naming conventions are essential to a multi-programmer project. And guess what, five'll get ya twenty that your project is one of 'em. Are you using a consistent set of standards? Here are a couple of suggestions.

Creating a scrolling view within a dialog box
If you're ever in the mood to design the Dialog Box from Hell (which would be even bigger than the dialog box that ate Cincinnati ), here's a way to make it bigger than Texas.

Hiding an app from the Alt-Tab app list
Stealth technology hits the world of Windows programming. Sometimes you don't want people to know you're program is out there.




| Past Tips | Home |

Got an idea for a Tip you'd like us to write? Let us know.