Window display method and electronic equipment

By dividing the window into visible and transparent parts and adjusting the size of the visible parts, the problem of poor window display effect is solved, achieving a smoother display effect.

CN120335658APending Publication Date: 2025-07-18LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510525627.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, when adjusting the window size, the window display effect is poor because the filling speed of the gap part is slower than the movement of the content displayed on the window.

Method used

Dividing the window into a first part that is visible and a second part that is transparent, reducing the appearance of the void part by adjusting the size of the first part, ensuring that the boundary of the third part is always within the boundary of the target window.

Benefits of technology

By reducing the overall movement of window content, the display effect of the window is improved and the appearance of gaps is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335658A_ABST
    Figure CN120335658A_ABST
Patent Text Reader

Abstract

The invention provides a window display method and electronic equipment. The method comprises the following steps: displaying a target window; the target window comprises a first part and a second part, the display content of the first part is visible, and the display content of the second part is transparent; in response to a size adjustment operation for the first part, the first part with the visible display content is adjusted to be a third part with the visible display content, and the display size of the third part is different from the display size of the first part; wherein the boundary of the third part in the adjustment is always located in the boundary of the target window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display technologies, and more particularly, to a window display method and an electronic device. Background Art

[0002] Currently, when many devices adjust the size of the content displayed in a window, the method often adopted is to adjust the size of the window. As the size of the window is adjusted, after moving the entire current window display content, the void part that appears as the size is adjusted in the window is filled. Therefore, the filling of the void part is often slower than the movement of the window display content, resulting in a poor display effect of the window. Summary of the Invention

[0003] In view of this, the present disclosure provides a window display method and an electronic device.

[0004] One aspect of the present disclosure provides a window display method, including:

[0005] Display a target window; the target window includes a first part and a second part, the display content of the first part is visible, and the display content of the second part is transparent;

[0006] In response to a size adjustment operation on the first part, adjust the first part with visible display content to a third part with visible display content, and the display size of the third part is different from that of the first part;

[0007] Wherein, during the adjustment, the boundary of the third part is always within the boundary of the target window.

[0008] Optionally, the first part includes a boundary; the size adjustment operation includes a boundary dragging operation; in response to the size adjustment operation on the first part, adjusting the first part with visible display content to a third part with visible display content includes:

[0009] In response to the boundary dragging operation on the first part, determine the internal area of the current result boundary obtained based on the boundary dragging operation as the third part, determine the external area of the current result boundary in the current target window as the fourth part, and display the third part with visible display content and the fourth part with transparent display content in the current target window.

[0010] Optionally, the size adjustment operation includes a display mode switching operation;

[0011] In response to the size adjustment operation on the first part, adjusting the first part with visible display content to a third part with visible display content includes:

[0012] In response to a display mode switching operation for the first part, determine the specified area corresponding to the display mode switching operation as the third part, and determine the area outside the specified area in the current target window as the fourth part, and display the visible third part of the display content in the current target window and the transparent fourth part of the display content.

[0013] Optionally, the display mode switching operation includes a landscape / portrait mode switching operation;

[0014] When the width of the first part is greater than the height, the width of the specified area is less than the height;

[0015] When the width of the first part is less than the height, the width of the specified area is greater than the height.

[0016] Optionally, when the boundary dragging operation includes a left / right boundary dragging operation, the display width of the third part is different from the display width of the first part, and during adjustment, the display width of the third part is always less than or equal to the width of the target window;

[0017] When the boundary dragging operation includes an up / down boundary dragging operation, the display height of the third part is different from the display height of the first part, and during adjustment, the display height of the third part is always less than or equal to the height of the target window.

[0018] Optionally, the method further includes:

[0019] In response to a size adjustment operation for the first part, adjust the size of the current target window;

[0020] During adjustment, the boundary of the third part is always within the boundary of the adjusted target window; in the adjusted current target window, the display content of other parts outside the third part is transparent.

[0021] Optionally, during adjustment, the sum of the display areas of the third part and the fourth part is always less than or equal to the sum of the display areas of the first part and the second part; or

[0022] In response to a size adjustment operation for the first part, control the boundary of the target window to remain unchanged.

[0023] Optionally, the second part and the fourth part have the property of mouse penetration.

[0024] Optionally, the boundary of the first part has the property of a window border; the boundary of the first part is used to adjust the size in response to a size adjustment operation.

[0025] Another aspect of the present disclosure provides an electronic device, including:

[0026] A display unit;

[0027] One or more processors, communicatively coupled to a display unit, the one or more processors being configured to perform:

[0028] Display a target window in the display unit; the target window includes a first part and a second part, the display content of the first part is visible, and the display content of the second part is transparent;

[0029] In response to a sizing operation on the first part, adjust the first part with visible display content to a third part with visible display content, the display size of the third part being different from the display size of the first part;

[0030] Wherein, the boundary of the third part during adjustment is always within the boundary of the target window.

[0031] According to some embodiments of the present disclosure, by sizing the first part with visible display content, sizing of the display content can be achieved, which can reduce the occurrence of void parts and improve the display effect of the window.

[0032] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Through the following description of the embodiments of the present disclosure with reference to the drawings, the above and other objects, features and advantages of the present disclosure will become clearer. In the drawings:

[0034] Figure 1 Schematically shows an application scenario diagram of a window display method according to an embodiment of the present disclosure;

