WM_MOUSEMOVE correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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:
|
Returns the normal image list.
|
||||||
|
|
||||||
\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}
|
|
||||||
|
|
||||||
\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
|
\pythonnote{The wxPython version of this method accepts no parameters
|
||||||
and returns a Python list of \tt{wxTreeItemId}'s.}
|
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}
|
\membersection{wxTreeCtrl::HitTest}\label{wxtreectrlhittest}
|
||||||
|
|
||||||
\func{long}{HitTest}{\param{const wxPoint\& }{point}, \param{int\& }{flags}}
|
\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
|
Sets the normal image list.
|
||||||
wxIMAGE\_LIST\_STATE.
|
|
||||||
|
|
||||||
\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}
|
\membersection{wxTreeCtrl::SortChildren}\label{wxtreectrlsortchildren}
|
||||||
|
|
||||||
\func{void}{SortChildren}{\param{const wxTreeItemId\&}{ item}}
|
\func{void}{SortChildren}{\param{const wxTreeItemId\&}{ item}}
|
||||||
|
@@ -62,8 +62,6 @@
|
|||||||
#define wxUSE_DRAG_AND_DROP 1
|
#define wxUSE_DRAG_AND_DROP 1
|
||||||
// 0 for no drag and drop
|
// 0 for no drag and drop
|
||||||
|
|
||||||
#define wxUSE_TOOLBAR 1
|
|
||||||
// Define 1 to use toolbar classes
|
|
||||||
#define wxUSE_BUTTONBAR 1
|
#define wxUSE_BUTTONBAR 1
|
||||||
// Define 1 to use buttonbar classes (enhanced toolbar
|
// Define 1 to use buttonbar classes (enhanced toolbar
|
||||||
// for MS Windows)
|
// for MS Windows)
|
||||||
|
@@ -27,13 +27,13 @@ $(OBJDIR):
|
|||||||
server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
|
server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
|
||||||
$(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
|
$(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)
|
$(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
|
||||||
|
|
||||||
client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
|
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) $(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)
|
$(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
|
||||||
|
|
||||||
$(OBJDIR)/server_resources.o: server.rc
|
$(OBJDIR)/server_resources.o: server.rc
|
||||||
|
@@ -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 ) {
|
if ( handler == NULL ) {
|
||||||
wxImage image;
|
wxImage image;
|
||||||
if (!image.LoadFile( filename, type )) return FALSE;
|
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
|
if ( handler == NULL ) { // try wxImage
|
||||||
wxImage image( *this );
|
wxImage image( *this );
|
||||||
if (image.Ok()) return image.SaveFile( filename, type );
|
if (image.Ok()) return image.SaveFile( filename, type );
|
||||||
else return FALSE;
|
else return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return handler->SaveFile(this, filename, type, palette);
|
return handler->SaveFile(this, filename, type, palette);
|
||||||
}
|
}
|
||||||
|
@@ -283,7 +283,6 @@ MSWOBJS = ..\msw\$D\accel.obj \
|
|||||||
..\msw\$D\palette.obj \
|
..\msw\$D\palette.obj \
|
||||||
..\msw\$D\pen.obj \
|
..\msw\$D\pen.obj \
|
||||||
..\msw\$D\penwin.obj \
|
..\msw\$D\penwin.obj \
|
||||||
..\msw\$D\pnghand.obj \
|
|
||||||
..\msw\$D\printdlg.obj \
|
..\msw\$D\printdlg.obj \
|
||||||
..\msw\$D\printwin.obj \
|
..\msw\$D\printwin.obj \
|
||||||
..\msw\$D\radiobox.obj \
|
..\msw\$D\radiobox.obj \
|
||||||
@@ -309,6 +308,7 @@ MSWOBJS = ..\msw\$D\accel.obj \
|
|||||||
..\msw\$D\timer.obj \
|
..\msw\$D\timer.obj \
|
||||||
..\msw\$D\tooltip.obj \
|
..\msw\$D\tooltip.obj \
|
||||||
..\msw\$D\treectrl.obj \
|
..\msw\$D\treectrl.obj \
|
||||||
|
..\msw\$D\pnghand.obj \
|
||||||
..\msw\$D\utils.obj \
|
..\msw\$D\utils.obj \
|
||||||
..\msw\$D\utilsexc.obj \
|
..\msw\$D\utilsexc.obj \
|
||||||
..\msw\ole\$D\uuid.obj \
|
..\msw\ole\$D\uuid.obj \
|
||||||
|
@@ -1836,6 +1836,13 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
|
{
|
||||||
|
short x = LOWORD(lParam);
|
||||||
|
short y = HIWORD(lParam);
|
||||||
|
|
||||||
|
processed = HandleMouseMove(x, y, wParam);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONDOWN:
|
||||||
case WM_LBUTTONUP:
|
case WM_LBUTTONUP:
|
||||||
case WM_LBUTTONDBLCLK:
|
case WM_LBUTTONDBLCLK:
|
||||||
|
Reference in New Issue
Block a user