and warning fixes (dll linking problem).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44560
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if defined(__WXMSW__) && USE_NATIVE_HEADER_WINDOW
#if defined(__WXMSW__) && USE_NATIVE_HEADER_WINDOW
-// implemented in msw/window.cpp:
-void wxAssociateWinWithHandle(HWND hWnd, wxWindowMSW *win);
-void wxRemoveHandleAssociation(wxWindowMSW *win);
-
// implemented in msw/listctrl.cpp:
unsigned int wxMSWGetColumnClicked(NMHDR *nmhdr, POINT *ptClick);
// implemented in msw/listctrl.cpp:
unsigned int wxMSWGetColumnClicked(NMHDR *nmhdr, POINT *ptClick);
-IMPLEMENT_ABSTRACT_CLASS(wxDataViewHeaderWindowMSW, wxWindow);
+IMPLEMENT_ABSTRACT_CLASS(wxDataViewHeaderWindowMSW, wxWindow)
bool wxDataViewHeaderWindowMSW::Create( wxDataViewCtrl *parent, wxWindowID id,
const wxPoint &pos, const wxSize &size,
bool wxDataViewHeaderWindowMSW::Create( wxDataViewCtrl *parent, wxWindowID id,
const wxPoint &pos, const wxSize &size,
- // we need to do the association to force wxWindow::HandleNotify
+ // we need to subclass the m_hWnd to force wxWindow::HandleNotify
// to call wxDataViewHeaderWindow::MSWOnNotify
// to call wxDataViewHeaderWindow::MSWOnNotify
- wxAssociateWinWithHandle((HWND)m_hWnd, this);
// the following is required to get the default win's font for
// header windows and must be done befor sending the HDM_LAYOUT msg
// the following is required to get the default win's font for
// header windows and must be done befor sending the HDM_LAYOUT msg
wxDataViewHeaderWindowMSW::~wxDataViewHeaderWindow()
{
wxDataViewHeaderWindowMSW::~wxDataViewHeaderWindow()
{
- wxRemoveHandleAssociation(this);
}
void wxDataViewHeaderWindowMSW::UpdateDisplay()
}
void wxDataViewHeaderWindowMSW::UpdateDisplay()
case wxALIGN_RIGHT:
hdi.fmt |= HDF_RIGHT;
break;
case wxALIGN_RIGHT:
hdi.fmt |= HDF_RIGHT;
break;
+
+ default:
+ // such alignment is not allowed for the column header!
+ wxFAIL;
}
SendMessage((HWND)m_hWnd, HDM_INSERTITEM,
}
SendMessage((HWND)m_hWnd, HDM_INSERTITEM,
bool selected = m_selection.Index( item ) != wxNOT_FOUND;
if (selected || item == m_currentRow)
{
bool selected = m_selection.Index( item ) != wxNOT_FOUND;
if (selected || item == m_currentRow)
{
- int flags = selected ? wxCONTROL_SELECTED : 0;
+ int flags = selected ? (int)wxCONTROL_SELECTED : 0;
if (item == m_currentRow)
flags |= wxCONTROL_CURRENT;
if (m_hasFocus)
if (item == m_currentRow)
flags |= wxCONTROL_CURRENT;
if (m_hasFocus)