]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
Make it LPNM_UPDOWN, not LPNMUPDOWN, in Borland C++
[wxWidgets.git] / src / msw / textctrl.cpp
index 3ba5f18f0eab7d7c1d5f93fc21f9cf3b18ad3dce..6770cc598c17317d9d26a356d1a8a0ca2818d729 100644 (file)
@@ -57,7 +57,7 @@
 #   include <fstream>
 #endif
 
-#if wxUSE_RICHEDIT && !defined(__GNUWIN32__)
+#if wxUSE_RICHEDIT && (!defined(__GNUWIN32__) || defined(wxUSE_NORLANDER_HEADERS))
     #include <richedit.h>
 #endif
 
@@ -112,7 +112,7 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
                         const wxString& name)
 {
     // base initialization
-    if ( !CreateBase(parent, id, pos, size, style, name) )
+    if ( !CreateBase(parent, id, pos, size, style, validator, name) )
         return FALSE;
 
     SetValidator(validator);