Hi,
Sorry to post here .
D:\DengYC\Projects\EHProxy\EHProxyMain.cpp|69|undefined reference to `vtable for ShapedFrame'|
I used the shaped sample code, and create a new shaped frame in my main frame, that have an error about the reference...
I amnot sure why that point to the constructor of the shapedFrame...
here the class declaration part.. in the main frame .h file..
class ShapedFrame : public wxFrame
{
public:
// ctor(s)
ShapedFrame(wxFrame *parent);
private:
bool m_hasShape;
wxBitmap m_bmp;
wxPoint m_delta;
// any class wishing to process wxWidgets events must use this macro
DECLARE_EVENT_TABLE()
};
in the main frame .cpp file ,that have been initiated.. but there a reference error to that constructor??
ShapedFrame::ShapedFrame(wxFrame *parent)
: wxFrame(parent, wxID_ANY, wxEmptyString,
wxDefaultPosition, wxSize(100, 100),
0| wxFRAME_SHAPED
| wxSIMPLE_BORDER
| wxFRAME_NO_TASKBAR
| wxSTAY_ON_TOP)
{
wxBitmap m_bmp = wxBitmap(wxT("..\\..\\..\\projects\\crossPlatformC\\res\\icons\\protection.png"), wxBITMAP_TYPE_PNG);
SetSize(wxSize(m_bmp.GetWidth(), m_bmp.GetHeight()));
SetToolTip(wxT("Right-click to close"));
}