
File: Dv32.txt                     Started: 22 Sept, 1999

***********************************************************************
VER_BUILD		40	// FIX20081025 - various - clip list, magnify, swish, etc
VER_DATE		"25 October, 2008"	// MSVC8
Still some PROBLEMS when the image is large and scrolled in the child window

***********************************************************************
VER_BUILD		39	// FIX20081019 - add RGB color to mouse position
VER_DATE		"19 October, 2008"	// MSVC8

***********************************************************************
VER_BUILD		37	// FIX20080316 - INI location, and window size
VER_DATE		"16 March, 2008"	// MSVC8

FIX20080316 -

1. Loading programmically, the DIBVIEW.INI get loaded, and written in the
current active directory. Should be the EXE path.
This seems to be fixed by passing a NULL to ReadIni(NULL), then adding
GetModulePath (from testap3) to get the RUNTIME path. Also REMOVED
writing to the win.ini file ...
Also put "TEMPD001.BMP" and TEMPDV32.TXT in SAME runtime PATH!!!

2. Enlarging to full screen, breaks the alternate sizes. They sort of
become full screen also.
Changed to using WINDOWPLACEMENT ... looks OK ... under flag USENEWWINSIZE
All appears good ...

3. Maybe ENHANCE command line load ...

***********************************************************************
VER_BUILD		36	// FIX20071201 - Add more CLIP manipulation
VER_DATE		"1 December, 2007"	// in Express Edition (.NET 2005)

***********************************************************************
VER_BUILD		33	// FIX20051128 - Mouse modification of CLIP region
VER_DATE		"28 November, 2005"	// also in MSVC7.1 (.NET 2003)

This is the FIRST build in MSVC7.1 - had some initial trouble with the
RESOURCES, and seem to have CREATED, using import, some extra ICONS
and CURSORS which may means there are some files in the RES folder
not used ... it seems something to do with the LANGUAGE (Culture!)
Some resources are under -
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

And some are under -
// French (France) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
#ifdef _WIN32
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
#pragma code_page(1252)
#endif //_WIN32

Maybe if I switch the Properties, English (U.S)? Ok, the resources
compiled ... hmmm, what is happening here? I decide to MANUALLY
remove the French, and make it ALL U.S., which it is ... ok, no
problem so far ... now modify an ICON ... and I am BACK with
errors, like
.\Dv32.rc(49) : error RC2135 : file not found: ICON
Try switching to '/', inplace of '\\'??? NOPE
Try '\', instead of '\\'??? NOPE
Try DELETING them ALL -
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1               ICON                    "RES\\Dv32_1.ico"
IDI_WJPG6               ICON                    "RES\\DvWjpg6.ico"
MYICON                  ICON                    "RES\\DvIcon1.ico"
SECICON                 ICON                    "RES\\DvIcon2.ico"
THRDICON                ICON                    "RES\\DvIcon3.Ico"
IDI_ICON2               ICON                    "RES\\Dv32-2.ico"
IDI_ICON3               ICON                    "RES\\Dv32-3.ico"
IDI_DV32                ICON                    "RES\\dv32.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Cursor
//

SELECTCUR               CURSOR                  "RES\\DvSel.cur"
"DRAGCURSOR"            CURSOR                  "RES\\DvDrag.cur"
IDC_CURSOR1             CURSOR                  "RES\\DVBWait0.cur"
IDC_CURSOR2             CURSOR                  "RES\\DVBWait1.cur"
IDC_CURSOR3             CURSOR                  "RES\\DVBWait2.cur"
IDC_CURSOR4             CURSOR                  "RES\\DVBWait3.cur"
IDC_CURSOR5             CURSOR                  "RES\\DVBWait4.cur"
IDC_CURSOR6             CURSOR                  "RES\\DVBWait5.cur"

Double HMMM ... Deleteing the above, and ADDING back one, produced
IDI_ICON9 ... resetting that to IDI_ICON1 worked, but it was
now under -
/////////////////////////////////////////////////////////////////////////////
// English (Australia) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
#pragma code_page(1252)
#endif //_WIN32

Which seems to be what OFFICE is set to !?!?!?

So I manually switch ALL to this, and add back the above
and it appears ok ... now to again MODIFY an ICON ...

OK, IT ALL APPEARS WORKING - is it just the 'Culture' setting???

I decide to test it out some more ... change "MYICON" to IDI_ICON4 ... OK
Change "SECICON" to IDI_ICON5 ... This may mean changing the ABOUT dialog ...
I HAD to MANUALLY change the ABOUT dialog ...
Changed "THRDICON" to IDI_ICON6 ... does NOT appear to be used elswhere ...
Change IDI_DV32 to IDI_ICON7 ... and "IDI_WJPEG6" to IDI_ICON8 ...
recompiled all OK ... now have ICONS IDI_ICON1-8 ;=))

