Click here to Skip to main content
11,410,536 members (58,577 online)
Click here to Skip to main content
Add your own
alternative version

Capturing Window Controls and Modifying their properties

, 19 Feb 2005 GPL3
A Spy tool program like MS Spy++ that lets you capture window controls and modify their properties. Useful for learning window handles and their properties.
windowspy_src.zip
zDump
zDump
README
zDump.dsw
zDump.dsp
Graphics
XPtheme
zDump.exe.manifest
icons
124.ico
123.ico
FloatingFinder.ico
zDump2.ico
zDump1.ico
DockedFinder.ico
1.ico
2.ico
13.ico
cursors
Finder.cur
zDump.exe
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS

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

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

IDC_ZDUMP ACCELERATORS 
BEGIN
    "/",            IDM_ABOUT,              ASCII,  ALT, NOINVERT
    "?",            IDM_ABOUT,              ASCII,  ALT, NOINVERT
END


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

IDD_ABOUTBOX DIALOGEX 0, 0, 181, 122
STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | 
    WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About zero Dump"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    PUSHBUTTON      "OK",IDOK,121,102,53,13
    LTEXT           "zero Dump \tVersion 0.1",IDC_STATIC,36,12,129,9,
                    SS_NOPREFIX
    LTEXT           "Copyright � 2004-2005 Ashkbiz Danehkar All rights reserved",
                    IDC_STATIC,22,36,142,18
    ICON            IDI_ICON,IDC_STATIC,7,6,21,20,0,WS_EX_TRANSPARENT
    GROUPBOX        "",IDC_STATIC,7,26,167,69
    LTEXT           "Website:",IDC_STATIC,22,73,30,10
    PUSHBUTTON      "http://yodap.has.it/",IDC_WEB,64,72,92,11,BS_FLAT | NOT 
                    WS_TABSTOP
END

IDD_MAINDLG DIALOGEX 0, 0, 208, 162
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
CAPTION "[ zero Dump v0.1 ]"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    GROUPBOX        "Window Finder",IDC_STATIC,4,2,152,128
    LTEXT           "Drag the Finder Tool over a window to select it, then release the mouse button.  Or enter a window handle (in hexadecimal).",
                    IDC_STATIC,9,12,143,32
    LTEXT           "Finder Tool:",IDC_STATIC,9,52,48,8
    ICON            IDI_DOCKEDFINDER,IDC_STATIC_SEEKER,63,46,20,20
    CONTROL         "&Stay on top",IDC_STAYONTOP,"Button",BS_AUTOCHECKBOX | 
                    WS_GROUP | WS_TABSTOP,93,52,50,10
    LTEXT           "H&andle:",IDC_STATIC,9,72,29,8
    EDITTEXT        IDC_WINDOWHANDLE,40,69,46,13,ES_AUTOHSCROLL
    LTEXT           "Caption:",IDC_STATIC,9,83,30,8
    LTEXT           "",IDC_CAPTION,40,83,112,8
    LTEXT           "Class:",IDC_STATIC,9,94,30,8
    LTEXT           "",IDC_CLASS,40,94,112,8
    LTEXT           "Style:",IDC_STATIC,9,105,30,8
    LTEXT           "",IDC_STYLE,40,105,112,8
    LTEXT           "Rect:",IDC_STATIC,9,116,30,8
    LTEXT           "",IDC_RECT,40,116,112,8
    GROUPBOX        "Show",IDC_STATIC,4,133,152,25
    PUSHBUTTON      "Set &Properties",IDC_SETPROPRT,8,142,70,13
    PUSHBUTTON      "Send &Messages",IDC_SENDMSG,81,142,70,13,WS_DISABLED
    DEFPUSHBUTTON   "OK",IDOK,161,6,40,14,WS_GROUP
    PUSHBUTTON      "&Option",IDC_OPTION,161,24,40,14,WS_DISABLED
    PUSHBUTTON      "&About...",ID_ABOUT,161,46,40,14
END

IDD_PROPRT DIALOGEX 0, 0, 265, 86
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | 
    WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Properties"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    CONTROL         "",IDC_TABS,"SysTabControl32",0x0,4,1,257,81
