Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

ShowWindowTree Utility

, 19 Jan 2002
Display the hierarchy of windows (hidden or not) on your system along with a few options to modifiy them
// 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
    "#include ""res\\ShowWindowTree.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "\r\n"
    "#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"
    "#include ""afxres.rc""  // Standard components\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\\ShowWindowTree.ico"

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

IDD_SHOWWINDOWTREE_DIALOG DIALOGEX 0, 0, 334, 271
STYLE DS_SETFONT | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_VISIBLE | 
    WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Window Tree"
FONT 8, "Courier New", 0, 0, 0x0
BEGIN
    LTEXT           "Frame Name To Build From:",IDC_STATIC,5,6,90,8
    EDITTEXT        IDC_BUILDFROM,95,4,232,12,ES_AUTOHSCROLL
    DEFPUSHBUTTON   "&Scan",IDC_SCAN,278,26,49,14
    CONTROL         "Tree1",IDC_TREE,"SysTreeView32",TVS_HASBUTTONS | 
                    TVS_HASLINES | TVS_LINESATROOT | TVS_EDITLABELS | 
                    TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS | WS_BORDER | 
                    WS_TABSTOP,0,64,334,207
    PUSHBUTTON      "S&ave",IDC_SAVEIT,7,42,50,14
    PUSHBUTTON      "&Load",IDC_LOAD,7,25,50,14
    CTEXT           "(C)Copyright 1997-2002 by R & J Technologies",
                    IDC_STATIC,62,29,209,8,SS_NOPREFIX
    LTEXT           "http://rjsoft.com",IDC_STATIC,125,40,69,8
END

IDD_SIZEDLG DIALOG  0, 0, 180, 42
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Window Size"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,129,24,50,14
    RTEXT           "X",IDC_STATIC,10,9,8,8
    RTEXT           "Y",IDC_STATIC,78,10,8,8
    RTEXT           "CX",IDC_STATIC,8,24,10,8
    RTEXT           "CY",IDC_STATIC,76,24,10,8
    EDITTEXT        IDC_X,21,7,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_Y,87,7,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CX,21,23,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CY,87,23,25,14,ES_AUTOHSCROLL
END


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

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,2
 PRODUCTVERSION 1,0,0,2
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "CompanyName", "R & J Technologies"
            VALUE "FileDescription", "Show WIndow Tree"
            VALUE "FileVersion", "1.2"
            VALUE "InternalName", "SHOWWINDOWTREE"
            VALUE "LegalCopyright", "Copyright � 1995-99"
            VALUE "OriginalFilename", "SHOWWINDOWTREE.EXE"
            VALUE "ProductName", "SHOWWINDOWTREE Application"
            VALUE "ProductVersion", "1.2"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END


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

IDB_SIGNALS             BITMAP                  "res\\signals.bmp"

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

IDR_TREEMENU MENU 
BEGIN
    POPUP "_LeftButton_"
    BEGIN
        MENUITEM SEPARATOR
    END
    POPUP "_RightButton_"
    BEGIN
        MENUITEM "Show Window Toggle",          IDM_SHOWWINDOWTOGGLE
        MENUITEM "Copy String To Clipboard",    IDM_COPYTOCLIPBOARD
        MENUITEM "Set Window Size",             IDM_SIZER
        MENUITEM "Enable/Disable Window",       IDM_ENABLEWINDOWTOGGLE
    END
END


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

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_SIZEDLG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 173
        TOPMARGIN, 7
        BOTTOMMARGIN, 35
    END
END
#endif    // APSTUDIO_INVOKED


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

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

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



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#include "res\ShowWindowTree.rc2"  // non-Microsoft Visual C++ edited resources

#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#include "afxres.rc"  // Standard components

/////////////////////////////////////////////////////////////////////////////
#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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Rocky Moore
President
United States United States
Computer geek since the beginning of time, well, at least since 1981. Started with the Commodore VIC-20 with 3.5K RAM. Past two decades spent with C/C++, MFC and now totally consumed with .NET and C#.
 
Business owner here in beautiful southern Oregon with mountains, clean air and pure water. Great outdoors to enjoy when I can get away from the computers.
 
Web sites of interest:
 
HintsAndTips.com
TheAwakening.com
My Blog: www.ReflectedThought.com
www.SilverlightCity.com
www.TheSaintsInLight.com
www.TheSilverlightDirectory.com
www.TheWPFDirectory.com

| Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 20 Jan 2002
Article Copyright 2002 by Rocky Moore
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid