]> git.saurik.com Git - wxWidgets.git/commitdiff
WM_MOUSEMOVE correction
authorJulian Smart <julian@anthemion.co.uk>
Tue, 23 Nov 1999 10:53:39 +0000 (10:53 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 23 Nov 1999 10:53:39 +0000 (10:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/treectrl.tex
include/wx/msw/setup0.h
samples/wxsocket/makefile.g95
src/msw/bitmap.cpp
src/msw/makefile.vc
src/msw/window.cpp

index 67e6009640d7c4b643424f641e04d8bbc7010162..fad69db3bfd01d49cff9c4b9d563c99c048fcd41 100644 (file)
@@ -255,16 +255,9 @@ Returns the first visible item.
 
 \membersection{wxTreeCtrl::GetImageList}\label{wxtreectrlgetimagelist}
 
 
 \membersection{wxTreeCtrl::GetImageList}\label{wxtreectrlgetimagelist}
 
-\constfunc{wxImageList*}{GetImageList}{\param{int }{which = wxIMAGE\_LIST\_NORMAL}}
+\constfunc{wxImageList*}{GetImageList}{\void}
 
 
-Returns the specified image list. {\it which} may be one of:
-
-\twocolwidtha{5cm}
-\begin{twocollist}\itemsep=0pt
-\twocolitem{\windowstyle{wxIMAGE\_LIST\_NORMAL}}{The normal (large icon) image list.}
-\twocolitem{\windowstyle{wxIMAGE\_LIST\_SMALL}}{The small icon image list.}
-\twocolitem{\windowstyle{wxIMAGE\_LIST\_STATE}}{The user-defined state image list (unimplemented).}
-\end{twocollist}
+Returns the normal image list.
 
 \membersection{wxTreeCtrl::GetIndent}\label{wxtreectrlgetindent}
 
 
 \membersection{wxTreeCtrl::GetIndent}\label{wxtreectrlgetindent}
 
@@ -420,6 +413,12 @@ Returns the number of selected items.
 \pythonnote{The wxPython version of this method accepts no parameters
 and returns a Python list of \tt{wxTreeItemId}'s.}
 
 \pythonnote{The wxPython version of this method accepts no parameters
 and returns a Python list of \tt{wxTreeItemId}'s.}
 
+\membersection{wxTreeCtrl::GetStateImageList}\label{wxtreectrlgetstateimagelist}
+
+\constfunc{wxImageList*}{GetStateImageList}{\void}
+
+Returns the state image list (from which application-defined state images are taken).
+
 \membersection{wxTreeCtrl::HitTest}\label{wxtreectrlhittest}
 
 \func{long}{HitTest}{\param{const wxPoint\& }{point}, \param{int\& }{flags}}
 \membersection{wxTreeCtrl::HitTest}\label{wxtreectrlhittest}
 
 \func{long}{HitTest}{\param{const wxPoint\& }{point}, \param{int\& }{flags}}
@@ -527,10 +526,9 @@ Sets the indentation for the tree control.
 
 \membersection{wxTreeCtrl::SetImageList}\label{wxtreectrlsetimagelist}
 
 
 \membersection{wxTreeCtrl::SetImageList}\label{wxtreectrlsetimagelist}
 
-\func{void}{SetImageList}{\param{wxImageList*}{ imageList}, \param{int }{which = wxIMAGE\_LIST\_NORMAL}}
+\func{void}{SetImageList}{\param{wxImageList*}{ imageList}}
 
 
-Sets the image list. {\it which} should be one of wxIMAGE\_LIST\_NORMAL, wxIMAGE\_LIST\_SMALL and
-wxIMAGE\_LIST\_STATE.
+Sets the normal image list.
 
 \membersection{wxTreeCtrl::SetItemBold}\label{wxtreectrlsetitembold}
 
 
 \membersection{wxTreeCtrl::SetItemBold}\label{wxtreectrlsetitembold}
 
@@ -585,6 +583,12 @@ Sets the selected item image (this function is obsolete, use
 
 Sets the item label.
 
 
 Sets the item label.
 
+\membersection{wxTreeCtrl::SetStateImageList}\label{wxtreectrlsetstateimagelist}
+
+\func{void}{SetStateImageList}{\param{wxImageList*}{ imageList}}
+
+Sets the state image list (from which application-defined state images are taken).
+
 \membersection{wxTreeCtrl::SortChildren}\label{wxtreectrlsortchildren}
 
 \func{void}{SortChildren}{\param{const wxTreeItemId\&}{ item}}
 \membersection{wxTreeCtrl::SortChildren}\label{wxtreectrlsortchildren}
 
 \func{void}{SortChildren}{\param{const wxTreeItemId\&}{ item}}
index 5c940c1476a8a15408fd7851b1ce86e54b849a13..734adc7459831cdea40fe38784295c0187701f39 100644 (file)
@@ -62,8 +62,6 @@
 #define wxUSE_DRAG_AND_DROP 1
                                 // 0 for no drag and drop
 
 #define wxUSE_DRAG_AND_DROP 1
                                 // 0 for no drag and drop
 
-#define wxUSE_TOOLBAR      1
-                                // Define 1 to use toolbar classes
 #define wxUSE_BUTTONBAR    1
                                 // Define 1 to use buttonbar classes (enhanced toolbar
                                 // for MS Windows)
 #define wxUSE_BUTTONBAR    1
                                 // Define 1 to use buttonbar classes (enhanced toolbar
                                 // for MS Windows)
index 8139390064ddb996d299f11409fedee4acd29d4d..4d1b5983be0ad53921b97162a22f0d923ce61726 100644 (file)
@@ -27,13 +27,13 @@ $(OBJDIR):
 server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
        $(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
 
 server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
        $(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
 
-$(OBJDIR)/server.$(OBJSUFF):        server.$(SRCSUFF) server.h
+$(OBJDIR)/server.$(OBJSUFF):        server.$(SRCSUFF)
        $(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
 
 client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
        $(CC) $(LDFLAGS) -o client$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(LDLIBS)
 
        $(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
 
 client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
        $(CC) $(LDFLAGS) -o client$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(LDLIBS)
 
-$(OBJDIR)/client.$(OBJSUFF):        client.$(SRCSUFF) client.h
+$(OBJDIR)/client.$(OBJSUFF):        client.$(SRCSUFF)
        $(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
         
 $(OBJDIR)/server_resources.o:  server.rc
        $(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
         
 $(OBJDIR)/server_resources.o:  server.rc
index ab37c081e3e0b05304211844da1a67a546f311a4..7579bcee53c46878e19aed5f89a9b11f17d1c9c8 100644 (file)
@@ -278,6 +278,10 @@ bool wxBitmap::LoadFile(const wxString& filename, long type)
 
   wxBitmapHandler *handler = FindHandler(type);
 
 
   wxBitmapHandler *handler = FindHandler(type);
 
+#if 0
+  if ( handler == NULL )
+    return FALSE;
+#else
   if ( handler == NULL ) {
     wxImage image;
     if (!image.LoadFile( filename, type )) return FALSE;
   if ( handler == NULL ) {
     wxImage image;
     if (!image.LoadFile( filename, type )) return FALSE;
@@ -288,7 +292,7 @@ bool wxBitmap::LoadFile(const wxString& filename, long type)
     }
     else return FALSE;
   }
     }
     else return FALSE;
   }
-
+#endif
   return handler->LoadFile(this, filename, type, -1, -1);
 }
 
   return handler->LoadFile(this, filename, type, -1, -1);
 }
 
@@ -313,11 +317,16 @@ bool wxBitmap::SaveFile(const wxString& filename, int type, const wxPalette *pal
 {
   wxBitmapHandler *handler = FindHandler(type);
 
 {
   wxBitmapHandler *handler = FindHandler(type);
 
+#if 0
+  if ( handler == NULL )
+    return FALSE;
+#else
   if ( handler == NULL ) { // try wxImage
     wxImage image( *this );
     if (image.Ok()) return image.SaveFile( filename, type );
     else return FALSE;
   }
   if ( handler == NULL ) { // try wxImage
     wxImage image( *this );
     if (image.Ok()) return image.SaveFile( filename, type );
     else return FALSE;
   }
+#endif
 
   return handler->SaveFile(this, filename, type, palette);
 }
 
   return handler->SaveFile(this, filename, type, palette);
 }
index 6d7c6ebc811e1f289e407b3fe620ee3deead6c92..1d31f29421c07977f0596fab56756aeae45304a7 100644 (file)
@@ -283,7 +283,6 @@ MSWOBJS = ..\msw\$D\accel.obj \
                ..\msw\$D\palette.obj \
                ..\msw\$D\pen.obj \
                ..\msw\$D\penwin.obj \
                ..\msw\$D\palette.obj \
                ..\msw\$D\pen.obj \
                ..\msw\$D\penwin.obj \
-               ..\msw\$D\pnghand.obj \
                ..\msw\$D\printdlg.obj \
                ..\msw\$D\printwin.obj \
                ..\msw\$D\radiobox.obj \
                ..\msw\$D\printdlg.obj \
                ..\msw\$D\printwin.obj \
                ..\msw\$D\radiobox.obj \
@@ -309,6 +308,7 @@ MSWOBJS = ..\msw\$D\accel.obj \
                ..\msw\$D\timer.obj \
                ..\msw\$D\tooltip.obj \
                ..\msw\$D\treectrl.obj \
                ..\msw\$D\timer.obj \
                ..\msw\$D\tooltip.obj \
                ..\msw\$D\treectrl.obj \
+               ..\msw\$D\pnghand.obj \
                ..\msw\$D\utils.obj \
                ..\msw\$D\utilsexc.obj \
                ..\msw\ole\$D\uuid.obj \
                ..\msw\$D\utils.obj \
                ..\msw\$D\utilsexc.obj \
                ..\msw\ole\$D\uuid.obj \
index 3a49e008d6ba02ccaed4fa6057c09f01af798bb6..cb7ceddbda28516b8c27de3bb05388411a8acaeb 100644 (file)
@@ -1836,6 +1836,13 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
             break;
 
         case WM_MOUSEMOVE:
             break;
 
         case WM_MOUSEMOVE:
+           {
+                short x = LOWORD(lParam);
+                short y = HIWORD(lParam);
+
+                processed = HandleMouseMove(x, y, wParam);
+                break;
+            }
         case WM_LBUTTONDOWN:
         case WM_LBUTTONUP:
         case WM_LBUTTONDBLCLK:
         case WM_LBUTTONDOWN:
         case WM_LBUTTONUP:
         case WM_LBUTTONDBLCLK: