CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Question Strange behaviour of child-windows with WS_THICKFRAME-style

    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

  2. #2
    Join Date
    Sep 2000
    Location
    Germany
    Posts
    117
    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

  3. #3
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Thanx Horst

    Oooh I like that, another "feature" that nobody asked for. thats what we like at microsoft
    thanx to the developers of such helpfull features

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured