hi,I try to implement such a function that when i double click the tab on the notebook,the tab closed.so i need to hook the double click message on wxauinotebook ,but i just found EVT_AUINOTEBOOK_BG_DCLICK
message .
so anyone has any comment on this?
If you look into the wxWidgets sources (stable and trunk) you see that it's just not implemented.And what's more it can not easily be changed, because the event is thrown by wxAuiTabCtrl's OnLeftDClick-event.
It's no problem to inherit a class from wxAuiNotebook, but to make it work you also need to derive a class from wxAuiTabCtrl and overwrite wxAuiNotebooks functions where the tabctrl get's created, but some of these functions also use wxTabFrame, but wxTabFrame is only declared in auibook.
cpp, and therefore you can not use it in derived classes.
You can have a look into the wxWidgets bug-tracker, whether a bug-report exists about that issue, and if not you can post one.