Tordex Community

Full Version: Tutorial or SDK reference or HOWTO?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Anyone know where I can find a reference or tutorial for writing plugins?
Try downloading the True Launch Bar SDK for starters. Big Grin
HorusUK Wrote:Try downloading the True Launch Bar SDK for starters. Big Grin
Thanks. Got that already, though. It's just a little...bewildering. Some sort of documentation for it is what I'm after. Or a SIMPLE tutorial project that implements it and provides source code comments...
Tutorial is under construction still Sad You can ask any question dirrectly to me.
Yuri Kobets Wrote:Tutorial is under construction still Sad You can ask any question dirrectly to me.
Heh...you may not like my question then.

How do I start? =)

For instance, how do I create a plugin that's just a clickable button that pops up a MessageBox?

I've looked at the source of several sample plugins but they all seem to do things differently.
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.