Home > Software engineering >  How to make the main window above the image control is located in the child window above?
How to make the main window above the image control is located in the child window above?

Time:10-23

MFC I created an image control in the main window and a child window, but child window display is blocked by the main window of the above image control? How to make the image control is located on child window?

CodePudding user response:

The simplest way: move the image control to the child window,
Complex, set the child window covering part of the image control not refresh background,

CodePudding user response:

Only two child window, an image control

CodePudding user response:

Calls to control SetWindowPos?

CodePudding user response:

How to move the image control to the child window? You mean is in an image is built on the child window controls? And then delete the picture on the main window controls?

CodePudding user response:

reference 4 floor qqsq001 response:
how to move the image control to the child window? You mean is in an image is built on the child window controls? And then delete the picture on the main window controls?

Is this meaning,

CodePudding user response:

The image control on the main window is all child window title, cannot be deleted, all child Windows to use it to profile title

CodePudding user response:

Not see what you mean, why child window controls to the picture on the main window blocking?
MoveWindow mobile child Windows, physical position does not cover,

If you position to overlap, really don't understand design intent, of course, can grasp the area, let the child window when drawing part of the background in the region not draw directly, but always feel complicate the simple question,

CodePudding user response:

Dizzy I mean on the image control over the main window to add a header image, using it as all child window title, so all the image control to be located above child window, the situation is a child window is loaded, put the image on the main window control file covered, just can't see the image control is used by the title and

CodePudding user response:

refer to the original poster qqsq001 response:
MFC I created an image control in the main window and a child window, but child window display is blocked by the main window of the above image control? How to make the image control is located on child window?

Why don't you create images on child window controls?

CodePudding user response:

Many child window, if every child window to create a title, image control is not FeiGong? Use only one main window on a header image control not convenient?

CodePudding user response:

refer to the eighth floor qqsq001 response:
dizzy I mean on the image control over the main window to add a header image, using it as all child window title, so all the image control to be located above child window, the situation is a child window is loaded, put the image on the main window control file covered, just can't see the image control is used by the title and


That you show when I was child window traverse to the child window to move to the following image control not to go, OninitDialog from time to time

CodePudding user response:

In the front of the child window is always displayed in the parent window ~ this is you have no way to modify, unless you modify the relationship ~

CodePudding user response:

Can't do more a child window layer? Do nothing, the child window layer is used to determine the level of,
Assume that the main window called m, called I image control, the child window layer called l, you said child window is called c, first create initialization time m l, and then create the I, l and I's parent window is m; Different c when creating the parent window is l

CodePudding user response:

I'm a little don't understand why you have a child window, behind have a image controls, and to control a display image, that your child window display was obscured by image

CodePudding user response:

11 references cvbtvbwu response:
you traverse to the child window when I was a display window to move to the following image control not to go, when the OninitDialog


How to traverse to the child window is moved to the bottom of the image control? Here I don't know?

CodePudding user response:

reference 15 floor qqsq001 response:
Quote: reference 11 floor cvbtvbwu response:

That you show when I was child window traverse to the child window to move to the following image control not to go, when OninitDialog


How to traverse to the child window is moved to the bottom of the image control? Here I don't know?



Child dialogs showwindow, obtain the image control area, getwindowrect area after conversion mobile child dialogs you will


CodePudding user response:

Can't add my qq
  • Related