Color Splitter

Version 1.0 - ColorSplitter.exe

 

This one is a CSplitterWnd sample that just Loads/Saves BMP files, and if u goto

Window/Split, u will get the RGB Images seen here.

 

 

Bad thing about the CSplitterWnd is it don't show which CView/CScrollView has the focus.

This sample shows the CView that contains the current focus and highlights the CView

that has the current focus. It also allows you to save that color image.

Nice thing about having a lot of samples is u can cut and paste

a program like this in a couple of hours. The CMDIChildWnd controls the creation

of the CScrollViews color views when it creates the views. The BitBlt's SRCAND

operation is what sets the single colors into the BMPs. I ended up copying the

MFC CScrollView and CSplitterWnd and playing with them and I ended up with

exactaly(<-- typo ) what I wanted to see in the splitter windows, tada! Four CScrollViews

in a CSplitterWind with just one comment! If you uncomment:

//#define _SHARE_SCROLLS_

in the CSplitterWnd32.cpp file, u will get the origional CSplitterWnd, I

haven't tried it with other type of CViews, but I will, I'm sure. And I added

the textured Client.cpp from my Graphics User Interface sample I'm doing,

that background is about the nicest I got so far. ( POV-RAY I bet !?? )

The CAboutDlg.cpp shows a textured background and transparent text below.

it also has the HyperLink.cpp that launches the browser

as in the BitmapTile Utility's About boxes.

 


Copyright January 1999.

Wednesday, March 21, 2001 12:05:12 am

VC++ SourceCode