Click here to Skip to main content
15,881,172 members
Articles / Programming Languages / C++

Capturing Window Controls and Modifying their properties

Rate me:
Please Sign up or sign in to vote.
4.94/5 (56 votes)
19 Feb 2005GPL32 min read 209.8K   7.7K   157  
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.
/* TrayIcon.h --

   This file is part of the "zero Dump 0.1".

   Copyright (C) 2004-2005 Ashkbiz Danehkar
   All Rights Reserved.

   zero Dump library are free software; you can redistribute them
   and/or modify them under the terms of the GNU General Public License as
   published by the Free Software Foundation.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; see the file COPYRIGHT.TXT.
   If not, write to the Free Software Foundation, Inc.,
   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

   Ashkbiz Danehkar
   <ashkbiz@yahoo.com>
*/
#pragma once

#define	ID_TRAYICON						1000
#define	IDT_FIRST						1001
#define	IDT_RESTORE						IDT_FIRST + 1
#define	IDT_EXIT						IDT_FIRST + 2
#define	IDT_SEPARATOR					IDT_FIRST + 3
#define	WM_TRAYMENU						WM_USER + IDT_FIRST

void CreateTrayIcon();

void TrayIconWM_TRAYMENU(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
BOOL TrayIconWM_COMMAND(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void TrayIconWM_SIZE(HWND hWnd, WPARAM wParam, LPARAM lParam);

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)


Written By
Germany Germany
Ashkbiz Danehkar studied electrical engineering and computational science at the University of Rostock, Germany, where he obtained a Master of Science in Computational Engineering in the special field of Electrical Engineering in 2007. He worked as a software and hardware developer for some private limited companies until 2005, mostly focusing on industrial automation and microcontroller programming. During 2005–2006, he worked part-time remotely as a software reverse engineer for Panda Security (Bilbao, Spain). His master's thesis in 2007 was about the development of a microcontroller-based measurement system using an embedded system equipped with a real-time operating system (RTOS) and an AVR microcontroller to monitor the neuromuscular blockade and control the anesthesia.

Comments and Discussions