Click here to Skip to main content
15,894,017 members
Articles / Programming Languages / C++

Image Viewer Utility

Rate me:
Please Sign up or sign in to vote.
4.94/5 (50 votes)
10 Mar 2007CPOL18 min read 407.6K   19.2K   200  
A little utility program that allows you to view the contents of memory bitmaps and device contexts while you are stepping through your drawing code.
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// 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

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#include ""res\\ImageViewer.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON                    "res\\Eye01j.ico"
IDR_IMAGEVIEWERTYPE     ICON                    "res\\ImageViewerDoc.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDR_MAINFRAME           BITMAP                  "res\\Toolbar.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Toolbar
//

IDR_MAINFRAME TOOLBAR  16, 15
BEGIN
    BUTTON      ID_FILE_STOP
    SEPARATOR
    BUTTON      ID_FILE_OPEN
    BUTTON      ID_FILE_SAVE_AS
    SEPARATOR
    BUTTON      ID_FILE_ALWAYSONTOP
    BUTTON      ID_VIEW_BACKGROUNDCOLOUR
    BUTTON      ID_VIEW_HEXADECIMALTOOLTIPS
    BUTTON      ID_VIEW_DISPLAYLOCK
    SEPARATOR
    BUTTON      ID_IMAGE_SAVE
    BUTTON      ID_VIEW_PROPERTIES
    BUTTON      ID_IMAGE_DELETE
    SEPARATOR
    BUTTON      ID_VIEW_FIRSTIMAGE
    BUTTON      ID_VIEW_PREVIOUSIMAGE
    BUTTON      ID_VIEW_SELECTIMAGE
    BUTTON      ID_VIEW_NEXTIMAGE
    BUTTON      ID_VIEW_LASTIMAGE
    SEPARATOR
    BUTTON      ID_VIEW_GRID
    BUTTON      ID_ZOOM_ZOOMIN
    BUTTON      ID_ZOOM_ZOOMOUT
    SEPARATOR
    BUTTON      ID_APP_ABOUT
END


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MAINFRAME MENU 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Pause",                      ID_FILE_STOP
        MENUITEM SEPARATOR
        MENUITEM "Open\tCtrl+O",                ID_FILE_OPEN
        MENUITEM SEPARATOR
        MENUITEM "Recent File",                 ID_FILE_MRU_FILE1
        MENUITEM SEPARATOR
        MENUITEM "E&xit\tAlt+F4",               ID_APP_EXIT
    END
    POPUP "&View"
    BEGIN
        MENUITEM "&Always on Top\tT",           ID_FILE_ALWAYSONTOP
        MENUITEM "&Background Colour...\tB",    ID_VIEW_BACKGROUNDCOLOUR
        MENUITEM "He&xidecimal Tooltips\tX",    ID_VIEW_HEXADECIMALTOOLTIPS
        MENUITEM "&Display Lock\tD",            ID_VIEW_DISPLAYLOCK
        MENUITEM SEPARATOR
        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
    END
    POPUP "&Setup"
    BEGIN
        MENUITEM "&Memory...",                  ID_SETUP_MEMORY
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About Image Viewer...",      ID_APP_ABOUT
    END
END

IDR_IMAGEVIEWERTYPE MENU 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Pause",                      ID_FILE_STOP
        MENUITEM SEPARATOR
        MENUITEM "&Open\tCtrl+O",               ID_FILE_OPEN
        MENUITEM "&Save As\tCtrl+S",            ID_FILE_SAVE_AS
        MENUITEM "&Close\tCtrl+F4",             ID_FILE_CLOSE_VIEW
        MENUITEM SEPARATOR
        MENUITEM "Recent File",                 ID_FILE_MRU_FILE1
        MENUITEM SEPARATOR
        MENUITEM "E&xit\tAlt+F4",               ID_APP_EXIT
    END
    POPUP "&View"
    BEGIN
        MENUITEM "&Always On Top\tT",           ID_FILE_ALWAYSONTOP
        MENUITEM "&Background Colour...\tB",    ID_VIEW_BACKGROUNDCOLOUR
        MENUITEM "He&xadecimal Tooltips\tX",    ID_VIEW_HEXADECIMALTOOLTIPS
        MENUITEM "&Display Lock\tD",            ID_VIEW_DISPLAYLOCK
        MENUITEM SEPARATOR
        MENUITEM "&Center Mouse\tC",            ID_VIEW_CENTERMOUSE
        MENUITEM SEPARATOR
        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
    END
    POPUP "&Image"
    BEGIN
        MENUITEM "&Save as Picture...\tS",      ID_IMAGE_SAVE
        MENUITEM "&Properties...\tP",           ID_VIEW_PROPERTIES
        MENUITEM "&Delete...\tDel",             ID_IMAGE_DELETE
        MENUITEM SEPARATOR
        MENUITEM "&First Image\tF",             ID_VIEW_FIRSTIMAGE
        MENUITEM "P&revious Image\t<",          ID_VIEW_PREVIOUSIMAGE
        MENUITEM "Select &Image...\t?",         ID_VIEW_SELECTIMAGE
        MENUITEM "&Next Image\t>",              ID_VIEW_NEXTIMAGE
        MENUITEM "&Last Image\tL",              ID_VIEW_LASTIMAGE
    END
    POPUP "&Zoom"
    BEGIN
        MENUITEM "&Grid\tG",                    ID_VIEW_GRID
        MENUITEM SEPARATOR
        MENUITEM "Zoom &In\t+",                 ID_ZOOM_ZOOMIN
        MENUITEM "Zoom &Out\t-",                ID_ZOOM_ZOOMOUT
    END
    POPUP "&Window"
    BEGIN
        MENUITEM "&New Window",                 ID_WINDOW_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
        MENUITEM "Tile &Horizontal",            ID_WINDOW_TILE_HORZ
        MENUITEM "Tile &Vertical",              ID_WINDOW_TILE_VERT
        MENUITEM SEPARATOR
        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About Image Viewer...",      ID_APP_ABOUT
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_MAINFRAME ACCELERATORS 
BEGIN
    "t",            ID_FILE_ALWAYSONTOP,    ASCII,  NOINVERT
    VK_F4,          ID_FILE_CLOSE_VIEW,     VIRTKEY, CONTROL, NOINVERT
    "O",            ID_FILE_OPEN,           VIRTKEY, CONTROL, NOINVERT
    "S",            ID_FILE_SAVE_AS,        VIRTKEY, CONTROL, NOINVERT
    VK_DELETE,      ID_IMAGE_DELETE,        VIRTKEY, NOINVERT
    "s",            ID_IMAGE_SAVE,          ASCII,  NOINVERT
    "b",            ID_VIEW_BACKGROUNDCOLOUR, ASCII, NOINVERT
    "c",            ID_VIEW_CENTERMOUSE,    ASCII,  NOINVERT
    "d",            ID_VIEW_DISPLAYLOCK,    ASCII,  NOINVERT
    "f",            ID_VIEW_FIRSTIMAGE,     ASCII,  NOINVERT
    "g",            ID_VIEW_GRID,           ASCII,  NOINVERT
    "x",            ID_VIEW_HEXADECIMALTOOLTIPS, ASCII, NOINVERT
    "l",            ID_VIEW_LASTIMAGE,      ASCII,  NOINVERT
    VK_OEM_PERIOD,  ID_VIEW_NEXTIMAGE,      VIRTKEY, NOINVERT
    VK_OEM_COMMA,   ID_VIEW_PREVIOUSIMAGE,  VIRTKEY, NOINVERT
    "p",            ID_VIEW_PROPERTIES,     ASCII,  NOINVERT
    VK_OEM_2,       ID_VIEW_SELECTIMAGE,    VIRTKEY, NOINVERT
    VK_ADD,         ID_ZOOM_ZOOMIN,         VIRTKEY, NOINVERT
    VK_OEM_PLUS,    ID_ZOOM_ZOOMIN,         VIRTKEY, NOINVERT
    VK_OEM_MINUS,   ID_ZOOM_ZOOMOUT,        VIRTKEY, NOINVERT
    VK_SUBTRACT,    ID_ZOOM_ZOOMOUT,        VIRTKEY, NOINVERT
    VK_PAUSE,       ID_FILE_STOP,           VIRTKEY, NOINVERT
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 240, 118
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Image Viewer"
FONT 8, "Microsoft Sans Serif", 400, 0, 0x0
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,7,7,21,20
    ICON            IDI_PJA,IDC_STATIC,212,91,21,20
    CTEXT           "Image Viewer version 2.1",IDC_STATIC,34,12,146,8,SS_NOPREFIX | SS_CENTERIMAGE
    CTEXT           "Copyright � 2001-2006,  PJ Arends",IDC_STATIC,34,35,146,8,SS_CENTERIMAGE
    DEFPUSHBUTTON   "OK",IDOK,183,7,50,16,WS_GROUP
    CTEXT           "http://www.codeproject.com/tools/imageviewer.asp",IDC_STATIC_LINK,7,103,200,8,SS_CENTERIMAGE
    CTEXT           "This software is released as FREEWARE and is provided ""AS-IS"" without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.",IDC_STATIC,7,56,200,34
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 2,1,0,0
 PRODUCTVERSION 2,1,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904e4"
        BEGIN
            VALUE "Comments", "This is FreeWare - Provided as is, Use at your own risk."
            VALUE "CompanyName", "PJ Arends - pja@telus.net"
            VALUE "FileDescription", "Viewer portion of the Image Viewer utility"
            VALUE "FileVersion", "2, 1, 0, 0"
            VALUE "InternalName", "ImageViewer"
            VALUE "LegalCopyright", "Copyright � 2001 - 2006"
            VALUE "OriginalFilename", "ImageViewer.exe"
            VALUE "ProductName", "Image Viewer Utility 2.1"
            VALUE "ProductVersion", "2, 1, 0, 0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 233
        TOPMARGIN, 7
        BOTTOMMARGIN, 111
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDR_MAINFRAME           "Image Viewer"
    IDR_IMAGEVIEWERTYPE     "\n\n\nImage Viewer Data (*.ivd)\n.ivd\n\n"
    IDS_CAPTION             "%1 - Image %2 of %3 [%4%%]"
    IDS_TITLE               "Process : (%1) %2"
    IDS_PAUSEDMESSAGE       "Paused"
    IDS_COLOURTOOLTIP       "%1, %2 - R:%3, G:%4, B:%5"
    IDS_WAITDELETE          "Freeing memory. Please wait..."
