Home > Software engineering >  MFC dialog box border issue
MFC dialog box border issue

Time:10-15

I dynamically created a list in a dialog control, but this listcontrol beyond the size of the dialog box part of the disappeared, is there any way to exceed the dialog box controls boundary, rather than restrict within the dialog

CodePudding user response:

This is so, you're listctrl controls on a dialog, natural cannot exceed

CodePudding user response:

Please understand what is the parent window, what is a child window,

Container of only 10 litres of capacity, you have to give him 20 litres of water, how to install, you told me, I have to apply for a Nobel Prize,

Way, of course, there are still a, but need to have is premised on the your child controls (that is, your list) the size of the run time change, then there is a program can solve your problem, is the OnSize function overloading your list control, and then dynamically changes the size of the parent window,

CodePudding user response:

If you can, use the combobox his parent window's desktop

CodePudding user response:

There is no way beyond the dialog box to control boundary, and is not limited within the dialog

CodePudding user response:

This is impossible,
But can realize the boundary of the dialog box automatically expand to ensure that accommodate the following control,

CodePudding user response:

Attribute ListCtrl selected the scroll bar

CodePudding user response:

You have to do is add a scroll bar is not ~

CodePudding user response:

Change its parent window

CodePudding user response:

Dynamic list control, must know the size of it,
You recalculate the size of the dialog box MoveWindow

CodePudding user response:

Can, custom painting can, more wide, you have the final say

CodePudding user response:

Should can't, because the control's parent window is a dialog box, the size of the child controls cannot exceed the size of the dialog box!!!!

CodePudding user response:

11 references u014260892 response:
should can't, because the control's parent window is a dialog box, the size of the child controls cannot exceed the size of the dialog box!!!!


That's because you only give you define Microsoft window

Microsoft can be defined, you can't define yourself?
  • Related