]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/choice.cpp
Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.
[wxWidgets.git] / src / os2 / choice.cpp
index e91486c6d7038413cfab7e39f9f73b2d95fb7303..1804a62b240116a1f0dc4d9c4208dde018e453b4 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "wx/os2/private.h"
 
-IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
-
 bool wxChoice::Create(
   wxWindow*                         pParent
 , wxWindowID                        vId
@@ -207,7 +205,7 @@ void wxChoice::SetString(unsigned int n, const wxString& rsStr)
     LONG  nIndexType = 0;
     void* pData;
 
-    if ( m_clientDataItemsType != wxClientData_None )
+    if ( HasClientData() )
     {
         pData = DoGetItemClientData(n);
     }