END

STRINGTABLE 
BEGIN
    AFX_IDS_APP_TITLE       "Image Viewer 2.1"
    AFX_IDS_IDLEMESSAGE     "Ready"
END

STRINGTABLE 
BEGIN
    ID_INDICATOR_EXT        "EXT"
    ID_INDICATOR_CAPS       "CAP"
    ID_INDICATOR_NUM        "NUM"
    ID_INDICATOR_SCRL       "SCRL"
    ID_INDICATOR_OVR        "OVR"
    ID_INDICATOR_REC        "REC"
END

STRINGTABLE 
BEGIN
    ID_IMAGE_SAVE           "Save current image to picture file      Key 'S'\nSave"
    ID_INDICATOR_MEM        "%1 KB"
    ID_FILE_STOP            "Stop the viewer from recieving images\nPause"
    ID_SETUP_MEMORY         "Set the maximum memory usage"
END

STRINGTABLE 
BEGIN
    ID_FILE_NEW             "Create a new document\nNew"
    ID_FILE_OPEN            "Open an existing document\nOpen"
    ID_FILE_CLOSE           "Close the active document\nClose"
    ID_FILE_SAVE            "Save the active document\nSave"
    ID_FILE_SAVE_AS         "Save the active document with a new name\nSave As"
END

STRINGTABLE 
BEGIN
    ID_APP_ABOUT            "Display program information, version number and copyright\nAbout"
    ID_APP_EXIT             "Quit the application\nExit"