END

DLG_STYLES DIALOGEX 0, 0, 252, 64
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    LTEXT           "&Styles:",IDC_STATIC,9,8,26,8
    COMBOBOX        IDC_STYLES,8,18,77,12,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL
    LTEXT           "&Border:",IDC_STATIC,9,33,28,10
    COMBOBOX        IDC_BORDER,8,43,77,12,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL
    CONTROL         "T&itle Bar",IDC_TITLEBAR,"Button",BS_AUTOCHECKBOX,105,6,
                    59,9
    CONTROL         "System men&u",IDC_SYSTEMMENU,"Button",BS_AUTOCHECKBOX,
                    105,20,59,10
    CONTROL         "Mi&nimize box",IDC_MINBOX,"Button",BS_AUTOCHECKBOX,105,
                    35,59,9
    CONTROL         "Ma&ximize box",IDC_MAXBOX,"Button",BS_AUTOCHECKBOX,105,
                    49,59,8
    CONTROL         "Cli&p siblings",IDC_CLIPSIBLING,"Button",
                    BS_AUTOCHECKBOX,177,6,64,9
    CONTROL         "Clip &children",IDC_CLIPCHILDREN,"Button",
                    BS_AUTOCHECKBOX,177,20,64,10
    CONTROL         "Hori&zontal scroll",IDC_HORSCROLL,"Button",
                    BS_AUTOCHECKBOX,177,35,64,9
    CONTROL         "&Vertical scroll",IDC_VERSCROLL,"Button",
                    BS_AUTOCHECKBOX,177,49,64,8
END

DLG_GENERAL DIALOGEX 0, 0, 252, 64
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    LTEXT           "ID:",IDC_STATIC,6,11,12,11
    LTEXT           "&Caption:",IDC_STATIC,128,11,28,9
    EDITTEXT        IDC_CAPTION,163,8,79,12,ES_AUTOHSCROLL | NOT WS_TABSTOP
    CONTROL         "Vi&sible",IDC_VISIBLE,"Button",BS_AUTOCHECKBOX,6,27,42,
                    8
    CONTROL         "Dis&abled",IDC_DISABLED,"Button",BS_AUTOCHECKBOX,6,39,
                    41,10
    CONTROL         "&Group",IDC_GROUP,"Button",BS_AUTOCHECKBOX,74,26,35,9
    CONTROL         "Ta&b stop",IDC_TABSTOP,"Button",BS_AUTOCHECKBOX,74,39,
                    39,8
    EDITTEXT        IDC_ID,23,8,73,12,ES_AUTOHSCROLL | ES_READONLY | NOT 
                    WS_TABSTOP
END

DLG_EXSTYLES DIALOGEX 0, 0, 252, 64
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    CONTROL         "T&ool window",IDC_TOOLWINDOW,"Button",BS_AUTOCHECKBOX,8,
                    6,59,9
    CONTROL         "&Client edge",IDC_CLIENTEDGE,"Button",BS_AUTOCHECKBOX,8,
                    20,52,10
    CONTROL         "Static e&dge",IDC_STATICADGE,"Button",BS_AUTOCHECKBOX,8,
                    35,59,9
    CONTROL         "Trans&parent",IDC_TRANSPARENT,"Button",BS_AUTOCHECKBOX,
                    8,49,59,8
    CONTROL         "&Accept files",IDC_ACCEPTFILES,"Button",BS_AUTOCHECKBOX,
                    75,6,64,9
    CONTROL         "Con&trol parent",IDC_CONTROLPARENT,"Button",
                    BS_AUTOCHECKBOX,75,20,64,10
    CONTROL         "Conte&xt help",IDC_CONTEXTHELP,"Button",BS_AUTOCHECKBOX,
                    75,35,64,9
    CONTROL         "&No parent notify",IDC_NOPARENTNOTIFY,"Button",
                    BS_AUTOCHECKBOX,75,49,64,8
    CONTROL         "Rig&ht-to-left reading order",IDC_RIGHTREADING,"Button",
                    BS_AUTOCHECKBOX,150,6,98,9
    CONTROL         "&Right aligned text",IDC_RIGHTALIGNED,"Button",
                    BS_AUTOCHECKBOX,150,20,98,10
    CONTROL         "&Left scroll bar",IDC_LEFTSCROLL,"Button",
                    BS_AUTOCHECKBOX,150,35,98,9