[0035] Figure 2 Schematically shows a flowchart of a window display method according to an embodiment of the present disclosure;

[0036] Figure 3 Schematically shows a schematic diagram before and after sizing of a target window according to an embodiment of the present disclosure;

[0037] Figure 4 Schematically shows another schematic diagram before and after sizing of a target window according to an embodiment of the present disclosure;

[0038] Figure 5 Schematically shows another schematic diagram before and after sizing of a target window according to an embodiment of the present disclosure;

[0039] Figure 6 Schematically shows a structural schematic diagram of a window display device according to an embodiment of the present disclosure;

[0040] Figure 7A block diagram of an electronic device suitable for implementing the above method is schematically shown according to an embodiment of the present disclosure. Detailed implementation manners

[0041] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, obviously, one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present disclosure.

[0042] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information involved, etc., all comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs. In the technical solution of the present disclosure, the processing of data such as acquisition, collection, storage, use, processing, transmission, provision, disclosure, and application all comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs.

[0043] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0044] In the case of using expressions such as "at least one of A, B, or C, etc.", generally, it should be interpreted according to the meaning that those skilled in the art usually understand this expression (for example, "a system having at least one of A, B, or C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the described features.

[0045] Currently, when many devices adjust the size of the content displayed in a window, the method adopted is often to adjust the size of the window. As the size of the window is adjusted, after moving the entire current window display content, the void part that appears as the size is adjusted in the window is filled. Therefore, the filling of the void part is often slower than the movement of the window display content, resulting in a poor display effect of the window.

[0046] To solve the above technical problems and improve the display effect of the window, an embodiment of the present disclosure provides a window display method.

[0047] In this method, the window can be divided into a first part where the display content is visible and a second part where the display content is transparent. By adjusting the size of the first part, it is possible to adjust the size of the visible display content in the window, reduce the situation of moving the entire display content in the window, reduce the occurrence of gaps, and improve the display effect of the window.

[0048] Therefore, this method can directly adjust the size of the visible display content in the window, reduce the occurrence of gaps, and improve the display effect of the window.

[0049] Specifically, other parts outside the visible part of the display content in the window can be set to be transparent. As the size of the visible part of the display content in the window is adjusted, the remaining part of the window can be set to be transparent in real time. Thus, by adjusting the positional relationship and size relationship between the visible part of the display content and the transparent part of the display content in the window, the occurrence of gaps can be reduced, and the display effect of the window can be improved.

[0050] Figure 1 An application scenario diagram of a window display method according to an embodiment of the present disclosure is schematically shown.

[0051] As Figure 1 shown, the application scenario 100 of the embodiment of the present disclosure may include a first terminal device 101 and a display unit 102. There may be a communication connection between the first terminal device 101 and the display unit 102.

[0052] The user can use the first terminal device 101. Specifically, the user can execute user operations through the display unit 102 to control the first terminal device 101; or the user can execute user operations through the first terminal device 101 and display the operation results in the display unit 102.

[0053] Among them, the first terminal device 101 may specifically be various electronic devices, including but not limited to a computer host. And the display unit 102 may specifically be a display screen. In a specific example, the first terminal device 101 and the display unit 102 may form an electronic device with a display screen.

[0054] It should be noted that a window display method provided by an embodiment of the present disclosure can generally be executed by the first terminal device 101. The window to be operated can be displayed in the display unit 102.

[0055] The following further provides a detailed description of a window display method provided by an embodiment of the present disclosure.

[0056] Figure 2 A flowchart of a window display method according to an embodiment of the present disclosure is schematically shown.

[0057] The process of this method does not limit the specific execution entity. Optionally, this method process can be executed by any electronic device. Among them, the execution entity can specifically be any electronic device with a display screen, such as a computer device, a laptop computer, a tablet computer, a mobile device, and so on. The execution entity can also be an electronic device without a display screen, and the window to be displayed can be transmitted to other display units or display devices for display.

[0058] As Figure 2 shown, the process of this method can include the following steps:

[0059] S201: Display a target window; the target window can include a first part and a second part. The display content of the first part is visible, and the display content of the second part is transparent.

[0060] S202: In response to a size adjustment operation for the first part, adjust the first part with visible display content to a third part with visible display content, and the display size of the third part is different from that of the first part.

[0061] Among them, the boundary of the third part during adjustment can always be within the boundary of the target window.

[0062] By adjusting the size of the first part with visible display content in this method process, the size adjustment of the display content can be achieved, which can reduce the situation of moving the entire display content in the window, reduce the occurrence of void parts, and improve the display effect of the window.

[0063] The process of this method does not limit the target window. The target window can be any window. For the convenience of description, any window adjusted or displayed by this method process can be called a target window.

[0064] It can be understood that during the size adjustment process of the first part, the boundary of the adjusted third part can always be inside the boundary of the target window, and the third part can not exceed the boundary of the target window.

[0065] The following separately provides a detailed explanation of different aspects of this method process.

[0066] I. S201: Display a target window; the target window can include a first part and a second part. The display content of the first part is visible, and the display content of the second part is transparent.

[0067] In this method process, the first part and the second part are not limited. The first part and the second part may not overlap with each other. The first part and the second part may be two non - overlapping regions in the target window respectively.

[0068] This method process does not limit the specific way of determining the first part and the second part. Optionally, the target window can be divided into the first part and the second part. The second part can be the remaining part of the target window outside the first part. It can also be that two non - overlapping parts in the target window are respectively determined as the first part and the second part. Among them, determining the first part in the target window can be to determine a pre - set initialization area as the first part; it can also be based on user operations to determine the area specified by the user as the first part.

[0069] Optionally, when displaying the target window, specifically, it can be to display the first part where the display content in the target window is visible and the second part where the display content is transparent.

[0070] For the first part where the display content is visible, optionally, the display content in the target window can be displayed in the first part.

[0071] For the second part where the display content is transparent, this method process does not limit the specific way of controlling the transparency of the display content in the second part. Optionally, for the pixel points in the second part, the transparency value can be set to a transparency preset value used to represent transparency.

[0072] In a specific example, the target window can be set as a layered window, so that the transparency (that is, the alpha value) can be set for the pixel points in the target window. Among them, for the pixel points in the second part, the corresponding alpha value can be set to 0, which is the transparency preset value 0 representing complete transparency.

[0073] Therefore, optionally, when displaying the target window, specifically, it can be to display the window bitmap of the target window. In the window bitmap, for the first part, the display content in the target window can be drawn, and for the second part, the display content can be set to be transparent. Specifically, the alpha value of the pixel points in the second part can be set to 0.

[0074] In an optional embodiment, based on the second part where the display content is transparent, the influence of the target window on the underlying content can be reduced.

[0075] Optionally, through the second part where the display content is transparent, the content under the target window can be displayed. For example, the content of other windows or the desktop content, and the influence of the target window on the underlying content can be reduced.

[0076] Optionally, the second part can be set to have the mouse penetration property. Specifically, the mouse penetration property can allow mouse events to penetrate the upper-layer element and directly act on the lower-layer element. Specifically, the mouse events for the second part can penetrate to other content below the second part to implement corresponding functions, which can reduce the influence of the target window on the content below.

[0077] In a specific example, a window border can be displayed at the border part of the display content in the first part. The displayed window border can have the border properties of a window border and can also be used to implement border functions. For example, the displayed window border can adjust the size of the first part in response to a size adjustment operation for the window border; the displayed window border can also be used to implement border functions such as maximizing, minimizing, and closing the window.

[0078] In a specific example, the target window displayed in S201 can be the target window in the initial display. Among them, during the initial display process, the entire area of the target window can be determined as the first part, and the display area of the second part can be 0. Subsequently, as the size of the first part is adjusted, the other parts outside the first part in the target window can be determined as the second part with transparent display content.

[0079] Second, S202: In response to a size adjustment operation for the first part, adjust the first part with visible display content to the third part with visible display content, and the display size of the third part is different from the display size of the first part.

[0080] Among them, the boundary of the third part during the adjustment can always be within the boundary of the target window.

[0081] The specific form of the size adjustment operation is not limited in this method flow.

[0082] Optionally, the size adjustment operation can be in the form of a drag operation. Specifically, it can be a drag on the boundary of the first part with the mouse to implement the size adjustment operation. During the drag operation, the size (including width and height) determined by the current drag operation can be obtained in real time, so as to adjust the size of the first part with visible display content in real time according to the currently obtained size, and obtain the third part with the size of the currently obtained size to achieve real-time size adjustment. Specifically, it can be to update the window bitmap in the target window according to the currently obtained size in real time and adjust the size of the visible part of the display content in the window bitmap of the target window.

[0083] Optionally, the sizing operation may be in the form of a mode switching operation, and the size of the first part can be adjusted to the size (including width and height) specified by the mode switching operation. Specifically, the first part can be adjusted to a third part with the size specified by the mode switching operation. The window bitmap in the target window can be updated according to the size specified by the mode switching operation, and the size of the visible part of the displayed content in the window bitmap of the target window can be adjusted.

[0084] Of course, the sizing operation can also be in other operation forms, and the above two embodiments are only for illustrative purposes.

[0085] In addition, optionally, as the size of the first part is adjusted, the remaining part of the target window other than the adjusted first part, that is, the part other than the third part in the target window, can be set to be transparent for the displayed content in real time. Specifically, during the process of updating the window bitmap of the target window, the size of the visible part of the displayed content in the window bitmap of the target window can be adjusted, and the part other than the adjusted visible part of the displayed content can be set to be transparent for the displayed content. By synchronously adjusting the size of the visible part of the displayed content in the target window and the size of the transparent part of the displayed content, the occurrence of void parts can be reduced and the display effect of the window can be improved.

[0086] For easy understanding, two specific embodiments are given below.

[0087] In an alternative embodiment, the first part may include a boundary; the sizing operation may include a boundary dragging operation.

[0088] Correspondingly, in response to the sizing operation on the first part, the first part with visible displayed content is adjusted to the third part with visible displayed content. Specifically, in response to the boundary dragging operation on the first part, the internal area of the current result boundary obtained based on the boundary dragging operation is determined as the third part, the external area of the current result boundary in the current target window is determined as the fourth part, and the third part with visible displayed content and the fourth part with transparent displayed content in the current target window are displayed.

[0089] This embodiment can synchronously adjust the visible part and the transparent part of the displayed content in the target window, realize the sizing of the displayed content, and can also reduce the occurrence of void parts and improve the display effect of the target window.

[0090] Optionally, the boundary in the first part can be the outer contour of the first part or the boundary area where the outer contour of the first part is located. The boundary dragging operation can specifically be an operation of clicking on the boundary of the first part with the mouse and holding it to drag. Based on the boundary dragging operation, the new boundary position determined by the current drag can be obtained in real time. Based on the new boundary position, the boundary that needs to be adjusted for the current boundary dragging operation can be determined, so that the current boundary determined based on the boundary dragging operation can be obtained in real time. For the convenience of description, the current boundary determined based on the boundary dragging operation is referred to as the current result boundary.

[0091] Further, by performing a boundary dragging operation on the boundary of the first part, the size of the first part can be adjusted to obtain the current result boundary, and the internal area of the current result boundary can be determined as the third part, realizing the adjustment from the first part to the third part.

[0092] Correspondingly, the outer area of the current result boundary in the current target window can be determined as the fourth part, that is, the other areas in the current target window except the third part can be determined as the fourth part. The fourth part can be set to have a transparent display content.

[0093] For the specific method of setting the display content of the fourth part to be transparent, reference can be made to the explanations in the previous embodiments.

[0094] This embodiment does not limit the specific boundary dragging operation. Optionally, the first part can include upper and lower boundaries and left and right boundaries. The upper and lower boundaries can be used to adjust the height of the first part, and the left and right boundaries can be used to adjust the width of the first part. For example, the shape of the first part can be a rectangle.

[0095] Optionally, after determining the third part and the fourth part, the window bitmap of the target window can be updated to display the third part with visible display content and the fourth part with transparent display content.

[0096] Optionally, in the case where the boundary dragging operation includes a left and right boundary dragging operation, the display width of the third part can be different from the display width of the first part, and the display width of the third part during the adjustment can always be less than or equal to the width of the target window.

[0097] Optionally, in the case where the boundary dragging operation includes an upper and lower boundary dragging operation, the display height of the third part can be different from the display height of the first part, and the display height of the third part during the adjustment can always be less than or equal to the height of the target window.

[0098] This embodiment can improve the flexibility of adjusting the size of the first part by performing a dragging operation on the upper and lower boundaries or the left and right boundaries of the first part.

[0099] It can be understood that the boundary dragging operation may include a left - right boundary dragging operation and / or an up - down boundary dragging operation.

[0100] During the boundary dragging operation, the third part determined in real - time may not exceed the boundary of the target window. Thus, it can be determined that the display width of the third part can always be less than or equal to the width of the target window, and the display height of the third part can always be less than or equal to the height of the target window.

[0101] In an optional embodiment, the size adjustment operation may include a display mode switching operation.

[0102] Correspondingly, in response to the size adjustment operation for the first part, the first part of the visible display content is adjusted to the third part of the visible display content. Specifically, in response to the display mode switching operation for the first part, the specified area corresponding to the display mode switching operation is determined as the third part, the external area of the specified area in the current target window is determined as the fourth part, and the third part of the visible display content and the fourth part of the transparent display content in the current target window are displayed.

[0103] This embodiment can synchronously adjust the visible part and the transparent part of the display content in the target window, realize the size adjustment of the display content, and can also reduce the occurrence of void parts, improving the display effect of the target window.

[0104] This embodiment does not limit the specific display mode switching operation, nor the switched display mode. Among them, the display mode switching operation may correspond to a specified area in a target window.

[0105] Optionally, the display mode may specifically include one of the following: a full - screen display mode that needs to be displayed full - screen on the display screen; a left - half - screen display mode that needs to be displayed on the left half - screen of the display screen; a right - half - screen display mode that needs to be displayed on the right half - screen of the display screen; a top - bar display mode that needs to fit the upper boundary of the target window and be displayed as a horizontal bar; a side - bar display mode that needs to fit the left or right boundary of the target window and be displayed as a vertical bar, etc.

[0106] Based on the display mode to be switched according to the display mode switching operation, a corresponding specified area can be determined, and the first part needs to be adjusted to the specified area for display.

[0107] Therefore, the specified area can be determined as the third part, and the display content in the third part is set to be visible.

[0108] In a specific example, the operation of switching the display mode can be triggered by clicking a button. The currently triggered display mode switching operation may be to switch the first part to the side display mode. Thus, a specified area that fits the right boundary of the target window and is displayed as a vertical bar can be determined. The specified area is determined as the third part, and the display content of the third part is set to be visible. Thereby, the window bitmap of the target window can be updated to display the visible third part of the display content.

[0109] This embodiment does not limit the specific form of the display mode switching operation. Optionally, it can be the operation form of clicking a button, or the operation form of a shortcut key, etc.

[0110] The explanation of the fourth part can be referred to the previous embodiment and will not be elaborated here.

[0111] For the convenience of understanding, an embodiment of horizontal and vertical display mode switching is given below.

[0112] Optionally, the display mode switching operation may include a horizontal and vertical mode switching operation. When the width of the first part is greater than the height, the width of the specified area can be less than the height; when the width of the first part is less than the height, the width of the specified area can be greater than the height.

[0113] This embodiment can adaptively determine the size of the corresponding specified area according to the current size of the first part, improving the flexibility of the display mode switching operation and the flexibility of adjusting the size of the first part.

[0114] It can be understood that when the width of the first part is greater than the height, the first part can be displayed in the form of a horizontal bar. Thus, through the horizontal and vertical mode switching operation, the first part can be switched to the vertical bar form, that is, the specified area with a width less than the height is determined as the visible third part of the display content.

[0115] This embodiment does not limit the size relationship between the widths before and after adjustment, nor the size relationship between the heights before and after adjustment.

[0116] Optionally, the horizontal and vertical mode switching operation can be used to switch to the above-mentioned top bar display mode or the above-mentioned side display mode. Correspondingly, for the target window, when the width of the first part is greater than the height, the width of the specified area can be less than the height, and the height of the specified area can be the height of the target window. The width of the specified area can be less than the height of the target window and less than the width of the target window, and it is displayed on the left side or the right side of the target window. When the width of the first part is less than the height, the width of the specified area can be greater than the height, and the width of the specified area can be the width of the target window. The height of the specified area can be less than the height of the target window and less than the width of the target window, and it is displayed on the top edge of the target window.

[0117] It can be understood that the above display modes are only for illustrative purposes, and other display modes and corresponding specified areas can be set according to actual needs.

[0118] Regarding the second part and the fourth part with transparent display content, the method flow does not limit the specific way of setting the display content to be transparent.

[0119] Optionally, the transparency value of the pixel points in the second part and the fourth part is the preset transparency value representing transparency. Specifically, the alpha value of the pixel points in the second part and the fourth part can be 0, representing complete transparency. Of course, other ways that can achieve local transparency in the window can also be used, such as implementing local transparency through the SetWindowRgn function. In this embodiment, by setting the alpha value of each pixel point, local transparency settings at the pixel point granularity can be achieved, which is convenient for setting various shapes of local transparency and can improve the flexibility of local transparency in the window.

[0120] In addition, optionally, the second part and the fourth part can have the mouse penetration property. The mouse penetration property can specifically allow mouse events to penetrate the upper-layer elements and directly act on the lower-layer elements. Specifically, the mouse events for the second part or the fourth part can penetrate to other contents below the second part or the fourth part to implement corresponding functions, which can reduce the influence of the target window on the lower-layer contents. This embodiment does not limit the specific way of implementing the mouse penetration property. Optionally, setting the alpha value of the pixel points in the second part and the fourth part to 0 can have the mouse penetration property.

[0121] In an optional embodiment, for the convenience of user operation and to improve the convenience of user operation, the boundary of the first part can be set to have the window border property, so that the boundary of the first part has the same properties as the window border and the same function implementation.

[0122] For example, the boundary of the first part can be resized for the first part in response to a resizing operation for the boundary; the boundary of the first part can also be used to implement window border functions such as maximizing, minimizing, and closing the window.

[0123] Therefore, optionally, the boundary of the first part can have window border attributes; the boundary of the first part can be used to be resized in response to a resizing operation for the first part. Specifically, the boundary of the first part can trigger the execution of resizing for the first part in response to a resizing operation for the first part, and adjust the first part to the third part. This embodiment can improve the convenience of user operations.

[0124] In addition, optionally, the boundary of the first part can also be used to perform corresponding window operations on the target window in response to a window operation for the first part.

[0125] Optionally, the boundary of the first part can be used to make the entire display content of the target window transparent or minimize the target window in response to a window minimization operation for the first part. It can also be used to make the entire display content of the target window visible in response to a window maximization operation for the first part. It can also be used to close the target window in response to a window closing operation for the first part. It can also be used to move the first part in the target window and determine the display area after the movement based on the window movement operation as the third part where the display content is visible for display. It can also be used to determine the display area after the size restoration of the first part in the target window based on the window restoration operation as the third part where the display content is visible for display in response to a window restoration operation for the first part.

[0126] For ease of understanding, Figure 3 schematically shows a schematic diagram of the target window before and after size adjustment according to an embodiment of the present disclosure.

[0127] Figure 3 The dashed box in is used to represent the boundary of the target window, which is actually not displayed. Figure 3 The rectangular window in is used to represent the part where the display content is visible. Before size adjustment, the rectangular window is used to represent the first part where the display content is visible, and after size adjustment, the rectangular window is used to represent the third part where the display content is visible. Through the size adjustment operation, the width and height of the first part can be increased to obtain the third part. Before and after size adjustment, the boundary of the target window can remain unchanged, specifically, the size and position of the target window can remain unchanged. It can be understood that other parts of the target window other than the part where the display content is visible are parts where the display content is transparent.

[0128] III. Regarding the target window.

[0129] The embodiments of the present disclosure do not limit whether the size of the target window is adjusted accordingly when the size of the first part is adjusted.

[0130] Optionally, during the process of adjusting the size of the first part, the size of the target window may remain unchanged, and the boundary of the target window may remain unchanged. Specifically, the size and position of the target window may remain unchanged. Since the size and position of the target window itself remain unchanged, the occurrence of gaps can be reduced, and the display effect of the target window can be improved.

[0131] In addition, in an alternative embodiment, the size of the target window may also be adaptively adjusted as the size of the first part is adjusted.

[0132] For ease of understanding, a specific scenario example is given first.

[0133] In a specific example, the initially displayed target window may be the same size as the desktop. However, as the size of the visible part of the display content is adjusted, the size of the visible part of the display content in the target window is relatively small compared to the target window. Thus, the actual size of the target window can be reduced to reduce the resource occupancy of the target window, as well as its performance occupancy and computational load.

[0134] In another specific example, the initially displayed target window is small in size. However, as the size of the visible part of the display content is adjusted, it is necessary to enlarge the size of the visible part of the display content and make it larger than the initially set size of the target window. To meet this requirement, the actual size of the target window can be adjusted in real time. When the size of the visible part of the display content is adjusted to be the same as the size of the target window, the actual size of the target window can be enlarged to improve the flexibility of adjusting the size of the visible part of the display content.

[0135] It can be understood that the above two examples can be combined with each other to adjust the actual size of the target window according to actual needs.

[0136] Therefore, optionally, in response to an operation of adjusting the size of the first part, the size of the current target window can be adjusted; during the adjustment, the boundary of the third part is always within the boundary of the adjusted target window; in the adjusted current target window, the display content of the other parts except the third part is transparent.

[0137] In this embodiment, by adaptively adjusting the size of the target window according to the size adjustment of the first part, the flexibility of adjusting the size of the target window can be improved.

[0138] This embodiment does not limit the specific method of adjusting the size of the target window.

[0139] Optionally, it can be set that the area ratio of the visible part of the display content in the target window (that is, the ratio of the display area of the visible part of the display content to the current display area of the target window) can be maintained above the preset lower threshold of the area ratio.

[0140] If, with the adjustment of the size of the first part, the area ratio of the adjusted first part is less than the preset lower threshold of the area ratio, the size of the target window can be reduced so that the ratio of the display area of the adjusted first part to the current display area of the reduced target window is greater than the preset lower threshold of the area ratio.

[0141] This embodiment can respond to the reduction of the size of the visible part of the display content and correspondingly reduce the actual size of the target window to reduce the resource occupancy of the target window, reduce the performance occupancy and computing load of the target window.

[0142] Optionally, it can also be set that the area ratio of the visible part of the display content in the target window can be maintained below the preset upper threshold of the area ratio.

[0143] It can be understood that if, with the adjustment of the size of the first part, the area ratio of the adjusted first part is greater than the preset upper threshold of the area ratio, the size of the target window can be enlarged so that the ratio of the display area of the adjusted first part to the current display area of the enlarged target window is less than the preset upper threshold of the area ratio.

[0144] This embodiment can respond to the enlargement of the size of the visible part of the display content and correspondingly enlarge the actual size of the target window to improve the flexibility of adjusting the size of the visible part of the display content.

[0145] Of course, the size of the target window can also be enlarged when the width of the adjusted first part is equal to the width of the current target window and / or the height of the adjusted first part is equal to the height of the current target window.

[0146] Combining the above two embodiments, the area ratio of the visible part of the display content in the target window can be controlled within the range of the preset upper and lower thresholds.

[0147] For ease of understanding, as Figure 4 shown, Figure 4 schematically shows a schematic diagram before and after adjusting the size of another target window according to an embodiment of the present disclosure.

[0148] Figure 4 The dashed box in is used to represent the boundary of the target window and is actually not displayed. Figure 4The rectangular window therein is used to represent the visible part of the displayed content. Before the size adjustment, the rectangular window is used to represent the first visible part of the displayed content, and after the size adjustment, the rectangular window is used to represent the third visible part of the displayed content. Through the size adjustment operation, the width and height of the first part can be reduced to obtain the third part.

[0149] As the size of the first part is reduced, the size of the target window can be correspondingly reduced.

[0150] It can be understood that the other parts of the target window except the visible part of the displayed content are all transparent parts of the displayed content.

[0151] Moreover, as the size of the first part is enlarged, the size of the target window can be correspondingly enlarged. Figure 4 It is only for illustrative purposes.

[0152] Optionally, between the "first part and the second part" and the "third part and the fourth part" before and after the size adjustment, the sum of the display areas can remain unchanged, which is the display area of the target window; the sum of the display areas can also change, varying with the actual size adjustment of the target window.

[0153] Therefore, optionally, during the adjustment, the sum of the display areas of the third part and the fourth part can always be less than or equal to the sum of the display areas of the first part and the second part. This embodiment can avoid increasing the resource occupancy of the target window, as well as the performance occupancy and computational load of the target window.

[0154] Optionally, in response to the size adjustment operation for the first part, the boundary of the target window can be controlled to remain unchanged. This embodiment can reduce the occurrence of void parts and improve the display effect of the target window.

[0155] In addition, in an alternative embodiment, the boundary of the target window itself is generally not displayed. To facilitate the user to view and operate the target window, a way to display the boundary of the target window can also be provided.

[0156] Optionally, in response to the boundary display operation for the current target window, the boundary of the current target window can be displayed.

[0157] This embodiment does not limit the specific form of the boundary display operation. Optionally, it can be a mouse-over / mouse-out operation for the current target window, or an operation of clicking a button, etc.

[0158] This embodiment can facilitate the user to view the current target window and improve the convenience of user operation.

[0159] For the convenience of understanding, the embodiments of the present disclosure also provide a specific application example.

[0160] In the embodiment of this application, considering that when the current window is resized, window flickering occurs when filling the gap part.

[0161] To solve this problem, the size of the target window can be set to the same size as the computer desktop and remain unchanged all the time. By setting the window content to support Alpha transparency, the displayed part is opaque (corresponding to the first and third parts in the above method embodiment), and it is not required that the non-displayed part is completely transparent (corresponding to the second and fourth parts in the above method embodiment).

[0162] When resizing the visible part of the display content in the target window, only the opaque part can be resized. Since the size of the target window remains unchanged, when resizing the visible part of the display content, the occurrence of the gap part can be reduced, and the occurrence of window flickering can be reduced.

[0163] Among them, the actual size of the target window can be set to a fixed size (which can be the desktop size or the maximum size specified by business requirements), and during subsequent size adjustment processes, this fixed size can be maintained unchanged. For size adjustment operations, the size of the visible part of the display content is adjusted.

[0164] The specific implementation is to adjust the size of the visible area of the display content, and all other areas outside the visible area of the display content in the target window are set to be completely transparent. (Specifically, alpha transparency can be set or local transparency can be set through the setWindowRgn function. These two methods can achieve mouse penetration and do not affect multi-window operations).

[0165] Such as Figure 5 shown, Figure 5 schematically shows a schematic diagram before and after another target window size adjustment according to an embodiment of the present disclosure.

[0166] Figure 5 The dashed box in Figure 5 is used to represent the boundary of the target window and is actually not displayed.

[0167] The rectangular window in

[0168] Before and after size adjustment, the boundaries of the target window can remain unchanged. Specifically, the size and position of the target window can remain unchanged. It can be understood that the parts other than the visible part of the displayed content in the target window are all transparent parts of the displayed content.

[0169] In the process of specific implementation, the WS_LAYERED attribute can be added to the window HWND, which is a necessary condition for turning the window into an alpha window.

[0170] The content to be displayed can be drawn into the window through UpdateLayeredWindow. It can be realized that other areas outside the visible area of the displayed content are completely transparent.

[0171] Specifically, the content to be displayed can be drawn into the first part of the window, and the alpha value of the other parts outside the first part can be set to 0.

[0172] In response to the size adjustment operation for the first part, the window bitmap in the drawing window can be updated. Specifically, the third part obtained after the size adjustment operation for the first part can be determined, and the content to be displayed can be updated and drawn into the third part of the window. The alpha value of the other parts outside the third part can be set to 0. Thus, the overall window bitmap can be updated synchronously, reducing the occurrence of gaps and the occurrence of window flickering.

[0173] The embodiments of the present disclosure also provide apparatus embodiments corresponding to the above method embodiments.

[0174] Figure 6 Schematically shows a structural diagram of a window display device according to an embodiment of the present disclosure. As Figure 6 shown, the window display device may include: a preparation unit 301 and an adjustment unit 302.

[0175] Among them, the preparation unit 301 is used to: display the target window; the target window includes a first part and a second part, the display content of the first part is visible, and the display content of the second part is transparent. In one embodiment, the preparation unit 301 can be used to perform the operation S201 described above, which will not be elaborated here.

[0176] The adjustment unit 302 is used to: in response to the size adjustment operation for the first part, adjust the first part with visible display content to the third part with visible display content, and the display size of the third part is different from the display size of the first part. In one embodiment, the adjustment unit 302 can be used to perform the operation S202 described above, which will not be elaborated here.

[0177] Among them, the boundary of the third part in the adjustment is always within the boundary of the target window.

[0178] Optionally, a boundary is included in the first part; the size adjustment operation includes a boundary dragging operation; the adjustment unit 302 is configured to: in response to the boundary dragging operation on the first part, determine the internal area of the current result boundary obtained based on the boundary dragging operation as the third part, determine the external area of the current result boundary in the current target window as the fourth part, and display the third part where the display content in the current target window is visible and the fourth part where the display content is transparent.

[0179] Optionally, the size adjustment operation includes a display mode switching operation; the adjustment unit 302 is configured to: in response to the display mode switching operation on the first part, determine the specified area corresponding to the display mode switching operation as the third part, determine the external area of the specified area in the current target window as the fourth part, and display the third part where the display content in the current target window is visible and the fourth part where the display content is transparent.

[0180] Optionally, the display mode switching operation includes a landscape / portrait mode switching operation; when the width of the first part is greater than the height, the width of the specified area is less than the height; when the width of the first part is less than the height, the width of the specified area is greater than the height.

[0181] Optionally, when the boundary dragging operation includes a left / right boundary dragging operation, the display width of the third part is different from the display width of the first part, and the display width of the third part during adjustment is always less than or equal to the width of the target window.

[0182] Optionally, when the boundary dragging operation includes an up / down boundary dragging operation, the display height of the third part is different from the display height of the first part, and the display height of the third part during adjustment is always less than or equal to the height of the target window.

[0183] Optionally, the above device may further include a window adjustment unit 303, configured to: in response to the size adjustment operation on the first part, adjust the size of the current target window; during adjustment, the boundary of the third part is always within the boundary of the adjusted target window; in the adjusted current target window, the display content of other parts except the third part is transparent.

[0184] Optionally, during adjustment, the sum of the display areas of the third part and the fourth part is always less than or equal to the sum of the display areas of the first part and the second part; or in response to the size adjustment operation on the first part, control the boundary of the target window to remain unchanged.

[0185] Optionally, the second part and the fourth part have the mouse penetration property.

[0186] Optionally, the boundary of the first part has the window border property; the boundary of the first part is configured to adjust the size in response to the size adjustment operation.

[0187] For the explanation of the embodiments of this device, reference can be made to the explanations of other embodiments.

[0188] Figure 7 A block diagram of an electronic device suitable for implementing the above method according to an embodiment of the present disclosure is schematically shown.

[0189] As Figure 7 shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage section 908 into a random access memory (RAM) 903. The processor 901 can include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 901 can also include on-board memory for caching purposes. The processor 901 can include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0190] In the RAM 903, various programs and data required for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. The processor 901 performs various operations of the method flow according to an embodiment of the present disclosure by executing the programs in the ROM 902 and / or the RAM 903. It should be noted that the programs can also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 can also perform various operations of the method flow according to an embodiment of the present disclosure by executing the programs stored in the one or more memories.