END

STRINGTABLE 
BEGIN
    ID_FILE_MRU_FILE1       "Open this document"
    ID_FILE_MRU_FILE2       "Open this document"
    ID_FILE_MRU_FILE3       "Open this document"
    ID_FILE_MRU_FILE4       "Open this document"
    ID_FILE_MRU_FILE5       "Open this document"
    ID_FILE_MRU_FILE6       "Open this document"
    ID_FILE_MRU_FILE7       "Open this document"
    ID_FILE_MRU_FILE8       "Open this document"
    ID_FILE_MRU_FILE9       "Open this document"
    ID_FILE_MRU_FILE10      "Open this document"
    ID_FILE_MRU_FILE11      "Open this document"
    ID_FILE_MRU_FILE12      "Open this document"
    ID_FILE_MRU_FILE13      "Open this document"
    ID_FILE_MRU_FILE14      "Open this document"
    ID_FILE_MRU_FILE15      "Open this document"
    ID_FILE_MRU_FILE16      "Open this document"
END

STRINGTABLE 
BEGIN
    ID_NEXT_PANE            "Switch to the next window pane\nNext Pane"
    ID_PREV_PANE            "Switch back to the previous window pane\nPrevious Pane"
END

STRINGTABLE 
BEGIN
    ID_WINDOW_NEW           "Open another window for the active document\nNew Window"
    ID_WINDOW_ARRANGE       "Arrange icons at the bottom of the window\nArrange Icons"
    ID_WINDOW_CASCADE       "Arrange windows so they overlap\nCascade Windows"
    ID_WINDOW_TILE_HORZ     "Arrange windows as non-overlapping tiles\nTile Windows"
    ID_WINDOW_TILE_VERT     "Arrange windows as non-overlapping tiles\nTile Windows"
    ID_WINDOW_SPLIT         "Split the active window into panes\nSplit"
END

STRINGTABLE 
BEGIN
    ID_EDIT_CLEAR           "Erase the selection\nErase"
    ID_EDIT_CLEAR_ALL       "Erase everything\nErase All"
    ID_EDIT_COPY            "Copy the selection and put it on the Clipboard\nCopy"
    ID_EDIT_CUT             "Cut the selection and put it on the Clipboard\nCut"
    ID_EDIT_FIND            "Find the specified text\nFind"
    ID_EDIT_PASTE           "Insert Clipboard contents\nPaste"
    ID_EDIT_REPEAT          "Repeat the last action\nRepeat"
    ID_EDIT_REPLACE         "Replace specific text with different text\nReplace"
    ID_EDIT_SELECT_ALL      "Select the entire document\nSelect All"
    ID_EDIT_UNDO            "Undo the last action\nUndo"
    ID_EDIT_REDO            "Redo the previously undone action\nRedo"
END

STRINGTABLE 
BEGIN
    ID_VIEW_TOOLBAR         "Show or hide the toolbar\nToggle ToolBar"
    ID_VIEW_STATUS_BAR      "Show or hide the status bar\nToggle StatusBar"
END

STRINGTABLE 
BEGIN
    AFX_IDS_SCSIZE          "Change the window size"
    AFX_IDS_SCMOVE          "Change the window position"
    AFX_IDS_SCMINIMIZE      "Reduce the window to an icon"
    AFX_IDS_SCMAXIMIZE      "Enlarge the window to full size"
    AFX_IDS_SCNEXTWINDOW    "Switch to the next document window"
    AFX_IDS_SCPREVWINDOW    "Switch to the previous document window"
    AFX_IDS_SCCLOSE         "Close the active window and prompts to save the documents"
