CN1235129C - How to display multiple windows in exclusive mode - Google Patents
How to display multiple windows in exclusive mode Download PDFInfo
- Publication number
- CN1235129C CN1235129C CN 01140114 CN01140114A CN1235129C CN 1235129 C CN1235129 C CN 1235129C CN 01140114 CN01140114 CN 01140114 CN 01140114 A CN01140114 A CN 01140114A CN 1235129 C CN1235129 C CN 1235129C
- Authority
- CN
- China
- Prior art keywords
- window
- clipboard
- multiple windows
- exclusive mode
- image
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 claims abstract description 27
- 208000019300 CLIPPERS Diseases 0.000 description 2
- 208000021930 chronic lymphocytic inflammation with pontine perivascular enhancement responsive to steroids Diseases 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Digital Computer Display Output (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种显示多窗口的方法,应用于Windows系统,特别是一种独占模式下显示多个窗口的方法。The invention relates to a method for displaying multiple windows, which is applied to a Windows system, in particular to a method for displaying multiple windows in an exclusive mode.
背景技术Background technique
目前Windows系统下的游戏或是多媒体程序,在执行时,为了能有最佳的表现效果,往往都必须享有系统所有的资源,即采用独占模式来显示。例如现在多媒体程序大都是在DirectX平台下来开发、使用,以力求提高多媒体程序的运行速度,而其中关于图像方面,则主要通过采用Directx平台中的DirectDraw的程序来实现对显示结果的处理。At present, games or multimedia programs under the Windows system must enjoy all the resources of the system in order to have the best performance when they are executed, that is, they must be displayed in an exclusive mode. For example, most of the multimedia programs are developed and used on the DirectX platform now, in order to improve the running speed of the multimedia programs, and in terms of images, the processing of the display results is mainly realized by using the DirectDraw program in the DirectX platform.
通常情况下,DirectDraw可以使用窗口模式或是独占模式(exclusive),如果使用窗口模式,其它窗口能够正常的显示出来,但是如果使用独占模式,由于窗口显示更新的原因,其它窗口只是瞬间显示一下,就立即被更新取代掉了,也就是在独占模式下主窗口以外的其他窗口无法正常显示。Normally, DirectDraw can use window mode or exclusive mode (exclusive). If you use window mode, other windows can be displayed normally, but if you use exclusive mode, due to the window display update, other windows are only displayed for a moment. It is immediately replaced by the update, that is, other windows other than the main window cannot be displayed normally in exclusive mode.
举例来说,最常见的是一些游戏,在独占模式下以全屏幕显示,虽然游戏可以利用系统所有的资源,以最好的效果表现出来,但是,当如果想要在游戏内输入中文字,则必须切换输入法,但是因为独占模式的关系,输入法的窗口无法显现出来,导致输入法窗口不能显示出来,因而无法正常使用,给用户带来相当的不便。For example, some games are most commonly displayed on the full screen in the exclusive mode. Although the game can use all the resources of the system to display it with the best effect, if you want to input Chinese characters in the game, Then the input method must be switched, but because of the relationship of the exclusive mode, the window of the input method cannot be displayed, and the input method window cannot be displayed, so it cannot be used normally, which brings considerable inconvenience to the user.
发明内容Contents of the invention
本发明的目的在于提供一种独占模式下显示多窗口的方法,可于独占模式下显示出主窗口以外的其它窗口,并同时享受独占模式下开发和运行程序的强大的功能,以解决上述现有技术中所存在的问题。The purpose of the present invention is to provide a method for displaying multiple windows in an exclusive mode, which can display other windows other than the main window in the exclusive mode, and at the same time enjoy the powerful functions of developing and running programs in the exclusive mode, so as to solve the above problems There are problems in the technology.
本发明的上述目的是这样实现的:一种独占模式下显示多窗口的方法,用以将一窗口显示在一独占模式的主窗口上,其特征在于该方法至少包含以下步骤:检查相关硬件的特性标记;确认该相关硬件可支持显示多个窗口;确认该主窗口无剪贴板;建立一剪贴板;将该剪贴板设为该主窗口的一对象;将该剪贴板设置于显示屏幕的图像缓冲区内;以及通过该剪贴板显示出该窗口的图像。The above-mentioned purpose of the present invention is achieved in that a method for displaying multiple windows in an exclusive mode is used to display a window on a main window in an exclusive mode, and it is characterized in that the method at least includes the following steps: checking the relevant hardware Feature flag; confirm that the relevant hardware can support displaying multiple windows; confirm that the main window has no clipboard; create a clipboard; set the clipboard as an object of the main window; set the clipboard to the image of the display screen buffer; and display the image of the window via the clipboard.
本发明的独占模式下显示多窗口的方法,首先检查相关硬件的特性,相关硬件是否有支持显示多个窗口的特性,如果确认可以,则建立一个剪贴板,将剪贴板挂在主窗口上,从而将所欲显示于主窗口上的其他窗口图像也加入剪贴板内,再借助剪贴板,将其他窗口的图像显示于主窗口上;如果判断不能支持显示主窗口以外的其他窗口,则取得要显示于主窗口上的窗口的位置、大小,从显示屏幕建立一窗口图形,并将欲显示的窗口的图像贴到主窗口图形内,再将窗口图形显示出来即可,这样,即可于独占模式下显示出多个窗口,并且可以兼有独占模式下的资源运用。The method for displaying multiple windows under the exclusive mode of the present invention first checks the characteristics of the relevant hardware, whether the relevant hardware has the characteristics of supporting displaying multiple windows, if confirmed, then establishes a clipboard, hangs the clipboard on the main window, In this way, images of other windows to be displayed on the main window are also added to the clipboard, and then images of other windows are displayed on the main window with the help of the clipboard; if it is judged that the display of other windows other than the main window cannot be supported, the required For the position and size of the window displayed on the main window, create a window graphic from the display screen, paste the image of the window to be displayed on the main window graphic, and then display the window graphic. Multiple windows are displayed in the exclusive mode, and the resource usage in the exclusive mode can be used at the same time.
附图说明Description of drawings
图1为本发明的步骤流程示意图;Fig. 1 is a schematic flow chart of the steps of the present invention;
图2为本发明的功能方块示意图;Fig. 2 is a functional block diagram of the present invention;
图3为本发明的建立剪贴板对象的步骤流程示意图;Fig. 3 is the schematic flow chart of the step of setting up the clipboard object of the present invention;
图4为本发明的建立窗口图形的示意图。FIG. 4 is a schematic diagram of creating a window graph in the present invention.
具体实施方式Detailed ways
下面结合实施例及其附图,对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the embodiments and accompanying drawings.
根据本发明所公开的独占模式下显示多窗口的方法,请参阅图1,一主窗口目前处于独占模式(此窗口称为主窗口,以下仅以此称之),而要使另一窗口能显示于主窗口上,首先检查相关硬件的特性(步骤101),并且判断目前的相关显示硬件设备可否支持多窗口显示(步骤102),如果可以支持,则利用剪贴板(Clipper)的方式,也就是先建立一剪贴板对象(步骤103),接着通过建立的剪贴板对象将所要显示的窗口显示出来(步骤104)。如果不能支持,则重新建立一对应于所要显示的窗口的窗口图形(步骤105),并借助此窗口图形将所要显示的窗口显示出来(步骤106)。According to the method for displaying multiple windows in exclusive mode disclosed by the present invention, please refer to Fig. 1, a main window is currently in exclusive mode (this window is called main window, hereinafter only referred to as this), and another window can Displayed on the main window, at first check the characteristics of the relevant hardware (step 101), and judge whether the current relevant display hardware device can support multi-window display (step 102), if it can support, then utilize the mode of clipboard (Clipper), also It is to first create a clipboard object (step 103), and then display the window to be displayed through the created clipboard object (step 104). If it cannot be supported, then re-establish a window graphic corresponding to the window to be displayed (step 105), and display the window to be displayed by means of this window graphic (step 106).
接着为进一步详细说明,请同时参阅图2,首先利用硬件特性检查模块10来检查相关的硬件特性,以判断相关硬件可否支持其它窗口的显示,接着,如果可以支持,则利用剪贴板的方式,建立剪贴板对象,如图3所示,首先检查主窗口是否有其它的剪贴板存在,(剪贴板(Clipper)是多媒体程序中经常使用的一个对象,它允许将图像的某些有效部分剪贴到其他图像上,例如在一个多媒体游戏中,若要显示一个精灵从屏幕边界进入,不希望精灵一下子就出现在屏幕上,而是平滑的慢慢从屏幕边界一点一点移到屏幕中间,若没有剪切板对象,就需要包含限制位块操作以保护表面内存。)判断如主窗口已具有剪贴板,则利用此剪贴板来显示所要显示的窗口图像(步骤205)。如果不具有其它的剪贴板,则利用剪贴板模块15来建立一剪贴板(步骤202),并且将此剪贴板设为主窗口的一个对象(步骤203),也就是将剪贴板挂到主窗口上,接着将剪贴板设置到显示屏幕的图像缓冲区内(步骤204),即完成了剪贴板对象的建立,接着利用窗口显示模块16将所要显示的窗口图形贴在剪贴板上,并将其显示在显示屏幕上(步骤104)(例如可利用函数FlipToGDISurface(),将剪贴板的内容,写到GDI的表面,且在显示屏幕上显示出来)。Then for further detailed description, please refer to Fig. 2 simultaneously, at first utilize hardware characteristic inspection module 10 to check relevant hardware characteristic, to judge whether relevant hardware can support the display of other windows, then, if can support, then utilize the mode of clipboard, Establish the clipboard object, as shown in Figure 3, at first check whether there are other clipboards in the main window, (the clipboard (Clipper) is an object that is often used in multimedia programs, it allows some valid parts of the image to be clipped to On other images, for example, in a multimedia game, if you want to display a sprite entering from the border of the screen, you don’t want the sprite to appear on the screen at once, but to move slowly from the border of the screen to the middle of the screen smoothly. If there is no clipboard object, it is necessary to include the limit bit block operation to protect the surface memory.) Judging if the main window has a clipboard, then utilize this clipboard to display the window image to be displayed (step 205). If do not have other clipboard, then utilize clipboard module 15 to set up a clipboard (step 202), and this clipboard is set as an object (step 203) of main window, just hang clipboard to main window Then, the clipboard is set in the image buffer of the display screen (step 204), that is, the establishment of the clipboard object has been completed, then the window display module 16 is utilized to paste the window graphics to be displayed on the clipboard, and its Display on the display screen (step 104) (for example, the function FlipToGDISurface() can be used to write the content of the clipboard to the surface of the GDI and display it on the display screen).
另一方面,如果相关硬件不支持其他窗口的显示,则利用建立一个相关于所要显示窗口图像的窗口图形来完成多个窗口的显示(步骤105),如图4所示,首先取得所要显示的窗口的大小以及位置(步骤301),可通过窗口的句柄取得,接着提取显示屏幕的设备描述表(DeviceContext;DC)(步骤302)(每个相关硬件都具有一相对应的设备描述表(DC),而取得显示屏幕的设备描述表则可以使用此显示屏幕来显示自己所想要显示的图形,也可以在显示屏幕上任意画图,因已是熟知的技术,故不再赘述工作原理),此时,利用窗口图形建立模块13建立一窗口图形(步骤303),并利用窗口图形处理模块14将所建立的窗口图形置于显示屏幕的图像缓冲区内(步骤304),以便可以将其显示出来;此时,将显示屏幕的设备描述表释放(步骤305),接着,判断显示屏幕是否发生变化(步骤306),如果发生,表示窗口图形已改变,则重新建立一个窗口图形。如果显示屏幕上的主窗口没有发生任何变化,则利用窗口显示模块16将所想要显示的窗口图像贴于所建立的主显示图形上,然后通过主显示图形而将其显示出来(步骤106)。On the other hand, if the relevant hardware does not support the display of other windows, then utilize the establishment of a window graphic related to the window image to be displayed to complete the display of multiple windows (step 105), as shown in Figure 4, at first obtain the window image to be displayed The size and position (step 301) of the window can be obtained by the handle of the window, and then extract the device context (DeviceContext; DC) (step 302) of the display screen (each relevant hardware has a corresponding device context (DC) ), and obtain the device description table of the display screen, you can use this display screen to display the graphics you want to display, and you can also draw arbitrarily on the display screen, because it is already a well-known technology, so I won’t repeat the working principle), Now, utilize the window figure building module 13 to set up a window figure (step 303), and utilize the window figure processing module 14 to place the established window figure in the image buffer of the display screen (step 304), so that it can be displayed Come out; Now, release the device context of the display screen (step 305), then, judge whether the display screen changes (step 306), if it occurs, it means that the window graphics have changed, and then re-establish a window graphics. If there is no change in the main window on the display screen, then utilize the window display module 16 to paste the window image that you want to display on the established main display graphics, and then display it by the main display graphics (step 106) .
借助以上两种方式,即可在独占模式下,除了正常显示主窗口外,还可以显示出其它的窗口,并可同时享受到独占模式下的强大资源运用。With the help of the above two methods, in the exclusive mode, in addition to the normal display of the main window, other windows can also be displayed, and at the same time enjoy the powerful resource utilization in the exclusive mode.
本发明为一种独占模式下显示多个窗口的方法,是用以将一窗口显示于一独占模式下的主窗口上,首先检查主窗口显示的相关硬件的特性标记,是否有支持显示其他窗口的特性标记,如果确认可以支持,则建立一个剪贴板,将剪贴板挂在主窗口上,而将所欲显示于主窗口之上的其他窗口图像加入剪贴板内,再借助剪贴板,将图像显示于主窗口上;如果不能支持其他窗口的显示,则取得其他要显示的窗口的位置大小,建立一窗口图形,并将所欲显示的窗口的图像贴到主显示图形内,再将主显示图形显示出来即可,如此,即可于独占模式下显示出多个窗口的图像,并且可以具有独占模式下的资源运用。The present invention is a method for displaying multiple windows in an exclusive mode. It is used to display a window on a main window in an exclusive mode. First, check the characteristic mark of the relevant hardware displayed in the main window to see if there is support for displaying other windows. If it is confirmed that it can be supported, create a clipboard, hang the clipboard on the main window, and add other window images to be displayed on the main window into the clipboard, and then use the clipboard to save the image Displayed on the main window; if it cannot support the display of other windows, obtain the position and size of other windows to be displayed, create a window graphic, paste the image of the window to be displayed into the main display graphic, and then paste the main display It is only necessary to display the graphics. In this way, images of multiple windows can be displayed in the exclusive mode, and resources can be used in the exclusive mode.
以上所述仅为本发明其中的较佳实施例而已,并非用来限定本发明的实施范围;凡按照本发明权利要求所作的均等变化与修饰,均为本发明权利要求所涵盖。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the implementation scope of the present invention; all equivalent changes and modifications made according to the claims of the present invention are covered by the claims of the present invention.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 01140114 CN1235129C (en) | 2001-11-23 | 2001-11-23 | How to display multiple windows in exclusive mode |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 01140114 CN1235129C (en) | 2001-11-23 | 2001-11-23 | How to display multiple windows in exclusive mode |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1423188A CN1423188A (en) | 2003-06-11 |
| CN1235129C true CN1235129C (en) | 2006-01-04 |
Family
ID=4675665
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 01140114 Expired - Fee Related CN1235129C (en) | 2001-11-23 | 2001-11-23 | How to display multiple windows in exclusive mode |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1235129C (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9092115B2 (en) * | 2009-09-23 | 2015-07-28 | Microsoft Technology Licensing, Llc | Computing system with visual clipboard |
-
2001
- 2001-11-23 CN CN 01140114 patent/CN1235129C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1423188A (en) | 2003-06-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7453473B2 (en) | Method and apparatus for high-performance rendering and hit testing of a window tree | |
| JP5575846B2 (en) | Hardware-accelerated blend mode | |
| CN103034729B (en) | web page rendering system and method | |
| CN112965771B (en) | Virtual screen construction method, computing device and storage medium | |
| CN103678631A (en) | Page rendering method and device | |
| WO2019114185A1 (en) | App remote control method and related devices | |
| CN1262748A (en) | Apparatus and method for acquiring, processing and sending data contained in a graphical user interface window | |
| US6323875B1 (en) | Method for rendering display blocks on display device | |
| US20030210267A1 (en) | Systems and methods for providing asynchronous client rendering in a graphical user interface (GUI) environment | |
| CN104866318A (en) | Method and device for displaying label pages in multiple windows | |
| US6914608B2 (en) | Screen display processing apparatus, screen display processing method and computer program | |
| CN108269222A (en) | A kind of window rendering intent and terminal | |
| CN100412868C (en) | A Method for Optimizing the Webpage Display Effect of an Embedded Browser | |
| JP2004505355A (en) | Method and apparatus for dynamic graphics context switching in a data processing system | |
| CN114860141B (en) | Image display method, device, electronic equipment and computer readable medium | |
| CN1235129C (en) | How to display multiple windows in exclusive mode | |
| TWI527445B (en) | Displaying hardware accelerated video on x window systems | |
| JP2010282200A (en) | Structure of animation font file and text output method of portable terminal | |
| CN109800039A (en) | A kind of user interface presentation method, apparatus, electronic equipment and storage medium | |
| CN107193952A (en) | Optimize the method for HTML5 Canvas performances based on multithreading | |
| JP3504638B2 (en) | Method of processing graphics data in a data processing system, data processing system and computer program product | |
| US20070229520A1 (en) | Buffered Paint Systems | |
| CN105139356A (en) | Image data ground glass effect processing method and device | |
| US7567253B2 (en) | Mirror driver notification of device independent bitmap drawing calls | |
| EP2761396A1 (en) | Displaying hardware accelerated video on x window systems |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060104 Termination date: 20101123 |