Tutorial or SDK reference or HOWTO?
Started by JCinDE


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


6 posts in this topic
Yuri Kobets
Posting Freak
*****


10
6,208 posts 429 threads Joined: Jan 2002
05-21-2004, 02:57 PM -
#6
OK. Open memmon sample change or remove code from CMemMonBtn:Big Grinraw 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


Messages In This Thread
[No subject] - by JCinDE - 05-09-2004, 04:47 PM
[No subject] - by HorusUK - 05-09-2004, 05:23 PM
[No subject] - by JCinDE - 05-09-2004, 06:01 PM
[No subject] - by Yuri Kobets - 05-12-2004, 11:07 AM
[No subject] - by JCinDE - 05-19-2004, 10:31 AM
[No subject] - by Yuri Kobets - 05-21-2004, 02:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)