END

STRINGTABLE 
BEGIN
    AFX_IDS_SCRESTORE       "Restore the window to normal size"
    AFX_IDS_SCTASKLIST      "Activate Task List"
    AFX_IDS_MDICHILD        "Activate this window"
END

STRINGTABLE 
BEGIN
    ID_VIEW_HEXADECIMALTOOLTIPS 
                            "Toggle between hexidecimal and decimal numbers on the tooltips        Key 'X'\nHex Tooltips"
    ID_VIEW_GRID            "Toggle the grid displayed on the image        Key 'G'\nGrid"
    ID_VIEW_NEXTIMAGE       "Go to the next image        Key '>'\nNext"
    ID_VIEW_PREVIOUSIMAGE   "Go to the previous image        Key '<'\nPrevious"
    ID_VIEW_SELECTIMAGE     "Select any image        Key '?'\nSelect"
    ID_VIEW_BACKGROUNDCOLOUR 
                            "Select the background colour        Key 'B'\nBackground"
    ID_ZOOM_ZOOMIN          "Magnify the image        Key '+'\nZoom In"
    ID_ZOOM_ZOOMOUT         "Shrink the image        Key '-'\nZoom Out"
    ID_VIEW_FIRSTIMAGE      "Go to the first image        Key 'F'\nFirst"
    ID_VIEW_LASTIMAGE       "Go to the last image        Key 'L'\nLast"
    ID_VIEW_DISPLAYLOCK     "Lock the display on the current image        Key 'D'\nDisplay Lock"
    ID_VIEW_PROPERTIES      "Display the properties of the current image        Key 'P'\nProperties"
    ID_FILE_ALWAYSONTOP     "Keep the viewer on top of all other windows        Key 'T'\nAlways on Top"
    ID_IMAGE_DELETE         "Remove images from the list        Key 'Del'\nDelete"
    ID_VIEW_CENTERMOUSE     "Center the mouse cursor on the active view      Key 'C'\nCenter mouse"
    ID_FILE_CLOSE_VIEW      "Close the active view\nClose View"
END

STRINGTABLE 
BEGIN
    IDS_SAVINGIMAGE         "Saving Image %1 of %2"
    IDS_LOADINGIMAGE        "Reading Image %1 of %2"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (Canada) resources

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

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_PJA                 ICON                    "res\\PJA.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_GRIDBRUSH           BITMAP                  "res\\GridBrush.bmp"
IDB_GRAYTOOLBAR         BITMAP                  "res\\GrayscaleToolBar.bmp"
IDB_COLOURTOOLBAR       BITMAP                  "res\\ColourToolBar.bmp"
IDB_MEMUSAGE            BITMAP                  "res\\MemUsage.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_SELECTIMAGE DIALOGEX 0, 0, 136, 49
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Select Image"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    LTEXT           "Image Number :",IDC_STATIC,7,7,52,12,SS_CENTERIMAGE
    EDITTEXT        IDC_EDIT1,61,7,68,12,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",IDC_SPINNUMBER,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,118,17,11,14
    DEFPUSHBUTTON   "OK",IDOK,13,28,50,14,WS_DISABLED
    PUSHBUTTON      "Cancel",IDCANCEL,72,28,50,14
END

IDD_DELETEIMAGE DIALOGEX 0, 0, 169, 94
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Delete Image"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "&Current Image Only",IDC_CURRENT,"Button",BS_AUTORADIOBUTTON | WS_GROUP,7,7,155,14
    CONTROL         "&All Images",IDC_ALL,"Button",BS_AUTORADIOBUTTON,7,22,155,14
    CONTROL         "&Select Images",IDC_SELECT,"Button",BS_AUTORADIOBUTTON,7,37,155,14
    LTEXT           "&From",IDC_STATICFROM,19,54,16,12,SS_CENTERIMAGE | WS_DISABLED
    EDITTEXT        IDC_FROM,40,54,50,12,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
    LTEXT           "&To",IDC_STATICTO,98,54,9,12,SS_CENTERIMAGE | WS_DISABLED
    EDITTEXT        IDC_TO,112,54,50,12,ES_AUTOHSCROLL | WS_DISABLED
    DEFPUSHBUTTON   "OK",IDOK,30,73,50,14,WS_GROUP
    PUSHBUTTON      "Cancel",IDCANCEL,90,73,50,14
