How to use mfc71.dll and msvcr71.dll

F

Fabian Heuberger

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
 
N

Nicholas Paldino [.NET/C# MVP]

Fabian,

The new themes support is baked into the operating system. You can
access it by using the static EnableVisualStyles 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.System 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.
 
F

Fabian Heuberger

Nicholas said:
Fabian,

The new themes support is baked into the operating system. You can
access it by using the static EnableVisualStyles 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.System 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.

Thanks a lot!

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

Best regards
Fabu
 
F

Fabian Heuberger

Nicholas said:
Fabian,

The new themes support is baked into the operating system. You can
access it by using the static EnableVisualStyles 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.System 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.

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
 
N

Nicholas Paldino [.NET/C# MVP]

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 EnableVisualStyles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top