|
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Rob Manderson
|
Rating:
|
|

I wanted to import images in various formats into my application. These images could have come from a digital camera or from a scanner and don't necessarily have intelligible names. Look at the filename in the sample picture above. It doesn't exactly drip with meaning.
So it was obvious that I needed to show a preview image in the file import dialog. As the user clicks on files in the ListView the preview control updates to show the image. Naturally I turned to CodeProject to see if anyon...
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: lvidaguren
|
Rating:
|
|

Using CSoundFIleDlg you can listen to a sound file before actually opening it, kind of like when choosing Windows' sounds. I wanted to be able to do that in a program I was writing; it was a timer so I didn't immediately need the sound, and I found it interesting working out what sound to play when a selection had been made. Since I couldn't find the code to do it anywhere I wrote it, I'm not aware if someone has written any similar code....
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: PJ Arends
|
Rating:
|
|

When using the Windows FileOpen dialog with multiple selection do you ever wonder how much memory you have to allocate for the buffer. Is one kilobyte going to be enough? Or should you make it ten? How about one Megabyte just to be safe?
It seems that no matter what you choose, you are either going to waste a whole bunch of memory just to be safe, or your user is going to select a bunch of files only to find their selection didn't work because your buffer was too small....
|
|
|
|
Total Hits: 2 | Today: 1
|
Author: legcsabi
|
Rating:
|
|

It is a common problem that we want to use Common Dialogs (like the Font dialog), but we do not want to allow users to select all the properties offered by the dialogs. This article shows how we can do that, with the font dialog as an example....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Hirosh
|
Rating:
|
|

Windows 2000 introduces a new extended window style bit: WS_EX_LAYERED. When used properly, it can significantly improve performance and visual effects for a window that has a complex shape, animates, or wishes to use alpha-blending effects. The full implementation of layered windows was publicly available for the first time in Windows 2000 Beta 3....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Chris Losinger
|
Rating:
|
|

Because we couldn't find out how to use the Windows "Find Files or Folders" dialog in our own app, and we needed to be able to retrieve a list of the files that were found in our app (which I don't think the Windows dialog even allows you to do), we wrote our own....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Keyvan Saneinejad
|
Rating:
|
|

If you've tried using the MFC common dialog class CFileDialog in Windows 2000, you'll notice that it will show the 'old' file dialog even with the OFN_EXPLORER flag set. The reason for this is that Windows 2000 uses OFN_ENABLE_HOOK flag to determine which dialog to use. If the OFN_ENABLE_HOOK flag is set, Windows 2000 uses the old dialog, if not, it uses the new dialog. CFileDialog in MFC uses the OFN_ENABLE_HOOK flag which explains why all MFC applications display the old dialog and regular app...
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Davide Calabro
|
Rating:
|
|

CLayeredWindowHelperST is a wrapper class of all required APIs to add support for transparent (layered) windows to your applications. This is a scalable class. If running under Windows 2000/XP your windows will have the selected transparent effect, while if running under Windows 9x/ME/NT will run error-less....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: David Wulff
|
Rating:
|
|

The included source files will allow you to use the Office 2000 and VS.NET style file dialogs in your applications, which will appear on all versions of Windows 95/98/NT/Me, as well as 2000. To use the dialog, simply add the source files to your project and use the standard CFileDialog calling functions to show / manipulate it....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: P J Pearson
|
Rating:
|
|

One of the attractive new features of Windows 2000 is the menu and other selections that fade away instead of just disappearing. To see this in operation you need to select "Use transition effects for menus and tooltips" on the "Effects" tab of the Display Properties dialog and then select "Fade effect" in the combo box.
In this article I present a simple MFC class that allows you to apply a similar fading effect to any window you choose - with only one line of code! Don't just close a wi...
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: -Kirill-
|
Rating:
|
|

The AnimateWindow() API with the AW_BLEND parameter is supposed to fade in and out windows smoothly. Basically, it has two drawbacks:
1. Text and ListView controls (and several others) aren't rendered correctly during fade-in. 2. You cannot specify a translucency for the window, i.e., after the animation is over, the window is opaque.
Clicking 'No' in the sample project demonstrates both problems....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Robert Pittenger
|
Rating:
|
|

There are two main differences between the traditional MFC-CPropertySheet wizards and the Windows 2000 wizards:
1. The Windows 2000 wizard has a white background. 2. The "page" portion of the Windows 2000 wizard extends all the way to the edge of the dialog....
|
|
|
|
|
|