Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have mistaken to make popup windows that have fixed sizes of widths and heights.
Those windows didn't have maximize and minimize boxes, too.
Now, I want to make them resize freely but I check TRUE the max and min box in the property, and even clicking the max. box, those popup windows are not enlarged.
What else I missed the properties of them?

Thank you.

What I have tried:

More one day are wasted to solve the problems.
Posted
Updated 8-May-16 4:00am

They must have the resize flag or border set. It may be the WS_BORDER flag.

Best is you detect in your code how big the popup must get and then create with the approbiate size.
 
Share this answer
 
Just change the style flags in the creation from WS_POPUP to WS_OVERLAPPEDWINDOW and you no longer have a popup window :-)
 
Share this answer
 
You create your window with something that look like this in MFC

myWindow->CreateEx(0, your_Classname, your_titleString, WS_POPUP | WS_VISIBLE, .....);

Change the WS_POPUP flag ... WS_OVERLAPPEDWINDOW.

If you don't know where it is use the compiler menus .. "Edit"->"find and replace" ->"find in files" and search for WS_POPUP. I am guessing there is only going to be exactly one occurance of it.
 
Share this answer
 
v7
I had changed some flags like as follows:

Absolute Align = True
Border = Resizing
Overlapped Window = True

But makes no changes in popup size.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900