In Depth Banner
Skip Navigation Links

Select your preferred language

Example of a typical host class

 

 

class Host : Component, IWndProcProvider //Note derivation from component is not mandatory
{
    ExtNativeWindow _nw;
 
    public Host()
    {
        _nw=new ExtNativeWindow(this);
    }
 
    void IWndProcProvider.WndProc(ref Message m, ExtNativeWindow defWndProcProvider)
    {
        //Do WndProc loop here... and call the defWndProcProvider.DefWndProc(ref m) for all unhandled messages
    }
}

Use the Back button to return to the article.

Copyright © Bob Powell 2003-2009. All rights reserved