END

DLG_MORESTYLES DIALOGEX 0, 0, 252, 64
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
END

DLG_MOREEXSTYLES DIALOGEX 0, 0, 252, 64
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    CONTROL         "&Right to left layout",IDC_RIGHTLAYOUT,"Button",
                    BS_AUTOCHECKBOX,8,6,84,9
    CONTROL         "&No layout inheritance",IDC_NOLAYOUTINHERIT,"Button",
                    BS_AUTOCHECKBOX,8,20,84,10
    CONTROL         "No &activate",IDC_NOACTIVATE,"Button",BS_AUTOCHECKBOX,8,
                    35,84,9
    CONTROL         "Application &window",IDC_APPWINDOW,"Button",
                    BS_AUTOCHECKBOX,8,49,84,8
    CONTROL         "Dialog &modal frame",IDC_DLGMODALFRAME,"Button",
                    BS_AUTOCHECKBOX,100,6,75,9
    CONTROL         "Window &edge",IDC_WINEDGE,"Button",BS_AUTOCHECKBOX,100,
                    20,75,10
    CONTROL         "&Top most",IDC_TOPMOST,"Button",BS_AUTOCHECKBOX,100,35,
                    75,9
END


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

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""windows.h""\r\n"
    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


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

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 174
        TOPMARGIN, 6
        BOTTOMMARGIN, 114
    END

    IDD_PROPRT, DIALOG
    BEGIN
        RIGHTMARGIN, 264
    END

    DLG_STYLES, DIALOG
    BEGIN
        RIGHTMARGIN, 250
        BOTTOMMARGIN, 62
    END

    DLG_GENERAL, DIALOG
    BEGIN
        RIGHTMARGIN, 250
        BOTTOMMARGIN, 62
    END

    DLG_EXSTYLES, DIALOG
    BEGIN
        RIGHTMARGIN, 250
        BOTTOMMARGIN, 62
    END

    DLG_MORESTYLES, DIALOG
    BEGIN
        RIGHTMARGIN, 250
        BOTTOMMARGIN, 62
    END

    DLG_MOREEXSTYLES, DIALOG
    BEGIN
        RIGHTMARGIN, 250
        BOTTOMMARGIN, 62
    END
END
#endif    // APSTUDIO_INVOKED


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

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON                ICON                    "Graphics\\icons\\zDump1.ico"
IDI_FLOATINGFINDER      ICON                    "Graphics\\icons\\FloatingFinder.ico"
IDI_DOCKEDFINDER        ICON                    "Graphics\\icons\\DockedFinder.ico"

/////////////////////////////////////////////////////////////////////////////
//
// RT_MANIFEST
//

IDR_RT_MANIFEST1        RT_MANIFEST             "Graphics\\XPtheme\\zDump.exe.manifest"

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

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 0,1,0,0
 PRODUCTVERSION 0,1,0,0
 FILEFLAGSMASK 0x17L
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "FileDescription", "zero Dump"
            VALUE "FileVersion", "0.1.0.0"
            VALUE "InternalName", "zDump"
            VALUE "LegalCopyright", "� 2004-2005 Ashkbiz Danehkar."
            VALUE "OriginalFilename", "zDump.exe"
            VALUE "ProductName", "zero Dump"
            VALUE "ProductVersion", "0.10"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END


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

IDC_FINDER              CURSOR                  "Graphics\\cursors\\Finder.cur"

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

STRINGTABLE 
BEGIN
    IDS_APP_TITLE           "zDump"
    IDC_ZDUMP               "ZDUMP"
END

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



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#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 GNU General Public License (GPLv3)

Share

About the Author

Ashkbiz Danehkar

Australia Australia
No Biography provided
Follow on   LinkedIn

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.5 | Last Updated 19 Feb 2005
Article Copyright 2005 by Ashkbiz Danehkar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid