How to use mfc71.dll and msvcr71.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabian Heuberger

    How to use mfc71.dll and msvcr71.dll

    Hi there

    I've seen some apps proged with this new styles (styles like VS.NET). I
    think, this apps are using the mfc71.dll and msvcr71.dll from M$. I
    don't know how i have to implement this dll's that i can get this new
    styles (menu, toolbars,...).

    Does somebody know how to use this? the best way would be some samples
    with this dll's.

    Thanks a lot

    Fabu

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: How to use mfc71.dll and msvcr71.dll

    Fabian,

    The new themes support is baked into the operating system. You can
    access it by using the static EnableVisualSty les method on the Application
    class before you enter your message loop (before the static Run method on
    the Application class is called).

    If a control supports the FlatStyle property, then the value must be set
    to FlatStyle.Syste m in order for it to be drawn in the new style.

    This is only supported in the 1.1 version of the framework.

    Hope this helps.

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Fabian Heuberger" <fabian.heuberg er@medical-it-services.ch> wrote in
    message news:bmh6af$jve $1@rex.ip-plus.net...[color=blue]
    > Hi there
    >
    > I've seen some apps proged with this new styles (styles like VS.NET). I
    > think, this apps are using the mfc71.dll and msvcr71.dll from M$. I
    > don't know how i have to implement this dll's that i can get this new
    > styles (menu, toolbars,...).
    >
    > Does somebody know how to use this? the best way would be some samples
    > with this dll's.
    >
    > Thanks a lot
    >
    > Fabu
    >[/color]


    Comment

    • Fabian Heuberger

      #3
      Re: How to use mfc71.dll and msvcr71.dll

      Nicholas Paldino [.NET/C# MVP] wrote:
      [color=blue]
      > Fabian,
      >
      > The new themes support is baked into the operating system. You can
      > access it by using the static EnableVisualSty les method on the Application
      > class before you enter your message loop (before the static Run method on
      > the Application class is called).
      >
      > If a control supports the FlatStyle property, then the value must be set
      > to FlatStyle.Syste m in order for it to be drawn in the new style.
      >
      > This is only supported in the 1.1 version of the framework.
      >
      > Hope this helps.
      >[/color]

      Thanks a lot!

      I'll try this, then i will give feedback about this.

      Best regards
      Fabu

      Comment

      • Fabian Heuberger

        #4
        Re: How to use mfc71.dll and msvcr71.dll

        Nicholas Paldino [.NET/C# MVP] wrote:
        [color=blue]
        > Fabian,
        >
        > The new themes support is baked into the operating system. You can
        > access it by using the static EnableVisualSty les method on the Application
        > class before you enter your message loop (before the static Run method on
        > the Application class is called).
        >
        > If a control supports the FlatStyle property, then the value must be set
        > to FlatStyle.Syste m in order for it to be drawn in the new style.
        >
        > This is only supported in the 1.1 version of the framework.
        >
        > Hope this helps.
        >[/color]

        I've tried this solution. it works fine with buttons, but what do i have
        to do with textBoxes, MainMenu's, Panels, StatusBar,... in this objects
        i can't set this :-(

        Fabu

        Comment

        • Nicholas Paldino [.NET/C# MVP]

          #5
          Re: How to use mfc71.dll and msvcr71.dll

          Fabian,

          If the property doesn't exist, then you don't have to set it. You only
          have to set it when the property does exist. Otherwise, it will just work
          in the other controls when you make the call to EnableVisualSty les.


          --
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard. caspershouse.co m

          "Fabian Heuberger" <fabian.heuberg er@medical-it-services.ch> wrote in
          message news:bmh8qc$k5g $1@rex.ip-plus.net...[color=blue]
          > Nicholas Paldino [.NET/C# MVP] wrote:
          >[color=green]
          > > Fabian,
          > >
          > > The new themes support is baked into the operating system. You can
          > > access it by using the static EnableVisualSty les method on the[/color][/color]
          Application[color=blue][color=green]
          > > class before you enter your message loop (before the static Run method[/color][/color]
          on[color=blue][color=green]
          > > the Application class is called).
          > >
          > > If a control supports the FlatStyle property, then the value must be[/color][/color]
          set[color=blue][color=green]
          > > to FlatStyle.Syste m in order for it to be drawn in the new style.
          > >
          > > This is only supported in the 1.1 version of the framework.
          > >
          > > Hope this helps.
          > >[/color]
          >
          > I've tried this solution. it works fine with buttons, but what do i have
          > to do with textBoxes, MainMenu's, Panels, StatusBar,... in this objects
          > i can't set this :-(
          >
          > Fabu
          >[/color]


          Comment

          Working...