// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma interface "dllwidget.h"
-#endif
-
#ifndef __DLLWIDGET_H__
#define __DLLWIDGET_H__
{
public:
MyWindow(wxWindow *parent, long style)
- : wxWindow(parent, -1) {}
+ : wxWindow(parent, wxID_ANY) {}
int HandleCommand(int cmd, const wxString& param)
{
{
public:
wxDllWidget(wxWindow *parent,
- wxWindowID id = -1,
+ wxWindowID id = wxID_ANY,
const wxString& dllName = wxEmptyString,
const wxString& className = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
bool Ok() { return m_widget != NULL; }
virtual int SendCommand(int cmd, const wxString& param = wxEmptyString);
- virtual wxWindow* GetEmbeddedWindow() { return m_widget; }
+ virtual wxWindow* GetWidgetWindow() { return m_widget; }
virtual void AddChild(wxWindowBase *child);
{ \
*classInst = new widget(parent, style); \
*cmdFunc = SendCommandTo##widget; \
- return TRUE; \
+ return true; \
}
#define END_WIDGET_LIBRARY() \
- return FALSE; \
+ return false; \
}
#endif // __DLLWIDGET_H__