CN104407865B - The display methods and device of window - Google Patents

The display methods and device of window Download PDF

Info

Publication number
CN104407865B
CN104407865B CN201410693231.5A CN201410693231A CN104407865B CN 104407865 B CN104407865 B CN 104407865B CN 201410693231 A CN201410693231 A CN 201410693231A CN 104407865 B CN104407865 B CN 104407865B
Authority
CN
China
Prior art keywords
window
flash
processing
main
main window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410693231.5A
Other languages
Chinese (zh)
Other versions
CN104407865A (en
Inventor
陈琳琳
赵松
李华东
董少华
温杰
黄少玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201410693231.5A priority Critical patent/CN104407865B/en
Publication of CN104407865A publication Critical patent/CN104407865A/en
Application granted granted Critical
Publication of CN104407865B publication Critical patent/CN104407865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of display methods of window and device, belong to field of computer technology.Methods described includes:When detecting window idsplay order, Flash file and main window data are obtained;Flash window and main window are created, Flash window is used to show the corresponding animated content of Flash file, and main window is used to show main window data;Transparent processing, the Flash window after being handled are carried out to Flash window;Display is merged with the Flash window after processing to main window.The present invention is by when detecting window idsplay order, Flash file and main window data are obtained, Flash window and main window is created, transparent processing is carried out to Flash window, Flash window after being handled, display is merged to main window with the Flash window after processing.Due to two window display contents can be divided to, so that the content for not interfering with main window is shown, and the Flash window after main window and processing can be merged display.Therefore, the display effect of window is preferable.

Description

The display methods and device of window
Technical field
The present invention relates to field of computer technology, the display methods and device of more particularly to a kind of window.
Background technology
With the fast development of computer technology, the pattern when window in computer operation interface is shown is more and more. Wherein, legacy windows pattern is generally rectangular, and pattern is relatively simple., can be by window design into irregular in order to beautify window Shape, so as to show irregular window.
The display methods of two kinds of windows is provided in correlation technique, in first method, the figure that server is sent is obtained Piece resource.Wherein, the region that need not be shown in picture is marked as needing in a kind of special color, picture in the region of display Not comprising the special color.Using the picture got as window background, according to the special color, it will not needed in window background The region of display carries out transparency process, it is achieved thereby that the display to irregular window.
In the second approach, the picture resource that server is sent is obtained.It is right using the picture got as window background Each pixel in window is handled, so as to the region progress transparence that will need not be shown in window.Wherein, in window General child control would generally be included, some functions with display content or can be realized by general child control.For example, can in window Comprising Input, text can be shown in the window by Input.When each pixel is handled in window, General child control can be changed into invalid control, so as to not appear in window.
During the present invention is realized, inventor has found that the above method at least has problems with:
Due in first method, it is not necessary to which the region of display can be unified to carry out transparency process.Accordingly, it would be desirable to show Region and the region that need not show between because of no transition border can be caused obvious, edges of regions can relatively slightly It is rough.In the second approach, when each pixel is handled in window, general child control can be changed into invalid control so that Child control can not be shown in the window, and then be only able to display the single forms not comprising any content.Therefore, the above method The display effect of middle window is not good.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of display methods of window and device.Institute State technical scheme as follows:
According to the first aspect of the embodiment of the present disclosure there is provided a kind of display methods of window, this method includes:
When detecting window idsplay order, Flash file and main window data are obtained;
Flash window and main window are created, the Flash window is used to show in the corresponding animation of the Flash file Hold, the main window is used to show the main window data;
Transparent processing, the Flash window after being handled are carried out to the Flash window;
Display is merged to the Flash window after the main window and the processing.
It is described to the main window and institute with reference in a first aspect, in the first possible implementation of first aspect State the Flash window after processing and merge display, including:
Using the Flash window after the processing as the main window lower windows;
According to the level between the Flash window after the processing and the main window, to the main window and the place Flash window after reason is drawn;
Show the Flash window after the main window drawn and processing.
It is described to the main window and institute with reference in a first aspect, in second of possible implementation of first aspect State after the Flash window after processing merges display, in addition to:
When detecting to any of the Flash window after the main window and processing drag operation, according to institute The dragging track of drag operation is stated, the main window and the display location of the Flash window after the processing is determined;
According to the display location of the Flash window after the main window and the processing, to the main window and the place Flash window after reason re-starts drafting;
Show the Flash window after the main window repainted and processing.
With reference to the first possible implementation of first aspect, in the third possible implementation of first aspect In, the level between the Flash window according to after the processing and the main window, to the main window and the processing After Flash window afterwards is drawn, in addition to:
According to the display size of the Flash window after the display size of the main window and the processing, the place is obtained The display content that Flash window after reason is covered by the main window;
On the main window relevant position, the display content is drawn.
With reference to the first possible implementation of first aspect, in the 4th kind of possible implementation of first aspect In, the level between the Flash window according to after the processing and the main window, to the main window and the processing Flash window afterwards is drawn, including:
At the end of the frame in the Flash file is played, according to the display content of next frame and the main window Between level, drawn to the main window and with the Flash window after the processing.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of display device of window, the device includes:
Acquisition module, for when detecting window idsplay order, obtaining Flash file and main window data;
Creation module, for creating Flash window and main window, the Flash window is used to show the Flash file Corresponding animated content, the main window is used to show the main window data;
Processing module, for carrying out transparent processing, the Flash window after being handled to the Flash window;
First display module, for merging display to the Flash window after the main window and the processing.
With reference to second aspect, in the first possible implementation of second aspect, first display module, bag Include:
Determining unit, for using the Flash window after the processing as the main window lower windows;
First drawing unit, for according to the level between the Flash window after the processing and the main window, to institute Main window is stated to be drawn with the Flash window after the processing;
Display unit, for showing the Flash window after the main window drawn and processing.
With reference to second aspect, in second of possible implementation of second aspect, described device also includes:
Determining module, for the dragging of any of Flash window after detecting to the main window and the processing During operation, according to the dragging track of the drag operation, the main window and the display of the Flash window after the processing are determined Position;
Drafting module, for the display location according to the Flash window after the main window and the processing, to the master Window re-starts drafting with the Flash window after the processing;
Second display module, for showing the Flash window after the main window repainted and processing.
With reference to the first possible implementation of second aspect, in the third possible implementation of second aspect In, first display module also includes:
Acquiring unit, the display chi for the Flash window after the display size according to the main window and the processing It is very little, obtain the display content that the Flash window after the processing is covered by the main window;
Second drawing unit, in the main window relevant position, drawing the display content.
With reference to the first possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, first drawing unit, at the end of being played when the frame in the Flash file, according in the display of next frame Level between appearance and the main window, draws to the main window and with the Flash window after the processing.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By when detecting window idsplay order, obtain Flash file and main window data, create Flash window and Main window, transparent processing, the Flash window after being handled, to main window and the Flash after processing are carried out to Flash window Window merges display.Due to two window display contents can be divided to, so that the content for not interfering with main window is shown, and energy Main window is merged into display with the Flash window after processing.Therefore, the display effect of window is preferable.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of display methods flow chart of window according to an exemplary embodiment.
Fig. 2 is a kind of display methods flow chart of window according to an exemplary embodiment.
Fig. 3 is a kind of structural representation of the display device of window according to an exemplary embodiment.
Fig. 4 is a kind of structural representation of first display module according to an exemplary embodiment.
Fig. 5 is a kind of structural representation of the display device of window according to an exemplary embodiment.
Fig. 6 is a kind of structural representation of first display module according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of terminal according to an exemplary embodiment.
Fig. 8 is the interface schematic diagram that a kind of window according to an exemplary embodiment is shown.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
The embodiments of the invention provide a kind of display methods of window, the method flow bag provided referring to Fig. 1, the present embodiment Include:
101st, when detecting window idsplay order, Flash file and main window data are obtained.
102nd, Flash window and main window are created, Flash window is used to show the corresponding animated content of Flash file, main Window is used to show main window data.
103rd, transparent processing, the Flash window after being handled are carried out to Flash window.
104th, display is merged with the Flash window after processing to main window.
Method provided in an embodiment of the present invention, by when detecting window idsplay order, obtaining Flash file and main window Mouth data, create Flash window and main window, and transparent processing is carried out to Flash window, and the Flash window after being handled is right Main window merges display with the Flash window after processing.Due to two window display contents can be divided to, so as to not interfere with The content of main window is shown, and the Flash window after main window and processing can be merged into display.Therefore, the display of window Effect is preferable.
As a kind of alternative embodiment, display is merged with the Flash window after processing to main window, including:
Using the Flash window after processing as main window lower windows;
According to the level between the Flash window and main window after processing, main window is entered with the Flash window after processing Row is drawn;
Show the Flash window after the main window drawn and processing.
As a kind of alternative embodiment, main window and the Flash window after processing are merged after display, also wrapped Include:
When detecting to any of the Flash window after main window and processing drag operation, according to drag operation Track is dragged, main window and the display location of the Flash window after processing is determined;
According to main window and the display location of the Flash window after processing, to main window and the Flash window weight after processing Newly drawn;
Show the Flash window after the main window repainted and processing.
As a kind of alternative embodiment, according to the level between the Flash window and main window after processing, to main window with After Flash window after processing is drawn, in addition to:
According to the display size of the Flash window after the display size of main window and processing, the Flash windows after acquisition processing The display content that mouth is covered by main window;
On main window relevant position, display content is drawn.
As a kind of alternative embodiment, according to the level between the Flash window and main window after processing, to main window with Flash window after processing is drawn, including:
At the end of the frame in Flash file is played, according to the layer between the display content and main window of next frame It is secondary, drawn to main window and with the Flash window after processing.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention, herein no longer using any combination Repeat one by one.
The embodiments of the invention provide a kind of display methods of window, referring to Fig. 2, with reference to the content in above-described embodiment, So that executive agent is terminal as an example, the method that the present embodiment is provided is illustrated, the method flow that the present embodiment is provided Including:
201st, when detecting window idsplay order, Flash file and main window data are obtained.
The window can be the windows such as application window, web page windows, and the present embodiment does not make specific to the type of window Limit.When user launches application, opening webpage or starting-window, end side can generate corresponding window idsplay order. For example, client is on startup, the corresponding window idsplay order of news homepage window can be generated.The corresponding content of Flash file Can be static picture, or dynamic animation, the content that the present embodiment is not included to Flash file makees specific limit It is fixed.The Flash file can also include some web page interlinkages related to picture or animated content etc., click on and redirect for user.
The present embodiment does not make specific restriction to the mode for obtaining Flash file and main window data, includes but is not limited to:To Server sends data acquisition request;Flash file and main window data that the reception server is returned according to request of data.Its In, this can be not especially limited comprising the corresponding mark of window for needing to show, the present embodiment in data acquisition request.
For example, using the window of needs display as the corresponding news homepage window of client, main window data are news data, The content of Flash file is exemplified by advertisement moving picture.Terminal can send to server and wrap when detecting Netscape News idsplay order The data acquisition request of the window ID of homepage containing news.Server, can root after the data acquisition request of terminal transmission is received According to the corresponding mark of news homepage window in data acquisition request, the news data on the day of acquisition is new on the day of being returned to terminal Hear data.In addition, terminal can also deliver advertisement to server transmission obtains request, server is receiving dispensing advertisement acquisition After request, the advertisement moving picture delivered is needed on the day of obtaining, the advertisement moving picture delivered is needed on the day of being returned to terminal.Wherein, terminal The opportunity for sending data acquisition request to server and delivering advertisement acquisition request can set sequencing according to demand.Certainly, It can also send data acquisition request to server simultaneously and deliver advertisement and obtain request, the present embodiment does not make specific limit to this It is fixed.Server returned to terminal on the day of news data and the same day need the opportunity of advertisement moving picture delivered also to set according to demand Sequencing is put, certainly, server can also be while news data and the same day on the day of being returned to terminal need the advertisement delivered Animation, the present embodiment is also not especially limited to this.
202nd, Flash window and main window are created, Flash window is used to show the corresponding animated content of Flash file, main Window is used to show main window data.
The present embodiment does not make specific restriction to the mode for creating Flash window, includes but is not limited to:Set up an OLE (Object Linking and Embedding, object connection and insertion) control, is used as the container of Flash file;By Flash File is directed into translation and compiling environment, generates corresponding type statement file;Pass through the function creation added in OLE controls Flash window.Wherein, the corresponding type statement file of Flash file includes Flash interface.Connect by generating comprising Flash The type statement file of mouth, can subsequently obtain the content that Flash window needs to show by Flash interfaces.
For example, when setting up OLE controls, can be realized by following code:
Wherein, TObj is the interface of AvtiveX objects, as OLE controls.
When Flash file is directed into translation and compiling environment, it can be imported by #import orders, particular content can It is as follows:
#import"c:\\windows\\system32\\macromed\\flash\\flash.ocx"named_guids
Wherein, flash.ocx is the Flash file that terminal is got.
"c:Windows system32 macromed flash flash.ocx " be terminal get Flash Store path after file.
By being compiled to flash.ocx, flash.tlh files can be generated.Wherein, wrapped in flash.tlh files Flash interface is contained.
CreateFlashWindow functions are added in Tobj, wherein, OleCreate functions can be called in the function, Flash window can be created by OleCreate, the code implemented can be as follows:
Hr=OleCreate (m_CLSID, IID_IOleObject, OLERENDER_DRAW,
0,(IOleClientSite*)this,(IStorage*)this,(void**)&m_lpO)
Wherein, OLERENDER_DRAW and TObj is used as the input parameter of IoleClientSite interfaces, and conduct The parameter of Istorage interfaces is incoming.The return value that OleCreate functions are obtained can be stored into m_lpO variables, m_lpO be with The associated ole object of Flash controls.
Due to subsequently needing to obtain the content that Flash window needs to show by Flash interfaces, and m_lpO is and Flash The associated ole object of control.Therefore, Flash interfaces can be obtained by m_lpO, the code implemented can be as follows:
Hr=m_lpO->QueryInterface(IShockwaveFlash,(void**)&m_lpControl);
Due to subsequently needing to show Flash object, therefore, IviewObject or IviewObjectEx can be obtained Interface.Wherein, it can first attempt to obtain IviewObject interfaces, after the failure of IviewObject interfaces is obtained, can obtain again IviewObjectEx interfaces, the code implemented can be as follows:
Further, since can be subsequently managed to Flash object, therefore, IOleInPlaceObject or IID_ can be obtained IOleInPlaceObjectWindowless interfaces.Wherein, it can first attempt to obtain IOleInPlaceObject interfaces, work as acquisition After the failure of IOleInPlaceObject interfaces, IID_IOleInPlaceObjectWindowless interfaces can be obtained again, specifically The code of realization can be as follows:
It should be noted that creating the process that main window also refers to above-mentioned establishment Flash window, the present embodiment is not to wound The mode for building main window makees specific restriction.For example, can equally pass through OleCreate function creation main windows.
203rd, transparent processing, the Flash window after being handled are carried out to Flash window.
Mode on carrying out transparent processing to Flash window, the present embodiment is not especially limited to this, including but is not limited In:Using Flash window as can cascading windows, window is set to transparent style;According to Flash file present frame, generation pair The bitmap answered;The bitmap of generation is associated with mutually compatible DC (Device Content, device context) class, will be with position The container that the compatible DC of figure phase is used as storage and drawn.
Wherein, Flash window can be set to transparent wind by the way that Flash window is set into WS_EX_LAYERED attributes Lattice, the present embodiment is not especially limited to this., therefore, can due to subsequently needing by different level to show Flash window and main window Flash window is set to WS_POPUP attributes, thus using Flash window as can cascading windows, the present embodiment to this not yet Make specific limit.
Further, since follow-up need to show the content that Flash file is included in the Flash window of transparence, therefore, can The corresponding bitmap of Flash file present frame is generated by CreateDIBSection functions, the present embodiment does not make specific limit to this It is fixed.Simultaneously as the bitmap of generation is associated with mutually compatible DC classes, so as to can subsequently call the related drafting of DC classes Function is drawn in Flash window to bitmap.
By carrying out transparent processing to Flash window, single form when can avoid the window from showing, so as to realize to not The window of rule is shown, reaches more gorgeous effect, and then beautify window.
204th, using the Flash window after processing as main window lower windows.
The present embodiment not to making specific restriction using the Flash window after processing as the mode of the lower windows of main window, Including but not limited to:The display order of main window is set to show in the superiors.
For example, when receiving the WM_WINDOWPOSCHANGED message of main window, will be main by SetWindowPos functions The display order of window is set to topmost one layer, and the code of SetWindowPos functions can be as follows:
Wherein, hWnd variables can input Flash window handle, and hWndInsertAfter can input main window handle, " _ HWND in In_opt_HWND hWndInsertAfter " can be inputted as " HWND_TOP ", so that by the display order of main window Set for topmost one layer, Flash window ZOrder is set to one layer below main window.
205th, according to the level between the Flash window and main window after processing, to main window and the Flash windows after processing Mouth is drawn.
The present embodiment is not to according to the level between the Flash window and main window after processing, after main window and processing The mode drawn of Flash window make specific restriction, include but is not limited to:By calling the related drafting function of DC classes to exist Bitmap is drawn in Flash window, by calling the drafting function of the corresponding container class of main window to paint main window System.
For example, when being drawn in Flash window to bitmap, can be by calling drafting function OleDraw to Flash windows The content shown in mouthful is drawn, and the code implemented can be as follows:
Hr=OleDraw (lpV, DVASPECT_CONTENT, hdcDraw , &rTotal);
Wherein, lpV is the IviewObject interfaces that Flash controls are controlled, and hdcDraw is the relevant parameter of off screen painting canvas, RTotal is the relevant parameter of drawing area.In addition, drafting function OleDraw can be by calling IviewObject interface classes Member function Draw is drawn to the content shown in Flash window.
It should be noted that the Flash content that Flash window is shown can be static, or dynamic.When When Flash content is static state, the content in Flash window need to only be drawn once.When Flash content is dynamic, due to Flash file is different from per content frame, then needs to re-start drafting per content frame to Flash file, with to Flash content It is updated.For said circumstances, at the end of the frame in Flash file is played, according to the display content of next frame and Level between main window, draws to main window with the Flash window after processing.Wherein, after drawing main window and handling The process of Flash window refer to the above, here is omitted.
For example, when Flash content needs actively to update, IOleInPlaceSiteEx can be called:: InvalidateRect or IOleInPlaceSiteEx::The two functions of InvalidateRgn, are called in the two functions Oledraw functions, which are realized, re-starts drafting to Flash content.
Further, since lower windows of the Flash window as main window, therefore, main window may shelter from Flash windows The content of mouth part display.Now, main window can cause to be connected with the content shown by Flash window because of no transition Property is poor.For said circumstances, a kind of method that Flash window content is drawn on main window is present embodiments provided, including But it is not limited to:According to the display size of the Flash window after the display size of main window and processing, the Flash after acquisition processing The display content that window is covered by main window;On main window relevant position, display content is drawn.
For example, when Flash window draws Flash content, can obtain what the Flash window after processing was covered by main window Display content, capped display content is plotted in the DC of main window, or be updated directly into the memory bitmap of main window In.
The display content covered by the Flash window after the drawing modification on main window by main window, can allow master Window appears more like an entirety with Flash window, so that the display effect of whole forms is more attractive in appearance.
206th, the Flash window after the main window drawn and processing is shown.
The mode of Flash window after main window that the present embodiment is not drawn to display and processing makees specific restriction, including But it is not limited to:Flash window after the main window drawn by display window function pair and processing is shown.
For example, the Flash window after being handled by UpdateLayerdWindow function pairs is shown, pass through WM_ The corresponding display window function pair main window of PAINT message is shown.
It should be noted that above-mentioned steps 204 to step 206 is to be closed main window with the Flash window after processing And the process shown, by the way that main window is merged with the Flash window after handling, Flash window and main window can be allowed Look like a window in appearance, it is achieved thereby that to the landscaping effect of main window.
In addition, after display is merged with the Flash window after processing to main window, user may be needed to main window Or Flash window is dragged, and main window needs to merge display with the Flash window after processing.For above-mentioned feelings Shape, the present embodiment additionally provides a kind of window display method dragged after window, includes but is not limited to:When detecting to main window During with any of the Flash window after processing drag operation, according to the dragging track of drag operation, main window and processing are determined The display location of Flash window afterwards;According to main window and the display location of the Flash window after processing, to main window and place Flash window after reason re-starts drafting;Show the Flash window after the main window repainted and processing.
For example, can main window can drag area and processing after Flash window can drag area, by WM_ LBUTTONDOWN events are set to mouse down state, and WM_MOUSEMOVE events are set into mouse drag state.When in master Window can after drag area or processing Flash window can be detected simultaneously by drag area WM_LBUTTONDOWN events and During WM_MOUSEMOVE events, it may be determined that currently window is dragged, so as to use three below API (Application Programming Interface, application programming interface) function BeginDeferWindowPos (), DeferWindowPos () and EndDeferWindow (), disposable window is done to main window and the Flash window of floating Mouth is mobile, and is not in the situation that window flicker or main window are mutually disengaged with the Flash window after processing.
It should be noted that due to when showing Flash window, having used UpdateLayerdWindow functions so that The corresponding Flash controls of Flash window can not receive WM_PAINT message again, so that Flash window can not be entered to mouse control Row response.For said circumstances, present embodiments provide a kind of corresponding Flash controls reception mouse control of Flash window and disappear The method of breath, includes but is not limited to:Floating window is set up in Flash window, mouse control message is detected by floating window;Floating window is detected After mouse control message, mouse control message is forwarded to the corresponding Flash controls of Flash window by relevant interface.
For example, SubClass floating windows can be set up in Flash window, SubClass floating windows detect mouse control message Afterwards, mouse control message is forwarded by WindowProc functions, so that the IID_ of Flash controls IOleInPlaceObjectWindowless interfaces can receive the mouse control message of forwarding.Flash controls receive mouse After control message, the Flash window of display can be controlled according to mouse control message, the code implemented can institute as follows Show:
By the above method Flash window can be allowed to respond mouse control message, so as to facilitate user to Flash Window is dragged, changes the operation such as shape.
Further, since the corresponding Flash controls of Flash window may also need to be communicated with host program, to realize Information exchange between host program.For said circumstances, it is corresponding that the present embodiment additionally provides a kind of Flash window The method that Flash controls are communicated with host program, includes but is not limited to:By performing main frame sort command, Flash windows are realized Information exchange between the corresponding Flash controls of mouth and host program.
For example, can be by calling IDispatch::Invoke functions, thereby using FSCommand or FlashCall orders Flash controls are allowed to be communicated with corresponding host program, the code implemented can be as follows:
The corresponding Flash controls of Flash window are by using FSCommand or FlashCall orders and corresponding host Program is communicated, so as to meet the interaction demands such as advertisement interaction.For example, clicking on display in Flash window when detecting user Advertisement when, by FSCommand or FlashCall orders can to web browser program send information, to open the advertisement Details webpage.
For example, in fig. 8, above a secondary figure be main window and Flash window former interface schematic diagram, below a pair figure be The interface schematic diagram of main window and Flash window in the method that the present embodiment is provided.
Method provided in an embodiment of the present invention, by when detecting window idsplay order, obtaining Flash file and main window Mouth data, create Flash window and main window, and transparent processing is carried out to Flash window, and the Flash window after being handled is right Main window merges display with the Flash window after processing.Due to two window display contents can be divided to, so as to not interfere with The content of main window is shown, and the Flash window after main window and processing can be merged into display.Therefore, the display of window Effect is preferable.
The embodiments of the invention provide a kind of display device of window, the device is used for the window for performing above-described embodiment offer The display methods of mouth.Referring to Fig. 3, the device includes:
Acquisition module 301, for when detecting window idsplay order, obtaining Flash file and main window data;
Creation module 302, for creating Flash window and main window, the Flash window is used to show the Flash The corresponding animated content of file, the main window is used to show the main window data;
Processing module 303, for carrying out transparent processing, the Flash window after being handled to the Flash window;
First display module 304, for merging display to the Flash window after the main window and the processing.
As a kind of alternative embodiment, referring to Fig. 4, the first display module 304, including:
Determining unit 3041, for using the Flash window after the processing as the main window lower windows;
First drawing unit 3042, for according to the level between the Flash window after the processing and the main window, The main window is drawn with the Flash window after the processing;
Display unit 3043, for showing the Flash window after the main window drawn and processing.
As a kind of alternative embodiment, referring to Fig. 5, the device also includes:
Determining module 305, is dragged for any of Flash window after detecting to the main window and the processing During dynamic operation, according to the dragging track of the drag operation, the aobvious of the Flash window after the main window and the processing is determined Show position;
Drafting module 306, for the display location according to the Flash window after the main window and the processing, to institute State main window and re-start drafting with the Flash window after the processing;
Second display module 307, for showing the Flash window after the main window repainted and processing.
As a kind of alternative embodiment, referring to Fig. 6, the first display module 304, in addition to:
Acquiring unit 3044, for the aobvious of the Flash window after the display size according to the main window and the processing Show size, obtain the display content that the Flash window after the processing is covered by the main window;
Second drawing unit 3045, in the main window relevant position, drawing the display content.
It is used as a kind of alternative embodiment, the first drawing unit 3042, for playing knot when the frame in the Flash file Shu Shi, according to the level between the display content of next frame and the main window, to the main window and with after the processing Flash window drawn.
Device provided in an embodiment of the present invention, by when detecting window idsplay order, obtaining Flash file and main window Mouth data, create Flash window and main window, and transparent processing is carried out to Flash window, and the Flash window after being handled is right Main window merges display with the Flash window after processing.Due to two window display contents can be divided to, so as to not interfere with The content of main window is shown, and the Flash window after main window and processing can be merged into display.Therefore, the display of window Effect is preferable.
Fig. 7 is a kind of block diagram of terminal 700 according to an exemplary embodiment.For example, terminal 700 can be mobile Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, Personal digital assistant etc..
Reference picture 7, terminal 700 can include following one or more assemblies:Processing assembly 702, memory 704, power supply Component 706, multimedia groupware 707, audio-frequency assembly 710, I/O (Input/Output, input/output) interface 712, sensor group Part 714, and communication component 716.
The integrated operation of the usual control terminal 700 of processing assembly 702, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 702 can refer to including one or more processors 720 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 702 can include one or more modules, just Interaction between processing assembly 702 and other assemblies.For example, processing assembly 702 can include multi-media module, it is many to facilitate Interaction between media component 707 and processing assembly 702.
Memory 704 is configured as storing various types of data supporting the operation in terminal 700.These data are shown Example includes the instruction of any application program or method for being operated in terminal 700, and contact data, telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 706 provides electric power for the various assemblies of terminal 700.Power supply module 706 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal 700.
Multimedia groupware 707 is included in the screen of one output interface of offer between terminal 700 and user.In some realities Apply in example, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP, and (Touch Panel are touched Touch panel).If screen includes touch panel, screen may be implemented as touch-screen, to receive the input signal from user. Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Touch sensor Can not only sensing touch or sliding action border, but also the detection duration related with touch or slide and pressure Power.In certain embodiments, multimedia groupware 707 includes a front camera and/or rear camera.At terminal 700 In operator scheme, such as screening-mode or during video mode, front camera and/or rear camera can receive many matchmakers of outside Volume data.Each front camera and rear camera can be a fixed optical lens systems or with focal length and optics Zoom capabilities.
Audio-frequency assembly 710 is configured as output and/or input audio signal.For example, audio-frequency assembly 710 includes a MIC (Microphone, microphone), when terminal 700 is in operator scheme, such as call model, logging mode and speech recognition mode When, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory 704 Or sent via communication component 716.In certain embodiments, audio-frequency assembly 710 also includes a loudspeaker, for exporting audio Signal.
I/O interfaces 712 is provide interface between processing assembly 702 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 714 includes one or more sensors, and the state for providing various aspects for terminal 700 is commented Estimate.For example, sensor cluster 714 can detect opening/closed mode of terminal 700, the relative positioning of component, such as component For the display and keypad of terminal 700, sensor cluster 714 can also detect the position of 700 1 components of terminal 700 or terminal Put change, the existence or non-existence that user contacts with terminal 700, the temperature of the orientation of terminal 700 or acceleration/deceleration and terminal 700 Change.Sensor cluster 714 can include proximity transducer, be configured in not any physical contact near detection The presence of object.Sensor cluster 714 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, CMOS) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 714 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between terminal 700 and other equipment.Terminal 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 716 also includes NFC (Near Field Communication, near-field communication) Module, to promote junction service.For example, NFC module can based on RFID (Radio Frequency Identification, Radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, terminal 700 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP is (at Digital signal Processor, data signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, PLD), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, for performing corresponding to above-mentioned Fig. 1 or Fig. 2 The display methods for a kind of window that any embodiment is provided in embodiment.
Terminal provided in an embodiment of the present invention, by when detecting window idsplay order, obtaining Flash file and main window Mouth data, create Flash window and main window, and transparent processing is carried out to Flash window, and the Flash window after being handled is right Main window merges display with the Flash window after processing.Due to two window display contents can be divided to, so as to not interfere with The content of main window is shown, and the Flash window after main window and processing can be merged into display.Therefore, the display of window Effect is preferable.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 704 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 720 of terminal 700.For example, Non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage are set It is standby etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is by the computing device of terminal When so that terminal is able to carry out a kind of display methods of window, and method includes:
When detecting window idsplay order, Flash file and main window data are obtained;
Flash window and main window are created, the Flash window is used to show in the corresponding animation of the Flash file Hold, the main window is used to show the main window data;
Transparent processing, the Flash window after being handled are carried out to the Flash window;
Display is merged to the Flash window after the main window and the processing.
Computer-readable recording medium provided in an embodiment of the present invention, by when detecting window idsplay order, obtaining Flash file and main window data, create Flash window and main window, carry out transparent processing to Flash window, are handled Flash window afterwards, display is merged to main window with the Flash window after processing.It is interior due to two windows can be divided to show Hold, so that the content for not interfering with main window is shown, and main window and the Flash window after processing can be merged aobvious Show.Therefore, the display effect of window is preferable.
It should be noted that:The display device for the window that above-described embodiment is provided is in display window, only with above-mentioned each work( The division progress of energy module is for example, in practical application, as needed can distribute above-mentioned functions by different functions Module is completed, i.e., the internal structure of device is divided into different functional modules, described above all or part of to complete Function.In addition, the display device of window and the display methods embodiment of window that above-described embodiment is provided belong to same design, its The process of implementing refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (6)

1. a kind of display methods of window, it is characterised in that methods described includes:
When detecting window idsplay order, Flash file and main window data are obtained;
Flash window and main window are created, the Flash window is used to show the corresponding animated content of the Flash file, institute Stating main window is used to show the main window data;
Transparent processing, the Flash window after being handled are carried out to the Flash window;
Using the Flash window after the processing as the main window lower windows;
According to the level between the Flash window after the processing and the main window, after the main window and the processing Flash window drawn;
According to the display size of the Flash window after the display size of the main window and the processing, obtain after the processing The display content that is covered by the main window of Flash window;
On the main window relevant position, the display content is drawn;
Show the Flash window after the main window drawn and processing.
2. according to the method described in claim 1, it is characterised in that the Flash after the main window of the display drafting and processing After window, in addition to:
When detecting to any of the Flash window after the main window and processing drag operation, dragged according to described The dragging track of dynamic operation, determines the main window and the display location of the Flash window after the processing;
According to the display location of the Flash window after the main window and the processing, after the main window and the processing Flash window re-start drafting;
Show the Flash window after the main window repainted and processing.
3. according to the method described in claim 1, it is characterised in that the Flash window according to after the processing with it is described Level between main window, draws to the main window with the Flash window after the processing, including:
At the end of the frame in the Flash file is played, according between the display content of next frame and the main window Level, draws to the main window and with the Flash window after the processing.
4. a kind of display device of window, it is characterised in that described device includes:
Acquisition module, for when detecting window idsplay order, obtaining Flash file and main window data;
Creation module, for creating Flash window and main window, the Flash window is used to show the Flash file correspondence Animated content, the main window be used for show the main window data;
Processing module, for carrying out transparent processing, the Flash window after being handled to the Flash window;
Determining module, for using the Flash window after the processing as the main window lower windows;
First drafting module, for according to the level between the Flash window after the processing and the main window, to the master Window is drawn with the Flash window after the processing;
Acquisition module, for the display size of the Flash window after the display size according to the main window and the processing, is obtained The display content for taking the Flash window after the processing to be covered by the main window;
Second drafting module, in the main window relevant position, drawing the display content.
5. device according to claim 4, it is characterised in that described device also includes:
Determining module, for any of Flash window after detecting to the main window and processing drag operation When, according to the dragging track of the drag operation, determine the main window and the display position of the Flash window after the processing Put;
Drafting module, for the display location according to the Flash window after the main window and the processing, to the main window Drafting is re-started with the Flash window after the processing;
Second display module, for showing the Flash window after the main window repainted and processing.
6. device according to claim 4, it is characterised in that first drafting module, for when the Flash file In a frame play at the end of, according to the level between the display content of next frame and the main window, to the main window And drawn with the Flash window after the processing.
CN201410693231.5A 2014-11-25 2014-11-25 The display methods and device of window Active CN104407865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410693231.5A CN104407865B (en) 2014-11-25 2014-11-25 The display methods and device of window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410693231.5A CN104407865B (en) 2014-11-25 2014-11-25 The display methods and device of window

Publications (2)

Publication Number Publication Date
CN104407865A CN104407865A (en) 2015-03-11
CN104407865B true CN104407865B (en) 2017-10-10

Family

ID=52645498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410693231.5A Active CN104407865B (en) 2014-11-25 2014-11-25 The display methods and device of window

Country Status (1)

Country Link
CN (1) CN104407865B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293314B (en) 2015-05-30 2020-07-14 腾讯科技(深圳)有限公司 Display control method, device and terminal
CN107027068B (en) * 2016-02-01 2021-04-13 斑马智行网络(香港)有限公司 Rendering method, decoding method, and method and device for playing multimedia data stream
CN105843622A (en) * 2016-03-25 2016-08-10 广州华多网络科技有限公司 Animation processing method and device
CN106502667B (en) * 2016-10-18 2019-09-03 广州视睿电子科技有限公司 A kind of rendering method and device
CN108228036B (en) * 2016-12-09 2021-03-12 武汉斗鱼网络科技有限公司 Method and device for realizing window menu in windows
CN110503702A (en) * 2019-08-19 2019-11-26 武汉蓝星科技股份有限公司 A kind of full liquid crystal digital meter hardware figure layer delamination process and device
WO2021174662A1 (en) * 2020-03-04 2021-09-10 海信视像科技股份有限公司 Display device and display method for operation guide

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635789A (en) * 2003-12-30 2005-07-06 中国科学院自动化研究所 Method for automatic cut-in of virtual advertisement in sports program based on event detection
CN1928910A (en) * 2006-09-18 2007-03-14 何金鑫 Method for improving prevalence effectiveness of internet advertisements
CN101159819A (en) * 2007-11-09 2008-04-09 深圳市迅雷网络技术有限公司 Method and device of inter cut Flash in online video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635789A (en) * 2003-12-30 2005-07-06 中国科学院自动化研究所 Method for automatic cut-in of virtual advertisement in sports program based on event detection
CN1928910A (en) * 2006-09-18 2007-03-14 何金鑫 Method for improving prevalence effectiveness of internet advertisements
CN101159819A (en) * 2007-11-09 2008-04-09 深圳市迅雷网络技术有限公司 Method and device of inter cut Flash in online video

Also Published As

Publication number Publication date
CN104407865A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104407865B (en) The display methods and device of window
US11675391B2 (en) User terminal device for displaying contents and methods thereof
US10048824B2 (en) User terminal device and display method thereof
US20240053879A1 (en) Object Drag Method and Device
CN104246683B (en) The object control method, apparatus and its computer readable recording medium executed in the device for including transparent display
CN102118651B (en) Display device and method of displaying content on display device
US20160357221A1 (en) User terminal apparatus and method of controlling the same
EP3686723A1 (en) User terminal device providing user interaction and method therefor
CN107077273A (en) The utility command control of small screen displays
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN106255948A (en) User terminal apparatus and control method thereof
US10353988B2 (en) Electronic device and method for displaying webpage using the same
WO2023005828A1 (en) Message display method and apparatus, and electronic device
WO2022242542A1 (en) Application icon management method and electronic device
KR20140102386A (en) Display apparatus and control method thereof
CN107168969A (en) A kind of page elements control method, device and electronic equipment
KR20150102261A (en) Contents editing method using thouchscreen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Patentee after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Patentee before: Guangzhou KuGou Networks Co., Ltd.

CP02 Change in the address of a patent holder