Windows Framework

  • Thread starter Thread starter Tim Zottberg
  • Start date Start date
T

Tim Zottberg

Hello!

I thought that the last post was closed, but then Tom wrote something
interesting.
Sorry I didn't post in the old subject...

The Windows Framework is meant to enabled XP styles, correct?
If I want to start with a sub main then I cannot have XP styles, correct?

So what is the usual workaround?
Put all initialization into the form's load event?

Out of curiosity... does somebody know why there is such a big
difference resulting in such elementary decision if we want to use the
Windows Framework just because we decide to use a sub main??? Or in
other words: WHY?? :-)

Best regards!
Tim.
 
Tim Zottberg said:
Hello!

I thought that the last post was closed, but then Tom wrote
something interesting.
Sorry I didn't post in the old subject...

The Windows Framework is meant to enabled XP styles, correct?
If I want to start with a sub main then I cannot have XP styles,
correct?

No. Call Application.EnableVisualStyles as the first line in Sub Main.

So what is the usual workaround?
Put all initialization into the form's load event?

Out of curiosity... does somebody know why there is such a big
difference resulting in such elementary decision if we want to use
the Windows Framework just because we decide to use a sub main??? Or
in other words: WHY?? :-)

You probably mean the Application Framework, right? Well, it does things for
us that are not done if we don't use it. :) It includes enabling visual
styles, but you can enable it also.


Armin
 
Yes! Right! I mean the Application Framework! Phew, thanks :-)))

Good to hear that I can keep my old programming style...

Cheers,
Tim
 
Times are changing ;-)

Okay, I want to get left behind... Can you tell me what the Application
Framework means in this case?

Best regards,
Tim.
 
Okay, I want to get left behind... Can you tell me what the Application
Framework means in this case?


I noticed you wrote:

"Out of curiosity... does somebody know why there is such a big
difference resulting in such elementary decision if we want to use the
Windows Framework just because we decide to use a sub main??? Or in
other words: WHY?? :-)"

There isn't really - it's just that with the application framework MS has
provided all the initialization code. You can still write your own as you
see...

Or you can use the provided applicatino framework and handle intialization
using the application framework events.
 
Back
Top