Now onto what this started out as ;=))

Although I started out putting the NEW mouse-modification-of-clip
under a switch -
#define  ADD_CLIP_RESIZING // new code under this item
that was NOT carried through, so this define can eventually be
removed. There is still a minor problem when the clip region is
dragged to the left, or top - the clip region swaps to the other
side ... it does NOT seem a grave problem, so is left there as
an interesting FEATURE ;=))

***********************************************************************

For my BLIND project, if the CLIP is available, the show
the colours used. Also show MORE on the "colours used".
Maybe also MANUAL animate the palette, since this presently
fails on "true colour" machines.

1. Also Open All ... does NOT appear to work

Geoff.

File: Dv32.txt                             26 April, 1998

Error 5509!
===========

1. DvDib.c Ln 427 ->


2. DvPaint.c Ln 277 ->
void SetDIBitsPaint( HDC hDC,
					LPRECT lpDCRect,
					HANDLE hDIB,
					LPRECT lpDIBRect,
					HPALETTE hPal,
					DWORD dwROP )

As suspected the service HBITMAP CreateDIBitmap() appears to FAIL with
very LARGE DIB's!!!

One idea for a work around would be to create a BITMAP of only PART
of the DIB. This would require this to be re-built on each SIZE or
SCROLL action.

The service CreateCompatibleBitmap() could be used to create a
BITMAP compatible to the HDC, and equal to the SIZE of the CHILD
window. This would require a service like Copy_DIB_Part_to_Bitmap().


=== This appears to be an OLD INI file ===
DIBVIEW.INI
===
; ;; Search Path=D:\WORK\T4\DV32\Debug\*.*
[Version]
Date=17 October, 1999

[Directory]
File Save=A:\
Search Path=F:\Mes Documents\*.jpg
Out Index=1
In Index=1
Recursive=No

[General]
Be Tidy=No
AutoLoad=No
Max. Save=20
Save INI=Yes
Reload=No
OpenWindow=Yes
SysLoadMsg=Yes
MaxColors=32000

[Library Configuration]
Safety=Yes
Show Warning=Yes

[Files]
File1=Color2.bmp
File2=Colour.bmp
File3=F:\Mes Documents\DDB0919n.jpg
File4=dv32.bmp
File5=E:\VB\VB5\MDI\ANewCur.bmp
File6=E:\WORK\DISNEY\mstty\msttybg.bmp
File7=f:\mesdoc~1\Dis-0002.bmp
File8=E:\VB\VB5\MDI\PCImage.bmp
File9=E:\VB\VB5\MDI\CloseDn.bmp
File10=D:\WORK\T4\DV32\Lab1.jpg
File11=F:\GTOOLS32\BglView2\TEMP0000.BMP
File12=D:\WORK\T4\DV32\Kanga.bmp
File13=D:\WORK\T4\DV32\Kanga2.jpg
File14=D:\WORK\T4\DV32\Kanga3.jpg
File15=D:\WORK\T4\DV32\Kanga.jpg

[History]
HFile1=Bl-Sun1.bmp
HFile2=Bl-Sun2.bmp
HFile3=F:\Mes Documents\SimEclip.jpg
HFile4=F:\Mes Documents\AnnBUp.jpg
HFile5=F:\Mes Documents\DDB0919.jpg
HFile6=A:\DDB0919.jpg
HFile7=f:\mesdoc~1\Dis-0001.bmp
HFile8=kanga.bmp

[GIF Options]
Global Update=Yes
Background=RGB(255,  0,  0)
Shadow=RGB(128,128,128)
HighLight=RGB(255,255,255)
Text=RGB(  0,  0,  0)

[Options]
Stretch=No
BandPrinter=No
Use31API=No
DispType=DDB
PrintType=BestFit
XScale=1
YScale=1
msTimer=200
SetDefaults=Yes
ApplyAll=No

[Window]
Zoomed=No
Max. Screen=0,0,800,600
Current Size=44,20,741,542

[JPEG Compression]
Compression Color=CS_YCbCr
Optimize Huffman=No
Out Quality=75
Restart Rows=0
Restart Interval=0
Smooth Factor=0
Components=3
Hoz. Sample Factor=2
Vert. Sample Factor=2

[JPEG Decompression]
Quantize Colors=No
Block Smoothing=No
Decompress Color=CS_RGB
Use Dithering=Yes
Two Pass=Yes
Desired Colors=256
Pixel Smoothing=No


===