rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/ @ 312  →  / @ 313
/16Edit/rsrc.rc
@@ -35,8 +35,8 @@
//
 
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,3,0
PRODUCTVERSION 1,0,3,0
FILEVERSION 1,0,4,1
PRODUCTVERSION 1,0,4,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -54,14 +54,14 @@
VALUE "Comments", "\0"
VALUE "CompanyName", "Slangmgh\0"
VALUE "FileDescription", "HexEditor\0"
VALUE "FileVersion", "1, 0, 4, 0\0"
VALUE "FileVersion", "1, 0, 4, 1\0"
VALUE "InternalName", "16Edit\0"
VALUE "LegalCopyright", "Copyright ? 2003\0"
VALUE "LegalCopyright", "Copyright (C) 2003\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "16Edit.exe\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "16Edit\0"
VALUE "ProductVersion", "1, 0, 4, 0\0"
VALUE "ProductVersion", "1, 0, 4, 1\0"
VALUE "SpecialBuild", "\0"
END
END
@@ -273,6 +273,7 @@
"T", TB_WIN2TOP, VIRTKEY, CONTROL, NOINVERT
"V", TB_PASTE, VIRTKEY, CONTROL, NOINVERT
VK_DELETE, TB_DELETE, VIRTKEY, NOINVERT
VK_F5, TB_REFRESH, VIRTKEY, NOINVERT
VK_F12, TB_ABOUT, VIRTKEY, NOINVERT
VK_F3, TB_SEARCHDOWN, VIRTKEY, NOINVERT
VK_F3, TB_SEARCHUP, VIRTKEY, CONTROL, NOINVERT
/16Edit/resource.h
@@ -70,6 +70,7 @@
#define TB_REPLACE 40022
#define TB_OFFSET 40023
#define TB_DELETE 40024
#define TB_REFRESH 40025
#define TB_COPY_TEXT 40030
 
// Next default values for new objects
/16Edit/HexEditWnd.cpp
@@ -1227,6 +1227,10 @@
}
 
BOOL HexEditWnd::HEHandleWM_COMMAND(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
OFN ofn;
char *szCmdl;
int iRet;
 
switch (LOWORD(wParam)) {
case TB_GOTO:
if (DialogBoxParam( GetInstance(), (PSTR)IDD_GOTO, hWnd, GotoDlgProc, 0) &&
@@ -1352,10 +1356,6 @@
ConfigureTB();
return TRUE;
case TB_OPEN:
OFN ofn;
char *szCmdl;
int iRet;
 
if (CanSave()) {
iRet = MessageBox(hMainWnd, "File changed, save or not", "16Edit", MB_YESNOCANCEL);
if (iRet == IDYES) {
@@ -1381,6 +1381,30 @@
RepaintClientAreaNow();
}
return TRUE;
case TB_REFRESH:
if (CanSave()) {
iRet = MessageBox(hMainWnd, "File changed, save or not", "16Edit", MB_YESNOCANCEL);
if (iRet == IDYES) {
SaveChanges();
} else if (iRet == IDCANCEL) {
return TRUE;
}
}
 
szCmdl = fInput.GetFilePath();
 
QuitEdition();
if (!HEdit.DoSpecifySettings(szCmdl)) {
MessageBox(hMainWnd, "File access error!", "16Edit", MB_ICONERROR);
return TRUE;
}
SetCaret();
SetHEWndCaption();
SetupVScrollbar();
SetTopLine();
ConfigureTB();
RepaintClientAreaNow();
return TRUE;
}
 
return FALSE; // ERR
@@ -2815,14 +2839,15 @@
args.hInstance = GetInstance();
args.lpszIcon = (PSTR)IDI_16Edit;
args.lpszCaption = "About";
args.lpszText = "16Edit 1.04 - HexEditor by slangmgh\n"\
args.lpszText = "16Edit 1.04+ - HexEditor by slangmgh\n"\
"Created from yoda's 16Edit module\n\n"\
"Changelog 1.04:\n"
"Changelog 1.04+:\n"
"1. Copy text available in clipboard\n"
"2. Goto offset save in profile\n"
"3. Search/Replace text enable paste\n"
"4. Search/Replace text save in profile\n"
"5. Some small bugfix\n\n"
"5. Add [F5] for reloading file\n"
"6. Some small bugfix\n\n"
"Feature:\n"\
"1. Small/Green/Robust/Freeware\n"\
"2. Unlimited undo/redo\n"\