[0191] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, and the input / output (I / O) interface 905 is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output (I / O) interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read from it can be installed into the storage section 908 as needed.

[0192] An embodiment of the present disclosure further provides an electronic device, including: a display unit; one or more processors communicatively coupled to the display unit, the one or more processors being configured to perform: displaying a target window in the display unit; the target window including a first part and a second part, the display content of the first part being visible and the display content of the second part being transparent; in response to a size adjustment operation on the first part, adjusting the first part with visible display content to a third part with visible display content, the display size of the third part being different from the display size of the first part; wherein, during the adjustment, the boundary of the third part always lies within the boundary of the target window.

[0193] Optionally, the above one or more processors may be configured to execute any method embodiment in the embodiments of the present disclosure.

[0194] The embodiments of the present disclosure do not limit the form of the electronic device nor the form of the display unit. Optionally, the electronic device may be a laptop computer, a desktop computer, a mobile device, etc. The display unit may be a display screen.

[0195] The present disclosure also provides a computer-readable storage medium, which may be included in the device / device / system described in the above embodiments; or may exist separately without being assembled into the device / device / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the methods according to the embodiments of the present disclosure are implemented. A computer-readable storage medium may store computer-executable instructions, and the instructions are used to implement any method embodiment in the embodiments of the present disclosure when executed.

