With The Case Of  Release The Power OF  Visual C++ !   HomeProducts | PurchaseSupport | Downloads  
Download Evaluation
Pricing & Purchase?
E-XD++Visual C++/ MFC Products
Features Tour 
Electronic Form Solution
Visualization & HMI Solution
Power system HMI Solution
CAD Drawing and Printing Solution

Bar code labeling Solution
Workflow Solution

Coal industry HMI Solution
Instrumentation Gauge Solution

Report Printing Solution
Graphical modeling Solution
GIS mapping solution

Visio graphics solution
Industrial control SCADA &HMI Solution
BPM business process Solution

Industrial monitoring Solution
Flowchart and diagramming Solution
Organization Diagram Solution

Graphic editor Source Code
UML drawing editor Source Code
Map Diagramming Solution

Architectural Graphic Drawing Solution
Request Evaluation
ActiveX COM Products
Technical Support
  General Q & A
Discussion Board
Contact Us


Get Ready to Unleash the Power of UCanCode .NET


UCanCode Software focuses on general application software development. We provide complete solution for developers. No matter you want to develop a simple database workflow application, or an large flow/diagram based system, our product will provide a complete solution for you. Our product had been used by hundreds of top companies around the world!

"100% source code provided! Free you from not daring to use components because of unable to master the key technology of components!"

VC++ MFC DIBLOOK Advance Sample, with file open dialog preview

 Jorge Lodos Vigil

This article describes a sample with the same funcionality as the known DIBLOOK MFC sample, but enhanced in some ways. The main (new) features of this new sample are:

  • The sample is now completely object oriented, there are no global functions
  • The standard file open dialog has been changed to a new (derived from standard) file dialog with preview
  • The palette treatment has been improved so the palette is not realized twice for the active image (the first in foregroud the second in background)

The sample also demonstrates some programming techniques:

  • Changing the standard file open in doc/view MFC architecture
  • Modifiyng standard dialogs without using new hook functions (or what's the same: using the MFC hook functions)
  • Correct palette treatment
  • Subclassing controls

Several new classes were added to the original DIBLOOK sample:

  • The dib api provided as a set of global functions was encapsulated in a CDib class (described in an article in the bitmaps & palettes section)
  • A static control descendant that displays an image (described in an article in the static control section)
  • A descendant from CFileDialog to implement the file open dialog with preview (described in an article in the dialogs section)
  • A descendant from CDocManager needed to change the default MFC file open dialog (described in an article in the doc-view section)

Download Source Code



Copyright ?1998-2022 UCanCode.Net Software , all rights reserved.
Other product and company names herein may be the trademarks of their respective owners.

Please direct your questions or comments to