www.pudn.com > Process_Mo18292312142004.rar > FindWnd.h


 
/******************************************************* 
 
   This file is part of Process Monitor. 
	 
   Copyright (c) 2004 by Michel van Kerkhof, ( michel000@planet.nl  http://home.wxs.nl/~wijk0550/ )            
   For more information consult the Readme file.        
                                                                                                                                                                    
   This program is free software; you can redistribute it      
   and/or modify it under the terms of the GNU          
   General Public License as published by the Free      
   Software Foundation; either version 2 of the         
   License, or (at your option) any later version.      
                                                        
   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;  
   if not, write to: 
   the Free Software Foundation, Inc.,         
   59 Temple Place,                                     
   Suite 330, Boston,                                   
   MA  02111-1307  USA                                  
                                                        
******************************************************* 
 
   If you like my work and you have a job for me please contact me at: michel000@planet.nl 
   
*******************************************************/ 
 
 
 
 
#ifndef FINDWND_H 
#define FINDWND_H 
 
/* 
 * Structure used by WH_MOUSE_LL 
 */ 
 
#define WH_MOUSE_LL        14 
 
 
typedef struct tagMSLLHOOKSTRUCT { 
    POINT   pt; 
    DWORD   mouseData; 
    DWORD   flags; 
    DWORD   time; 
    DWORD   dwExtraInfo; 
} MSLLHOOKSTRUCT, FAR *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT; 
 
 
 
class CFindWnd { 
private: 
	HHOOK m_hHook; 
	HWND  m_hStatus; 
	HMENU m_hPopup; 
 
public: 
	HWND m_hMain,m_hTarget; 
	bool bCapture; 
 
	CFindWnd(bool *bRet); 
	~CFindWnd(); 
 
	void LeftClick(POINT *pt); 
	void ShowPopup(HWND hCur); 
	void SetCursorPos(POINT *pt); 
	void DialogStartup(HWND hWnd); 
	void SetWindow(HWND hWnd); 
	bool SetMouseCapture(); 
	bool ReleaseMouseCapture(); 
	void StartFindWndDlg(HWND hWnd); 
}; 
 
class CWndInfo { 
private: 
	HWND m_hTarget; 
	DWORD	m_dwOldStyle, 
			m_dwOldStyleEx; 
public: 
	CWndInfo() { 
	}; 
	~CWndInfo() { 
	}; 
	int GetInfo(HWND hMain,HWND hTarget); 
	void WindowStartup(HWND hWnd); 
	void WindowClose(HWND hWnd); 
}; 
 
#endif