[0196] The embodiments of the present disclosure further include a computer program product, which includes a computer program, and the computer program includes program codes for executing the methods shown in the flowcharts. When the computer program product runs in a computer system, the program codes are used to cause the computer system to implement the methods of the embodiments of the present disclosure. A computer program product may include a computer program or instructions, and when the computer program or instructions are executed by a processor, any method embodiment in the embodiments of the present disclosure is implemented.

[0197] Those skilled in the art can understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0198] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should fall within the scope of the present disclosure.

Claims

1. A window display method, wherein, The method includes: Displaying a target window; the target window includes a first part and a second part, the display content of the first part is visible, and the display content of the second part is transparent; In response to a size adjustment operation for the first part, adjusting the first part with visible display content to a third part with visible display content, where the display size of the third part is different from that of the first part; Wherein, in the adjustment, the boundary of the third part is always within the boundary of the target window.

2. The method according to claim 1, wherein The first part includes a boundary; the size adjustment operation includes a boundary dragging operation; In response to a size adjustment operation for the first part, adjusting the first part with visible display content to a third part with visible display content includes: In response to a boundary dragging operation for the first part, determining the internal area of the current result boundary obtained based on the boundary dragging operation as the third part, determining the external area of the current result boundary in the current target window as the fourth part, and displaying the third part with visible display content and the fourth part with transparent display content in the current target window.

