]> git.saurik.com Git - wxWidgets.git/commitdiff
correct window class attribution (was wrong in carbon)
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 4 Mar 2001 12:49:27 +0000 (12:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 4 Mar 2001 12:49:27 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp
src/mac/window.cpp

index 78cbd8ca195c0150ecd20caff67dd6cd6bc1b767..40ade4f268e645ac81caf1706bb7718ba5cc7bcb 100644 (file)
@@ -1083,23 +1083,10 @@ void  wxWindow::MacCreateRealWindow( const wxString& title,
                {
                        wclass = kMovableModalWindowClass ;
                }
-               else if ( HasFlag( wxDIALOG_MODELESS ) )
+               else 
                {
                        wclass = kDocumentWindowClass ;
                }
-               /*
-               else
-               {
-                       if ( HasFlag( wxCAPTION ) )
-                       {
-                               wclass = kDocumentWindowClass ;
-                       }
-                       else
-                       {
-                               wclass = kModalWindowClass ;
-                       }
-               }
-               */
        }
        else
        {
index 78cbd8ca195c0150ecd20caff67dd6cd6bc1b767..40ade4f268e645ac81caf1706bb7718ba5cc7bcb 100644 (file)
@@ -1083,23 +1083,10 @@ void  wxWindow::MacCreateRealWindow( const wxString& title,
                {
                        wclass = kMovableModalWindowClass ;
                }
-               else if ( HasFlag( wxDIALOG_MODELESS ) )
+               else 
                {
                        wclass = kDocumentWindowClass ;
                }
-               /*
-               else
-               {
-                       if ( HasFlag( wxCAPTION ) )
-                       {
-                               wclass = kDocumentWindowClass ;
-                       }
-                       else
-                       {
-                               wclass = kModalWindowClass ;
-                       }
-               }
-               */
        }
        else
        {