Click to See Complete Forum and Search --> : Strange behaviour of child-windows with WS_THICKFRAME-style


AlionSolutions
May 5th, 2003, 03:27 AM
Hi again,
I just ran into another problem with Win32API:

I wanted to place a child-window (for "panel"-purpose) into a frame-window. I set the style WS_THICKFRAME because I wanted to have such a nice bevel ;o)

So far, so good, but when I move the mousepointer over one of the frames I get a IDC_BEAMWE-cursor and I am able to resize the child-window just dragging to borders with the mouse.

Ok, this is a nice feature but unexpected. And in my application it is as undesired as it can be.

so please, can somebody tell me why this happens and how to turn this off ? Am I able to use a WS_THICKFRAME without having the resulting window resizeable with mouse ?

All I want is a childwindow with a beveled border, nothing else. I don't want to draw the beveled border myself, but if there is no other way....

by the way: WS_THICKFRAME allways produces a raised bevel. does anybody know how to get a lowered bevel ?

I would appreciate any help.

thanx in advance

Juergen

Horst
May 5th, 2003, 07:19 AM
This is a feature of the WS_THICKFRAME style and cannot be disabled with WS_THICKFRAME.
Try using one of the extended window frame styles (WS_EX_...)!

Some of them just set window borders.

Hope that helped!

Horst

AlionSolutions
May 6th, 2003, 04:47 AM
Oooh I like that, another "feature" that nobody asked for. thats what we like at microsoft ;)
thanx to the developers of such helpfull features :D

ok, then I have to test the WS_EX-styles and hope that there is something valuable. otherwise I have to use GDI-functions and draw the border myself.... might be fun ;)

thanx for your help

juergen

PS: Schoene Gruesse nach Bayern