3. The method according to claim 1, wherein The size adjustment operation includes a display mode switching operation; In response to a size adjustment operation for the first part, adjusting the first part with visible display content to a third part with visible display content includes: In response to a display mode switching operation for the first part, determining the specified area corresponding to the display mode switching operation as the third part, determining the external area of the specified area in the current target window as the fourth part, and displaying the third part with visible display content and the fourth part with transparent display content in the current target window.

4. The method according to claim 3, wherein, The display mode switching operation includes a horizontal-vertical mode switching operation; When the width of the first part is greater than the height, the width of the specified area is less than the height; When the width of the first part is less than the height, the width of the specified area is greater than the height.

5. The method according to claim 2, wherein When the boundary dragging operation includes a left-right boundary dragging operation, the display width of the third part is different from that of the first part, and in the adjustment, the display width of the third part is always less than or equal to the width of the target window; When the boundary dragging operation includes an up-down boundary dragging operation, the display height of the third part is different from that of the first part, and in the adjustment, the display height of the third part is always less than or equal to the height of the target window.

6. The method according to claim 1, wherein The method further includes: In response to a size adjustment operation for the first part, adjusting the size of the current target window; In the adjustment, the boundary of the third part is always within the boundary of the adjusted target window; in the adjusted current target window, the display content of other parts except the third part is transparent.

7. The method according to claim 2 or 3, wherein In the adjustment, the sum of the display areas of the third part and the fourth part is always less than or equal to the sum of the display areas of the first part and the second part; Or In response to a size adjustment operation for the first part, controlling the boundary of the target window to remain unchanged.

8. The method according to claim 2 or 3, wherein, The second part and the fourth part have the mouse penetration property.

9. The method according to claim 1, wherein The boundary of the first part has the window border property; The boundary of the first part is used to perform size adjustment in response to the size adjustment operation.

10. An electronic device, wherein, Comprising: A display unit; One or more processors, communicatively coupled to the display unit, the one or more processors being configured to execute: Display a target window in the display unit; the target window includes a first part and a second part, the display content of the first part is visible, and the display content of the second part is transparent; In response to a size adjustment operation for the first part, adjust the first part with visible display content to a third part with visible display content, the display size of the third part being different from the display size of the first part; Wherein, in the adjustment, the boundary of the third part is always located within the boundary of the target window.