]> git.saurik.com Git - wxWidgets.git/commitdiff
1. added missing wxUSE_TEXTDLG to setup0.h
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Jun 1999 00:59:07 +0000 (00:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Jun 1999 00:59:07 +0000 (00:59 +0000)
2. added new style wxWANTS_CHARS and WM_GETDLGCODE handling for windows with
   this style

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/msw/setup0.h
src/msw/window.cpp

index 6601a8d52d9adb17470527b84d4d21bf9242f795..ae0ff7dc641180ebe67f00f86bd82848c98c7115 100644 (file)
@@ -497,7 +497,7 @@ typedef  wxUint16        wxWord;
 #define wxSUNKEN_BORDER     0x08000000
 #define wxRAISED_BORDER     0x04000000
 #define wxBORDER            0x02000000
-#define wxSIMPLE_BORDER     0x02000000
+#define wxSIMPLE_BORDER     wxBORDER
 #define wxSTATIC_BORDER     0x01000000
 #define wxTRANSPARENT_WINDOW 0x00100000
 #define wxNO_BORDER         0x00200000
@@ -518,6 +518,10 @@ typedef  wxUint16        wxWord;
 // outside of dialogs.
 #define wxTAB_TRAVERSAL     0x00080000
 
+// Add this style if the control wants to get all keyboard messages (under
+// Windows, it won't normally get the dialog navigation key events)
+#define wxWANTS_CHARS       0x00040000
+
 // Orientations
 #define wxHORIZONTAL     0x01
 #define wxVERTICAL       0x02
index 11cde04d7a7a85eb2f3073cf73c3f6342ec0aacb..2d2b52a2dc58a95558b34202e7afc031268e87b3 100644 (file)
 #define wxUSE_VALIDATORS 1
 #define wxUSE_ACCEL 1
 #define wxUSE_SASH 1
+#define wxUSE_TEXTDLG 1
 
 /*
  * Finer detail
index 78b7232946753c65711a0d47df87e3f6ba32da6d..422921686a52e35b29fe1b1a8a334a929c959669 100644 (file)
@@ -1776,6 +1776,14 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
             }
             break;
 
+        case WM_GETDLGCODE:
+            if ( GetWindowStyleFlag() & wxWANTS_CHARS )
+            {
+                rc.result = DLGC_WANTARROWS | DLGC_WANTCHARS | DLGC_WANTTAB;
+                processed = TRUE;
+            }
+            break;
+
         case WM_KEYDOWN:
             // If this has been processed by an event handler,
             // return 0 now (we've handled it).