05-21-2004, 02:57 PM - 
			
			
			
			
		
		
		
			OK. Open memmon sample change or remove code from CMemMonBtn:
raw where you must draw your button. And add MessageBox into CMemMonBtn::Run()
and change the value of CLSID_MemMonitorButton in the guid.h using guidgen utility from PSDK.
		
		
		
		
		
		
		
raw where you must draw your button. And add MessageBox into CMemMonBtn::Run()Code:
STDMETHODIMP CMemMonBtn::Run()
{
    if(m_container)
    {
        HWND hWndBand = m_container->GetBandWND(); // get the toolbar window
        MessageBox(hWndBand, "You've clicked me!", "Title", MB_OK); // Show message box
    }
    return S_OK;
}and change the value of CLSID_MemMonitorButton in the guid.h using guidgen utility from PSDK.
The TORDEX Team
http://www.tordex.com
	http://www.tordex.com

