X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3571e1add4e6ceb45ad88c224c432609f837a8dd..43c42c18d36c703a88b1b7b697bac27fe5608eca:/src/msw/commandlinkbutton.cpp diff --git a/src/msw/commandlinkbutton.cpp b/src/msw/commandlinkbutton.cpp index 796251439a..6a581ce518 100644 --- a/src/msw/commandlinkbutton.cpp +++ b/src/msw/commandlinkbutton.cpp @@ -92,7 +92,7 @@ wxCommandLinkButton::SetMainLabelAndNote(const wxString& mainLabel, if ( HasNativeCommandLinkButton() ) { wxButton::SetLabel(mainLabel); - ::SendMessage(m_hWnd, BCM_SETNOTE, 0, (LPARAM) note.wx_str()); + ::SendMessage(m_hWnd, BCM_SETNOTE, 0, wxMSW_CONV_LPARAM(note)); // Preserve the user-specified label for GetLabel() m_labelOrig = mainLabel;