|
|
|
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
}
}
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.