A method for applying 3D switch panel in an instant messaging tool for rotating an interface window of the instant messaging tool, the method comprising: creating a window, and creating a plane model according to the window; receiving a command for triggering rotation; rotating the plane model to drive the interface window of the instant messaging tool contained in the created window to rotate; wherein the step of creating a plane model specifically is: creating a Viewport3D which has the same size as the created window and covers the created window, the Viewport3D being a component which can display 3D modeling, setting transparency of the Viewport3D as 0, and creating the plane model in the Viewport3D; wherein the step of creating the plane model in the Viewport3D specifically is: creating in a three-dimensional coordinate system of the Viewport3D a rectangle, of which a center coincides with an origin of the coordinate system; calculating a scaling which enables a height of an image of the rectangle in the Viewport3D is the same as a height of the interface window of the instant messaging tool; scaling the rectangle according to the scaling to form the plane model; taking a screenshot of an interface presented to users by the instant messaging tool, and pasting the screenshot on a front of the plane model; taking a screenshot of an interface needed to be presented after the interface window of the instant messaging tool is rotated, and pasting the screenshot of the interface needed to be presented after the interface window of the instant messaging tool is rotated on a back of the plane model. creating a window, and creating a plane model according to the window; receiving a command for triggering rotation; rotating the plane model to drive the interface window of the instant messaging tool contained in the created window to rotate; wherein the step of creating a plane model specifically is: creating a Viewport3D which has the same size as the created window and covers the created window, the Viewport3D being a component which can display 3D modeling, setting transparency of the Viewport3D as 0, and creating the plane model in the Viewport3D; wherein the step of creating the plane model in the Viewport3D specifically is: creating in a three-dimensional coordinate system of the Viewport3D a rectangle, of which a center coincides with an origin of the coordinate system; calculating a scaling which enables a height of an image of the rectangle in the Viewport3D is the same as a height of the interface window of the instant messaging tool; scaling the rectangle according to the scaling to form the plane model; taking a screenshot of an interface presented to users by the instant messaging tool, and pasting the screenshot on a front of the plane model; taking a screenshot of an interface needed to be presented after the interface window of the instant messaging tool is rotated, and pasting the screenshot of the interface needed to be presented after the interface window of the instant messaging tool is rotated on a back of the plane model. creating in a three-dimensional coordinate system of the Viewport3D a rectangle, of which a center coincides with an origin of the coordinate system; calculating a scaling which enables a height of an image of the rectangle in the Viewport3D is the same as a height of the interface window of the instant messaging tool; scaling the rectangle according to the scaling to form the plane model; taking a screenshot of an interface presented to users by the instant messaging tool, and pasting the screenshot on a front of the plane model; taking a screenshot of an interface needed to be presented after the interface window of the instant messaging tool is rotated, and pasting the screenshot of the interface needed to be presented after the interface window of the instant messaging tool is rotated on a back of the plane model.