Announcement

Collapse
No announcement yet.

Status bar sizegrip

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Status bar sizegrip

    Hi all,

    I have an SDK dialog created using the following style bits -
    Code:
      %WS_CLIPCHILDREN OR %WS_CAPTION OR %WS_SYSMENU OR %WS_THICKFRAME OR %WS_MINIMIZEBOX
    I then add a status bar in the time-honoured fashion -
    Code:
      hStatus = CreateStatusWindow( %WS_CHILD or %WS_VISIBLE, byval %NULL, hWnd, %ID_STATUSBAR )
    The resulting status bar then has a size grip, even though as you can see the %SBARS_SIZEGRIP style
    wasn't specified. As you might have guessed... I don't actually want a sizing grip to appear.

    If I remove the %WS_THICKFRAME from the dialog, the grip disappears, but then the dialog doesn't
    resize. The answer is probably simple, and obvious, but I'm going round in circles here looking
    for it.

    Can anyone set me right here ?

    Thanks in advance -

    Paul
    Zippety Software, Home of the Lynx Project Explorer
    http://www.zippety.net
    My e-mail

  • #2
    That seems to be automatic... I experimented for a couple of minutes with:
    Code:
    CALL SetWindowLong(hStatus, %GWL_STYLE, (GetWindowLong(hStatus, %GWL_STYLE) AND NOT %SBS_SIZEGRIP))
    But I could not solve it either (tried a few other %SBS_ styles and combinations too). Anyone have SPY handy to delve into this one?

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      What Windows version do you use?

      On w95 i wanted the way you have it but now i MUST add the style before i see it.



      ------------------
      hellobasic

      Comment


      • #4
        It seems to be automatic with Win2K/SP1/IE5.5.

        I did not test on other platforms.

        ------------------
        Lance
        PowerBASIC Support
        mailto:[email protected][email protected]</A>
        Lance
        mailto:[email protected]

        Comment


        • #5
          Paul,

          Try adding the style %CCS_BOTTOM. This should drop that
          ugly sizegrip and give more room in your stat-bar. Apparently
          windows assumes you want the grip and is added as default. I
          also add %WS_BORDER with it.

          Cheers,
          Cecil

          ------------------

          Comment


          • #6
            We have a winner! Well done Cecil!

            ------------------
            Lance
            PowerBASIC Support
            mailto:[email protected][email protected]</A>
            Lance
            mailto:[email protected]

            Comment


            • #7
              A winner indeed - thanks a lot Cecil !
              Zippety Software, Home of the Lynx Project Explorer
              http://www.zippety.net
              My e-mail

              Comment

              Working...
              X