END

IDD_PROPERTIES DIALOGEX 0, 0, 247, 129
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Properties"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    EDITTEXT        IDC_EDITTEXT,38,73,202,49,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL
    LTEXT           "Width :",IDC_STATIC,7,7,26,8,0,WS_EX_TRANSPARENT
    LTEXT           "Static",IDC_STATICWIDTH,38,7,202,8
    LTEXT           "Height :",IDC_STATIC,7,18,26,8
    LTEXT           "Static",IDC_STATICHEIGHT,38,18,202,8
    LTEXT           "Bits :",IDC_STATIC,7,29,26,8
    LTEXT           "Static",IDC_STATICBITS,38,29,202,8
    LTEXT           "File :",IDC_STATIC,7,40,26,8
    LTEXT           "Static",IDC_STATICFILE,38,40,202,8,SS_PATHELLIPSIS
    LTEXT           "Line :",IDC_STATIC,7,51,26,8
    LTEXT           "Static",IDC_STATICLINE,38,51,202,8
    LTEXT           "Time :",IDC_STATIC,7,62,26,8
    LTEXT           "Static",IDC_STATICTIME,38,62,202,8
    LTEXT           "Text :",IDC_STATIC,7,73,26,8
END

IDD_SAVEPROGRESS DIALOGEX 0, 0, 186, 66
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "FileName.ivd"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    PUSHBUTTON      "Cancel",IDCANCEL,67,45,50,14
    CTEXT           "Title",IDC_STATICSAVING,7,7,172,8,SS_CENTERIMAGE
    CONTROL         "",IDC_PROGRESSSAVING,"msctls_progress32",WS_BORDER | 0x1,7,23,172,14
END

IDD_DIALOG_MAXMEM DIALOGEX 0, 0, 178, 126
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Maximum Memory Usage"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,33,106,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,92,106,50,14
    CTEXT           "Static",IDC_STATICTEXT,7,7,164,69
    LTEXT           "Maximum memory (KB) :",IDC_STATIC,7,90,78,8
    EDITTEXT        IDC_EDITMAXMEM,93,87,78,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",IDC_SPINMAXMEM,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | UDS_HOTTRACK,160,106,11,14
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_SELECTIMAGE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 129
        TOPMARGIN, 7
        BOTTOMMARGIN, 42
    END

    IDD_DELETEIMAGE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 162
        TOPMARGIN, 7
        BOTTOMMARGIN, 87
    END

    IDD_PROPERTIES, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 240
        TOPMARGIN, 7
        BOTTOMMARGIN, 122
    END

    IDD_SAVEPROGRESS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 59
    END

    IDD_DIALOG_MAXMEM, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 171
        TOPMARGIN, 7
        BOTTOMMARGIN, 119
    END
END
#endif    // APSTUDIO_INVOKED

#endif    // English (Canada) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#pragma code_page(1252)
#include "res\ImageViewer.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
President
Canada Canada
Father of two, brother of two, child of two.
Spouse to one, uncle to many, friend to lots.
Farmer, carpenter, mechanic, electrician, but definitely not a plumber.
Likes walks with the wife, board games, card games, travel, and camping in the summer.
High school graduate, college drop-out.
Hobby programmer who knows C++ with MFC and the STL.
Has dabbled with BASIC, Pascal, Fortran, COBOL, C#, SQL, ASM, and HTML.
Realized long ago that programming is fun when there is nobody pressuring you with schedules and timelines.

Comments and Discussions