Visual C++ Related Things


Free Source Code

Resize a combo box

This code snippet uses MFC classes to resize a dropdown combo box at run-time. It should be easy to adapt to plain API code if you need to. It should work on any version of Windows.

You can resize at design-time by clicking on the drop-down arrow in developer studio

Show a property page

This class allows you to activate a property page given a filename. It works on WinNT 4.0 and Win95.

I need a better example program, but you should be able to figure it out without too much trouble. Just be sure that the CSHFilePropSheet object stays around for as long as you want the property page to be on screen. I generally add it as a static member of my CWinApp derived class.

Delete a file after rebooting

This code snippet shows a method of deleting a file the next time you reboot your computer. Naturally, it's different depending on whether you're using Windows NT (easy) or Windows 95 (pain in the neck).

Visual C++ Discoveries

Puzzling questions (and possibly some answers) about Visual Studio and Microsoft's Infoviewer.

  • Annotating InfoViewer titles
  • Creating your own .IVT files
  • Creating shortcuts to .HTML files on your local hard drive

I've found some things that are hard to do while adding macros and add-ins to Developer Studio.

More Visual Studio stuff, including my favorite message box. (For now, only my favorite message box).

Useful MFC/VisualC++ related links:

  • MSDN Online - you'll need to register and accept a cookie for this one to work. Microsoft outlines their cookie policy in a link from this site.
  • MFC Programmer's SourceBook - some excellent tips and tricks about using the Windows 95 common controls in MFC. (This site is more commonly known as "CodeGuru" because of its domain name.)
  • CustomSoft home page - more MFC tips and tricks, from Cecil Galbraith. Good stuff.

 

 


No solicitation beyond this point.
Don't even think of adding me to your mailing list. Put up a web page I'm interested in, and let me ask you for information.
Comments? Questions? Send mail to Katy

This page was last modified on 1998/08/23