]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/commandlinkbutton.cpp
Misc XRC format docs corrections.
[wxWidgets.git] / src / msw / commandlinkbutton.cpp
index 796251439a950362064aa8b8e513949060597e78..653b48be8a0f71c12e66532feb95cf06ef04f72f 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxCommandLinkButton
 // Author:      Rickard Westerlund
 // Created:     2010-06-14
-// RCS-ID:      $Id$
 // Copyright:   (c) 2010 wxWidgets team
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -92,7 +91,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;