CN104407865A - Method and device for displaying window - Google Patents

Method and device for displaying window Download PDF

Info

Publication number
CN104407865A
CN104407865A CN201410693231.5A CN201410693231A CN104407865A CN 104407865 A CN104407865 A CN 104407865A CN 201410693231 A CN201410693231 A CN 201410693231A CN 104407865 A CN104407865 A CN 104407865A
Authority
CN
China
Prior art keywords
window
flash
main window
described main
display
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.)
Granted
Application number
CN201410693231.5A
Other languages
Chinese (zh)
Other versions
CN104407865B (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 method and a device for displaying a window, and belongs to the technical field of computers. The method comprises the following steps: when a window display order is detected, acquiring a Flash file and main window data; creating a Flash window and a main window, wherein the Flash window is used for displaying animation content corresponding to the Flash file, and the main window is used for displaying the main window date; perform transparent treatment on the Flash window to obtained the processed Flash window; and combing the main window and the processed Flash window, and displaying. According to the method and the device for displaying the window, when the window display order is detected, Flash file and the main window data are acquired, the Flash window and the main window are created, the Flash window are subject to transparent treatment to obtain the processed Flash window, and the main window and the processed Flash window are combined for displaying. Because two windows are used for displaying, the content displayed by the main window will not be affected, and the main window and the processed Flash window can be combined for displaying. Therefore, a window display effect is excellent.

Description

The display packing of window and device
Technical field
The present invention relates to field of computer technology, particularly a kind of display packing of window and device.
Background technology
Along with the fast development of computer technology, the pattern when window in computer operation interface shows gets more and more.Wherein, legacy windows pattern is generally rectangle, and pattern is more single.In order to beautify window, window design can be become irregular shape, thus demonstrating irregular window.
Provide the display packing of two kinds of windows in correlation technique, in first method, obtain the picture resource that server sends.Wherein, in picture, do not need the region shown to be marked as a kind of special color, need in picture not comprise this special color in the region shown.Using the picture that gets as window background, according to this special color, the region shown will do not needed in window background to carry out Vitrification management, thus achieve the display to irregular window.
In the second approach, the picture resource that server sends is obtained.Using the picture that gets as window background, each pixel in window is processed, thus transparence can be carried out by not needing in window the region shown.Wherein, in window, usually general child control can be comprised, can displaying contents or realize some functions by general child control.Such as, in window, can Input be comprised, text can be shown in the window by Input.When each pixel processes in window, general child control can become invalid control, thus does not show in the window.
Realizing in process of the present invention, inventor finds that said method at least exists following problem:
Due in first method, do not need the region shown can unify to carry out Vitrification management.Therefore, understand between the region needing the region and not needing of display show and cause border obvious because not having transition, edges of regions can be more coarse.In the second approach, when each pixel processes in window, general child control can become invalid control, and child control can not be shown in the window, and then can only show the single forms not comprising any content.Therefore, in said method, the display effect of window is not good.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of display packing and device of window.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, provide a kind of display packing of window, the method comprises:
When window idsplay order being detected, obtain Flash file and main window data;
Create Flash window and main window, described Flash window is for showing animated content corresponding to described Flash file, and described main window is for showing described main window data;
Transparent processing is carried out to described Flash window, obtains the Flash window after processing;
Carry out merging to the Flash window after described main window and described process to show.
In conjunction with first aspect, in the first possible implementation of first aspect, describedly merging carried out to the Flash window after described main window and described process show, comprising:
Using the lower windows of the Flash window after described process as described main window;
According to the Flash window after described process and the level between described main window, the Flash window after described main window and described process is drawn;
The main window that display is drawn and the Flash window after processing.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, describedly carry out after merging shows, also comprising to the Flash window after described main window and described process:
When any one drag operation in the Flash window after to described main window and described process being detected, according to the dragging track of described drag operation, determine the display position of the Flash window after described main window and described process;
According to the display position of the Flash window after described main window and described process, drafting is re-started to the Flash window after described main window and described process;
Show the Flash window after the main window and process repainted.
In conjunction with the first possible implementation of first aspect, in the third possible implementation of first aspect, described according to the Flash window after described process and the level between described main window, after the Flash window after described main window and described process is drawn, also comprise:
According to the display size of the Flash window after the display size of described main window and described process, obtain the displaying contents that the Flash window after described process is covered by described main window;
On described main window relevant position, draw described displaying contents.
In conjunction with the first possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described according to the Flash window after described process and the level between described main window, the Flash window after described main window and described process is drawn, comprising:
At the end of the frame in described Flash file is play, according to the level between the displaying contents of next frame and described main window, draw to described main window and with the Flash window after described process.
According to the second aspect of disclosure embodiment, provide a kind of display device of window, this device comprises:
Acquisition module, for when window idsplay order being detected, obtains Flash file and main window data;
Creation module, for creating Flash window and main window, described Flash window is for showing animated content corresponding to described Flash file, and described main window is for showing described main window data;
Processing module, for carrying out transparent processing to described Flash window, obtains the Flash window after processing;
First display module, shows for carrying out merging to the Flash window after described main window and described process.
In conjunction with second aspect, in the first possible implementation of second aspect, described first display module, comprising:
Determining unit, for using the lower windows of the Flash window after described process as described main window;
First drawing unit, for according to the Flash window after described process and the level between described main window, draws the Flash window after described main window and described process;
Display unit, for showing the main window of drafting and the Flash window after processing.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described device also comprises:
Determination module, for when any one drag operation in the Flash window after to described main window and described process being detected, according to the dragging track of described drag operation, determines the display position of the Flash window after described main window and described process;
Drafting module, for the display position according to the Flash window after described main window and described process, re-starts drafting to the Flash window after described main window and described process;
Second display module, for showing the Flash window after the main window that repaints and process.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of second aspect, described first display module also comprises:
Acquiring unit, for the display size according to the Flash window after the display size of described main window and described process, obtains the displaying contents that the Flash window after described process is covered by described main window;
Second drawing unit, in described main window relevant position, draws described displaying contents.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described first drawing unit, at the end of playing when the frame in described Flash file, according to the level between the displaying contents of next frame and described main window, draw to described main window and with the Flash window after described process.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By when window idsplay order being detected, obtain Flash file and main window data, create Flash window and main window, transparent processing is carried out to Flash window, obtain the Flash window after processing, merging is carried out to the Flash window after main window and process and shows.Due to two window displaying contents can be divided, thus the content display of main window can not be had influence on, and the Flash window after main window and process can be carried out merging and shown.Therefore, the display effect of window is better.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the display packing process flow diagram of a kind of window according to an exemplary embodiment.
Fig. 2 is the display packing process flow diagram of a kind of window according to an exemplary embodiment.
Fig. 3 is the structural representation of the display device of a kind of window according to an exemplary embodiment.
Fig. 4 is the structural representation of a kind of first display module according to an exemplary embodiment.
Fig. 5 is the structural representation of the display device of a kind of window according to an exemplary embodiment.
Fig. 6 is the structural representation of a kind of first display module according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of terminal according to an exemplary embodiment.
Fig. 8 is the interface schematic diagram of a kind of window display according to an exemplary embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiments provide a kind of display packing of window, see Fig. 1, the method flow that the present embodiment provides comprises:
101, when window idsplay order being detected, Flash file and main window data are obtained.
102, create Flash window and main window, Flash window is for showing animated content corresponding to Flash file, and main window is for showing main window data.
103, transparent processing is carried out to Flash window, obtain the Flash window after processing.
104, carry out merging to the Flash window after main window and process to show.
The method that the embodiment of the present invention provides, by when window idsplay order being detected, obtain Flash file and main window data, create Flash window and main window, transparent processing is carried out to Flash window, obtain the Flash window after processing, merging is carried out to the Flash window after main window and process and shows.Due to two window displaying contents can be divided, thus the content display of main window can not be had influence on, and the Flash window after main window and process can be carried out merging and shown.Therefore, the display effect of window is better.
As a kind of embodiment, merging is carried out to the Flash window after main window and process and shows, comprising:
Using the lower windows of the Flash window after process as main window;
According to the level between the Flash window after process and main window, the Flash window after main window and process is drawn;
The main window that display is drawn and the Flash window after processing.
As a kind of embodiment, carry out after merging shows, also comprising to the Flash window after main window and process:
When any one drag operation in the Flash window after to main window and process being detected, according to the dragging track of drag operation, the display position of the Flash window after determining main window and processing;
According to the display position of the Flash window after main window and process, drafting is re-started to the Flash window after main window and process;
Show the Flash window after the main window and process repainted.
As a kind of embodiment, according to the level between the Flash window after process and main window, after the Flash window after main window and process is drawn, also comprise:
According to the display size of the Flash window after the display size of main window and process, obtain the displaying contents that the Flash window after process is covered by main window;
On main window relevant position, draw displaying contents.
As a kind of embodiment, according to the level between the Flash window after process and main window, the Flash window after main window and process is drawn, comprising:
At the end of the frame in Flash file is play, according to the level between the displaying contents of next frame and main window, draw to main window and with the Flash window after process.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Embodiments provide a kind of display packing of window, see Fig. 2, in conjunction with the content in above-described embodiment, take executive agent as terminal be example, be illustrated the method that the present embodiment provides, the method flow that the present embodiment provides comprises:
201, when window idsplay order being detected, Flash file and main window data are obtained.
This window can be the window such as application window, web page windows, and the present embodiment does not do concrete restriction to the type of window.When user launches application, open webpage or starting-window time, end side can generate corresponding window idsplay order.Such as, client, when starting, can generate the window idsplay order that news homepage window is corresponding.The content that Flash file is corresponding can be static picture, also can be dynamic animation, and the content that the present embodiment does not comprise Flash file does concrete restriction.This Flash file can also comprise some web page interlinkages etc. relevant to picture or animated content, clicks redirect for user.
The present embodiment does not do concrete restriction to the mode obtaining Flash file and main window data, includes but not limited to: send data acquisition request to server; The Flash file that reception server returns according to request of data and main window data.Wherein, can comprise the mark that the window of needs display is corresponding in data acquisition request, the present embodiment does not do concrete restriction to this.
Such as, to need the window shown for news homepage window corresponding to client, main window data are news data, and the content of Flash file is advertisement moving picture is example.Terminal, when Netscape News idsplay order being detected, can send to server the data acquisition request comprising news homepage window ID.Server is after the data acquisition request receiving terminal transmission, and mark that can be corresponding according to news homepage window in data acquisition request, obtains the news data on the same day, return the news data on the same day to terminal.In addition, terminal can also be thrown in advertisement to server transmission and be obtained request, and server, after receiving input advertisement acquisition request, obtains the advertisement moving picture that the same day needs input, returns to terminal the advertisement moving picture that the same day, needs were thrown in.Wherein, terminal to server transmission data acquisition request and input advertisement obtain and can arrange sequencing according to demand the opportunity of asking.Certainly, yet can send data acquisition request to server simultaneously and throw in advertisement acquisition request, the present embodiment do concrete restriction to this.Server returns the news data on the same day to terminal and needed the same day also can arrange sequencing according to demand on opportunity of the advertisement moving picture thrown in, certainly, server also can return the news data on the same day to terminal simultaneously and need the advertisement moving picture of input the same day, and the present embodiment does not do concrete restriction to this yet.
202, create Flash window and main window, Flash window is for showing animated content corresponding to Flash file, and main window is for showing main window data.
The present embodiment does not do concrete restriction to the mode creating Flash window, includes but not limited to: set up an OLE (Object Linking and Embedding, object connects and embeds) control, as the container of Flash file; Flash file is directed in translation and compiling environment, generates corresponding type statement file; By the function creation Flash window of adding in OLE control.Wherein, the type statement file that Flash file is corresponding comprises the interface of Flash.By generating the type statement file comprising Flash interface, the follow-up content obtaining the display of Flash window needs by Flash interface.
Such as, when setting up OLE control, by following codes implement:
Wherein, TObj is the interface of AvtiveX object, is OLE control.
When being directed in translation and compiling environment by Flash file, import by #import order, particular content can be as follows:
#import"c:\\windows\\system32\\macromed\\flash\\flash.ocx"named_guids
Wherein, flash.ocx is the Flash file that terminal gets.
" c: windows system32 macromed flash flash.ocx " get the store path after Flash file for terminal.
By compiling flash.ocx, flash.tlh file can be generated.Wherein, the interface of Flash is contained in flash.tlh file.
In Tobj, add CreateFlashWindow function, wherein, can call OleCreate function in this function, can create Flash window by OleCreate, the code of specific implementation 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 as the input parameter of IoleClientSite interface, and imports into as the parameter of Istorage interface.The rreturn value that OleCreate function obtains can be stored in m_lpO variable, and m_lpO is the ole object be associated with Flash control.
Need due to follow-up the content being obtained the display of Flash window needs by Flash interface, and m_lpO is the ole object be associated with Flash control.Therefore, obtain Flash interface by m_lpO, the code of specific implementation can be as follows:
hr=m_lpO->QueryInterface(IShockwaveFlash,(void**)&m_lpControl);
Because follow-up needs shows Flash object, therefore, IviewObject or IviewObjectEx interface can be obtained.Wherein, can first attempt obtaining IviewObject interface, when after the failure of acquisition IviewObject interface, can obtain IviewObjectEx interface again, the code of specific implementation can be as follows:
In addition, can manage Flash object due to follow-up, therefore, IOleInPlaceObject or IID_IOleInPlaceObjectWindowless interface can be obtained.Wherein, can first attempt obtaining IOleInPlaceObject interface, when after the failure of acquisition IOleInPlaceObject interface, can obtain IID_IOleInPlaceObjectWindowless interface again, the code of specific implementation can be as follows:
It should be noted that, creating main window also can with reference to the process of above-mentioned establishment Flash window, and the present embodiment does not do concrete restriction to the mode creating main window.Such as, equally by OleCreate function creation main window.
203, transparent processing is carried out to Flash window, obtain the Flash window after processing.
About the mode of Flash window being carried out to transparent processing, the present embodiment does not do concrete restriction to this, includes but not limited to: using Flash window as can cascading windows, window be set to transparent style; According to Flash file present frame, generate corresponding bitmap; The bitmap generated and DC (Device Content, device context) class compatible are mutually associated, using the DC with bitmap compatibility mutually as the container stored and draw.
Wherein, by Flash window is set to WS_EX_LAYERED attribute, Flash window is set to transparent style, the present embodiment does not do concrete restriction to this.Because Flash window and main window show by follow-up needs by different level, therefore, Flash window can be set to WS_POPUP attribute, thus using Flash window as can cascading windows, the present embodiment do concrete restriction to this yet.
In addition, because follow-up needs show the content that Flash file comprises in the Flash window of transparence, therefore, generate bitmap corresponding to Flash file present frame by CreateDIBSection function, the present embodiment does not do concrete restriction to this.Meanwhile, owing to being associated with DC class compatible mutually by the bitmap of generation, thus the relevant drafting function of the follow-up DC of calling class is drawn bitmap in Flash window.
By carrying out transparent processing to Flash window, single form when window can be avoided to show, thus realize showing irregular window, reach more gorgeous effect, and then beautify window.
204, using the lower windows of the Flash window after process as main window.
The present embodiment does not do concrete restriction to using the Flash window after process as the mode of the lower windows of main window, includes but not limited to: the DISPLAY ORDER of main window be set to show in the superiors.
Such as, when receiving the WM_WINDOWPOSCHANGED message of main window, by SetWindowPos function, the DISPLAY ORDER of main window is set to one deck topmost, the code of SetWindowPos function can be as follows:
Wherein, hWnd variable can input Flash window handle, hWndInsertAfter can input main window handle, HWND in " _ In_opt_HWND hWndInsertAfter " can be input as " HWND_TOP ", thus the DISPLAY ORDER of main window is arranged in order to the top one deck, Flash window ZOrder is set to the one deck below main window.
205, according to the level between the Flash window after process and main window, the Flash window after main window and process is drawn.
The present embodiment not to according to process after Flash window and main window between level, concrete restriction is done to the mode that the Flash window after main window and process is drawn, include but not limited to: in Flash window, bitmap is drawn by the relevant drafting function calling DC class, by the drafting function calling container class corresponding to main window, main window is drawn.
Such as, when drawing bitmap in Flash window, draw the content shown in Flash window by calling drafting function OleDraw, the code of specific implementation can be as follows:
hr=OleDraw(lpV,DVASPECT_CONTENT,hdcDraw,&rTotal);
Wherein, lpV is the IviewObject interface that Flash control controls, and hdcDraw is the correlation parameter from screen painting canvas, and rTotal is the correlation parameter of drawing area.In addition, draw function OleDraw to draw the content shown in Flash window by the member function Draw calling IviewObject interface class.
It should be noted that, the Flash content of Flash window display can be static, also can be dynamic.When Flash content is static, the content in Flash window only need be drawn once.When Flash content is dynamic, because the every content frame of Flash file is not identical, then need to re-start drafting to the every content frame of Flash file, to upgrade Flash content.For said circumstances, at the end of the frame in Flash file is play, according to the level between the displaying contents of next frame and main window, the Flash window after main window and process is drawn.Wherein, the process of the Flash window after drawing main window and processing with reference to foregoing, can repeat no more herein.
Such as, when Flash content needs initiatively to upgrade, these two functions of IOleInPlaceSiteEx::InvalidateRect or IOleInPlaceSiteEx::InvalidateRgn can be called, in these two functions, call Oledraw function realize re-starting drafting to Flash content.
In addition, because Flash window is as the lower windows of main window, therefore, main window may shelter from the content of Flash window part display.Now, main window and the content shown by Flash window can cause connecting poor because not having transition.For said circumstances, present embodiments provide a kind of method of drawing Flash window content on main window, include but not limited to: according to the display size of the Flash window after the display size of main window and process, obtain the displaying contents that the Flash window after process is covered by main window; On main window relevant position, draw displaying contents.
Such as, when Flash window draws Flash content, the displaying contents that the Flash window after process is covered by main window can be obtained, capped displaying contents is plotted in the DC of main window, or is updated directly in the memory bitmap of main window.
By the Flash window after drawing modification on main window the displaying contents that covers by main window, main window and Flash window can be allowed to seem more as an entirety, thus make the display effect of whole forms more attractive in appearance.
206, the main window of display drafting and the Flash window after processing.
The present embodiment does not do concrete restriction to the mode of the main window of display drafting and the Flash window after processing, and includes but not limited to: shown the Flash window after the main window drawn and process by display window function.
Such as, by UpdateLayerdWindow function, the Flash window after process is shown, by WM_PAINT message corresponding display window function, main window is shown.
It should be noted that, above-mentioned steps 204 to step 206 is carried out merging the process shown at main window and the Flash window after processing, by the Flash window after main window and process is merged, Flash window and main window can be allowed to look like a window in appearance, thus achieve the landscaping effect to main window.
In addition, carrying out after merging shows to the Flash window after main window and process, user may need to drag main window or Flash window, and the Flash window after main window and process needs to carry out merging and shows.For said circumstances, the present embodiment additionally provides and a kind ofly drags the window display method after window, include but not limited to: when any one drag operation in the Flash window after to main window and process being detected, according to the dragging track of drag operation, the display position of the Flash window after determining main window and processing; According to the display position of the Flash window after main window and process, drafting is re-started to the Flash window after main window and process; Show the Flash window after the main window and process repainted.
Such as, can main window can after drag area and process Flash window can drag area, WM_LBUTTONDOWN event is set to mouse down state, WM_MOUSEMOVE event is set to mouse drag state.When main window can after drag area or process Flash window WM_LBUTTONDOWN event and WM_MOUSEMOVE event can be detected in drag area simultaneously time, can determine currently to drag window, thus following three API (ApplicationProgramming Interface can be adopted, application programming interface) function BeginDeferWindowPos (), DeferWindowPos () and EndDeferWindow (), make disposable window to main window with the Flash window of floating to move, and there will not be window to glimmer or situation that Flash window after main window and process departs from mutually.
It should be noted that, due to when showing Flash window, employ UpdateLayerdWindow function, the Flash control making Flash window corresponding can not receive WM_PAINT message again, thus Flash window can not respond mouse control.For said circumstances, present embodiments provide the method that Flash control corresponding to a kind of Flash window receives mouse control message, include but not limited to: in Flash window, set up floating window, detect mouse control message by floating window; After floating window detects mouse control message, mouse control message is forwarded to Flash control corresponding to Flash window by relevant interface.
Such as, SubClass can be set up in Flash window and float window, SubClass floats after window detects mouse control message, mouse control message is forwarded by WindowProc function, thus the IID_IOleInPlaceObjectWindowless interface of Flash control can receive the mouse control message of forwarding.After Flash control receives mouse control message, can control according to the Flash window of mouse control message to display, the code of specific implementation can be as follows:
Flash window can be allowed to respond mouse control message by said method, thus facilitate user to drag Flash window, change the operations such as shape.
In addition, because the Flash control that Flash window is corresponding may also need to carry out communication with host program, to realize the information interaction between host program.For said circumstances, the present embodiment additionally provides the method that Flash control corresponding to a kind of Flash window and host program carry out communication, include but not limited to: by performing host side order, realize the information interaction between Flash control corresponding to Flash window and host program.
Such as, by calling IDispatch::Invoke function, thus use FSCommand or FlashCall order allow Flash control and corresponding host program communication, the code of specific implementation can be as follows:
Flash control corresponding to Flash window carries out communication by using FSCommand or FlashCall order with corresponding host program, thus meets advertisement interaction demand such as grade alternately.Such as, when detecting that user clicks the advertisement shown in Flash window, information can be sent to web browser program by FSCommand or FlashCall order, to open the details webpage of this advertisement.
Such as, in fig. 8, above a secondary figure be the former interface schematic diagram of main window and Flash window, below the interface schematic diagram of main window and Flash window in the method that provides for the present embodiment of a secondary figure.
The method that the embodiment of the present invention provides, by when window idsplay order being detected, obtain Flash file and main window data, create Flash window and main window, transparent processing is carried out to Flash window, obtain the Flash window after processing, merging is carried out to the Flash window after main window and process and shows.Due to two window displaying contents can be divided, thus the content display of main window can not be had influence on, and the Flash window after main window and process can be carried out merging and shown.Therefore, the display effect of window is better.
Embodiments provide a kind of display device of window, the display packing of window of this device for performing above-described embodiment and providing.See Fig. 3, this device comprises:
Acquisition module 301, for when window idsplay order being detected, obtains Flash file and main window data;
Creation module 302, for creating Flash window and main window, described Flash window is for showing animated content corresponding to described Flash file, and described main window is for showing described main window data;
Processing module 303, for carrying out transparent processing to described Flash window, obtains the Flash window after processing;
First display module 304, shows for carrying out merging to the Flash window after described main window and described process.
As a kind of embodiment, see Fig. 4, the first display module 304, comprising:
Determining unit 3041, for using the lower windows of the Flash window after described process as described main window;
First drawing unit 3042, for according to the Flash window after described process and the level between described main window, draws the Flash window after described main window and described process;
Display unit 3043, for showing the main window of drafting and the Flash window after processing.
As a kind of embodiment, see Fig. 5, this device also comprises:
Determination module 305, for when any one drag operation in the Flash window after to described main window and described process being detected, according to the dragging track of described drag operation, determines the display position of the Flash window after described main window and described process;
Drafting module 306, for the display position according to the Flash window after described main window and described process, re-starts drafting to the Flash window after described main window and described process;
Second display module 307, for showing the Flash window after the main window that repaints and process.
As a kind of embodiment, see Fig. 6, the first display module 304, also comprises:
Acquiring unit 3044, for the display size according to the Flash window after the display size of described main window and described process, obtains the displaying contents that the Flash window after described process is covered by described main window;
Second drawing unit 3045, in described main window relevant position, draws described displaying contents.
As a kind of embodiment, first drawing unit 3042, at the end of playing when the frame in described Flash file, according to the level between the displaying contents of next frame and described main window, draw to described main window and with the Flash window after described process.
The device that the embodiment of the present invention provides, by when window idsplay order being detected, obtain Flash file and main window data, create Flash window and main window, transparent processing is carried out to Flash window, obtain the Flash window after processing, merging is carried out to the Flash window after main window and process and shows.Due to two window displaying contents can be divided, thus the content display of main window can not be had influence on, and the Flash window after main window and process can be carried out merging and shown.Therefore, the display effect of window is better.
Fig. 7 is the block diagram of a kind of terminal 700 according to an exemplary embodiment.Such as, terminal 700 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 7, terminal 700 can comprise following one or more assembly: processing components 702, storer 704, power supply module 706, multimedia groupware 707, audio-frequency assembly 710, I/O (Input/Output, I/O) interface 712, sensor module 714, and communications component 716.
The integrated operation of the usual control terminal 700 of processing components 702, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 702 can comprise one or more processor 720 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 702 can comprise one or more module, and what be convenient between processing components 702 and other assemblies is mutual.Such as, processing components 702 can comprise multi-media module, mutual with what facilitate between multimedia groupware 707 and processing components 702.
Storer 704 is configured to store various types of data to be supported in the operation of terminal 700.The example of these data comprises for any application program of operation in terminal 700 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 704 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (Static Random AccessMemory, static RAM), EEPROM (Electrically-Erasable ProgrammableRead-Only Memory, Electrically Erasable Read Only Memory), EPROM (ErasableProgrammable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), ROM (Read-OnlyMemory, ROM (read-only memory)), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 706 is terminal 700 provide electric power.Power supply module 706 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 700 and be associated.
Multimedia groupware 707 is included in the screen providing an output interface between terminal 700 and user.In certain embodiments, screen can comprise LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 707 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 700 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to export and/or input audio signal.Such as, audio-frequency assembly 710 comprises a MIC (Microphone, microphone), and when terminal 700 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 704 further or be sent via communications component 716.In certain embodiments, audio-frequency assembly 710 also comprises a loudspeaker, for output audio signal.
I/O interface 712 is for providing interface between processing components 702 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 714 comprises one or more sensor, for providing the state estimation of various aspects for terminal 700.Such as, sensor module 714 can detect the opening/closing state of terminal 700, the relative positioning of assembly, such as assembly is display and the keypad of terminal 700, the position of all right sense terminals 700 of sensor module 714 or terminal 700 1 assemblies changes, the presence or absence that user contacts with terminal 700, the temperature variation of terminal 700 orientation or acceleration/deceleration and terminal 700.Sensor module 714 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 714 can also comprise optical sensor, as CMOS (Complementary Metal OxideSemiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupled Device, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor module 714 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 716 is configured to the communication being convenient to wired or wireless mode between terminal 700 and other equipment.Terminal 700 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 716 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communications component 716 also comprises NFC (Near Field Communication, near-field communication) module, to promote junction service.Such as, can based on RFID (Radio Frequency Identification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, terminal 700 can by one or more ASIC (Application SpecificIntegrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, digital signal processor), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device (PLD)), FPGA) (Field ProgrammableGate Array, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing the display packing of a kind of window that any embodiment in the embodiment corresponding to above-mentioned Fig. 1 or Fig. 2 provides.
The terminal that the embodiment of the present invention provides, by when window idsplay order being detected, obtain Flash file and main window data, create Flash window and main window, transparent processing is carried out to Flash window, obtain the Flash window after processing, merging is carried out to the Flash window after main window and process and shows.Due to two window displaying contents can be divided, thus the content display of main window can not be had influence on, and the Flash window after main window and process can be carried out merging and shown.Therefore, the display effect of window is better.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 704 of instruction, above-mentioned instruction can perform said method by the processor 720 of terminal 700.Such as, non-transitory computer-readable recording medium can be ROM, RAM (RandomAccess Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of terminal, make terminal can perform a kind of display packing of window, method comprises:
When window idsplay order being detected, obtain Flash file and main window data;
Create Flash window and main window, described Flash window is for showing animated content corresponding to described Flash file, and described main window is for showing described main window data;
Transparent processing is carried out to described Flash window, obtains the Flash window after processing;
Carry out merging to the Flash window after described main window and described process to show.
The computer-readable recording medium that the embodiment of the present invention provides, by when window idsplay order being detected, obtain Flash file and main window data, create Flash window and main window, transparent processing is carried out to Flash window, obtain the Flash window after processing, merging is carried out to the Flash window after main window and process and shows.Due to two window displaying contents can be divided, thus the content display of main window can not be had influence on, and the Flash window after main window and process can be carried out merging and shown.Therefore, the display effect of window is better.
It should be noted that: the display device of the window that above-described embodiment provides is when display window, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the display device of the window that above-described embodiment provides and the display packing embodiment of window belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a display packing for window, is characterized in that, described method comprises:
When window idsplay order being detected, obtain Flash file and main window data;
Create Flash window and main window, described Flash window is for showing animated content corresponding to described Flash file, and described main window is for showing described main window data;
Transparent processing is carried out to described Flash window, obtains the Flash window after processing;
Carry out merging to the Flash window after described main window and described process to show.
2. method according to claim 1, is characterized in that, describedly carries out merging to the Flash window after described main window and described process and shows, and comprising:
Using the lower windows of the Flash window after described process as described main window;
According to the Flash window after described process and the level between described main window, the Flash window after described main window and described process is drawn;
The main window that display is drawn and the Flash window after processing.
3. method according to claim 1, is characterized in that, describedly carries out after merging shows, also comprising to the Flash window after described main window and described process:
When any one drag operation in the Flash window after to described main window and described process being detected, according to the dragging track of described drag operation, determine the display position of the Flash window after described main window and described process;
According to the display position of the Flash window after described main window and described process, drafting is re-started to the Flash window after described main window and described process;
Show the Flash window after the main window and process repainted.
4. method according to claim 2, is characterized in that, described according to the Flash window after described process and the level between described main window, after drawing, also comprises the Flash window after described main window and described process:
According to the display size of the Flash window after the display size of described main window and described process, obtain the displaying contents that the Flash window after described process is covered by described main window;
On described main window relevant position, draw described displaying contents.
5. method according to claim 2, is characterized in that, described according to the Flash window after described process and the level between described main window, draws, comprising the Flash window after described main window and described process:
At the end of the frame in described Flash file is play, according to the level between the displaying contents of next frame and described main window, draw to described main window and with the Flash window after described process.
6. a display device for window, is characterized in that, described device comprises:
Acquisition module, for when window idsplay order being detected, obtains Flash file and main window data;
Creation module, for creating Flash window and main window, described Flash window is for showing animated content corresponding to described Flash file, and described main window is for showing described main window data;
Processing module, for carrying out transparent processing to described Flash window, obtains the Flash window after processing;
First display module, shows for carrying out merging to the Flash window after described main window and described process.
7. device according to claim 6, is characterized in that, described first display module, comprising:
Determining unit, for using the lower windows of the Flash window after described process as described main window;
First drawing unit, for according to the Flash window after described process and the level between described main window, draws the Flash window after described main window and described process;
Display unit, for showing the main window of drafting and the Flash window after processing.
8. device according to claim 6, is characterized in that, described device also comprises:
Determination module, for when any one drag operation in the Flash window after to described main window and described process being detected, according to the dragging track of described drag operation, determines the display position of the Flash window after described main window and described process;
Drafting module, for the display position according to the Flash window after described main window and described process, re-starts drafting to the Flash window after described main window and described process;
Second display module, for showing the Flash window after the main window that repaints and process.
9. device according to claim 7, is characterized in that, described first display module also comprises:
Acquiring unit, for the display size according to the Flash window after the display size of described main window and described process, obtains the displaying contents that the Flash window after described process is covered by described main window;
Second drawing unit, in described main window relevant position, draws described displaying contents.
10. device according to claim 7, it is characterized in that, described first drawing unit, at the end of playing when the frame in described Flash file, according to the level between the displaying contents of next frame and described main window, draw to described main window and with the Flash window after described process.
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 true CN104407865A (en) 2015-03-11
CN104407865B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843622A (en) * 2016-03-25 2016-08-10 广州华多网络科技有限公司 Animation processing method and device
WO2016192521A1 (en) * 2015-05-30 2016-12-08 腾讯科技(深圳)有限公司 Display control method and apparatus, and terminal
WO2017133481A1 (en) * 2016-02-01 2017-08-10 阿里巴巴集团控股有限公司 Rendering method, decoding method, and method and device for playing multimedia data stream
CN108228036A (en) * 2016-12-09 2018-06-29 武汉斗鱼网络科技有限公司 The implementation method and device of window menu in a kind of windows
CN110427236A (en) * 2016-10-18 2019-11-08 广州视睿电子科技有限公司 A kind of rendering method and device
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016192521A1 (en) * 2015-05-30 2016-12-08 腾讯科技(深圳)有限公司 Display control method and apparatus, and terminal
US10503375B2 (en) 2015-05-30 2019-12-10 Tencent Technology (Shenzhen) Company Limited Display control method, terminal and storage medium
WO2017133481A1 (en) * 2016-02-01 2017-08-10 阿里巴巴集团控股有限公司 Rendering method, decoding method, and method and device for playing multimedia data stream
US10805570B2 (en) 2016-02-01 2020-10-13 Alibaba Group Holding Limited System and method for streaming multimedia data
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
CN110427236A (en) * 2016-10-18 2019-11-08 广州视睿电子科技有限公司 A kind of rendering method and device
CN110427236B (en) * 2016-10-18 2023-06-09 广州视睿电子科技有限公司 Rendering method and device
CN108228036A (en) * 2016-12-09 2018-06-29 武汉斗鱼网络科技有限公司 The implementation method and device of window menu in a kind of windows
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

Also Published As

Publication number Publication date
CN104407865B (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US11366490B2 (en) User terminal device and displaying method thereof
US10048824B2 (en) User terminal device and display method thereof
US10452333B2 (en) User terminal device providing user interaction and method therefor
CN108776568B (en) Webpage display method, device, terminal and storage medium
CN105955607B (en) Content sharing method and device
KR102331956B1 (en) User terminal device and method for displaying thereof
CN104407865A (en) Method and device for displaying window
KR102016127B1 (en) User terminal device and method for displaying thereof
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
US10095386B2 (en) Mobile device for displaying virtually listed pages and displaying method thereof
KR102037465B1 (en) User terminal device and method for displaying thereof
EP3726376B1 (en) Program orchestration method and electronic device
KR20160037647A (en) User Terminal Device and Method for controlling the user terminal device thereof
KR102254121B1 (en) Method and device for providing mene
CN103631768A (en) Collaborative data editing and processing system
CN104461348B (en) Information choosing method and device
CN107728810A (en) Terminal control method, device, terminal and storage medium
CN107241495A (en) The split screen treating method and apparatus of terminal device
CN105955808B (en) The task management method and device of instant messaging application
CN104636170A (en) Application acquiring method and device and electronic device
KR20220093091A (en) Labeling method and apparatus, electronic device and storage medium
CN103150083A (en) Display method and device for user-defined desktop icons
CN108572815A (en) The execution method, apparatus of multitask and the executive device for multitask
CN107256149A (en) The update method and device of user interface
CN104951223B (en) A kind of touch screen realizes the method, apparatus and host of magnifying glass

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
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.