CD ROM present in CD Drive?

Good question! The easiest and working method is to call GetVolumeInformation on a CD-Drive, this function call will fail if no valid volume information is available for a drive this means CD-ROM drive should be valid one too! So our next job is to find out whether we have a CD-Drive in our machine, for […]
Continue reading…

 

Changing background color of dialogs and controls

Windows provides us with a message called WM_CTRLCOLORDLG which helps us in changing background color of a dialog. If we are handling this message then we need to return brush which is used for drawing background color. This means we can provide custom brushes. Don’t forget that we’ve got maintain such custom brushes since these are […]
Continue reading…

 

Visual studio shortcuts that I use

Some useful shortcuts for development in different versions of visual studio for VC++… Ctrl + Alt + L – Solution explorer Alt + Enter – Properties window Works even on open files in the IDE. Lists the properties of files like full path etc. If in resource editor then it shows properties of controls Ctrl […]
Continue reading…