Tech Support > Microsoft Windows > Development Resources > POPUP STYLE
POPUP STYLE
Posted by D on January 27th, 2004


Is there a way to have a popup (or any style) window that
1.does not have a sizing menu or sizing capability.
2.does not cover the entire screen but allows the task bar to show.
?


Posted by D on January 27th, 2004


if there is no way to do such with a POPUP style then
is there a way to fetch the height of the tastbar so I can
size the Popup accordingly ?


Posted by Lucian Wischik on January 27th, 2004


On Mon, 26 Jan 2004 21:02:15 -0500, "D" <NoMail@NoSpam> wrote:
WS_POPUP windows don't have sizing menu or sizing capability. There
are other window styles which have frames but disallow resizing (e.g.
dialog windows) but I forget their style names. Also, even for a
resizable window style, if you override WM_GETMINMAXINFO, you can
prevent it from being resized.

SystemParametersInfo(SPI_GETWORKAREA) will give you a rectangle for
the entire screen minus taskbar.

--
Lucian

Posted by r_z_aret@pen_fact.com on January 27th, 2004


On Tue, 27 Jan 2004 11:31:49 +0100, Lucian Wischik <lu.nn@wischik.com>
wrote:

The WS_THICKFRAME style determines whether a window can be resized. So
you could override any implied WS_THICKFRAME by adding &
~WS_THICKFRAME. This would be slightly nicer than overriding
WM_GETMINMAXINFO, because the user wouldn't see anything (thick frame,
resizing arrows) suggesting the window _is_ resizeable. I've had mixed
results trying to change this style after a window is created.


-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com

Posted by Elias Fotinis on January 27th, 2004


r_z_aret@pen_fact.com wrote:

[re: WS_THICKFRAME]
Did you call SetWindowPos(...,SWP_FRAMECHANGED) after changing the
border style?


Posted by D on January 28th, 2004


The WS_THICKFRAME style determines whether a window
can be resized. .....................WM_GETMINMAXINFO
---Thanks ..but are these new styles ? I'm using VC 6.0 Pro
and there is no such styles in the help search or browse include
define.


Posted by D on January 28th, 2004


I found it by searching "styles" .
First under index the "WS_THICKFRAME" didn't
find anything which was somewhat perplexing.


Posted by Alf P. Steinbach on January 28th, 2004


On Tue, 27 Jan 2004 21:01:17 -0500, "D" <NoMail@NoSpam> wrote:

No.

WS_... is a window style, WS_THICKFRAME has "always" been there,
except perhaps only known as WS_SIZEBOX in Windows 2.x. The latter
name should be regarded as deprecated.

WM_... is a window message.



That's incorrect. But if you haven't installed MSDN then look at
<url: http://msdn.microsoft.com>.



Posted by Alf P. Steinbach on January 28th, 2004


On Mon, 26 Jan 2004 21:02:15 -0500, "D" <NoMail@NoSpam> wrote:

Yes, that's what you get by default.


Yes, that's what you get by default.


Posted by r_z_aret@pen_fact.com on January 28th, 2004


On Wed, 28 Jan 2004 00:46:42 +0200, "Elias Fotinis"
<efotinisNO@SPAMpat.forthnet.gr> wrote:

I don't think I did. I just looked at the function I wrote to hide the
details. I see a comment referencing a 1999 newsgroup post about
SWP_FRAMECHANGED, but no evidence I tried it. Not a priority for me,
but thanks for the reminder, and for making sure other folks know
about it.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com