Linked by Thom Holwerda on Tue 6th Feb 2007 17:13 UTC
Windows "Windows XP introduced Visual Styles as a mechanism for providing more visual appeal to windows and controls. Menus, however, were not rendered using visual styles for Windows XP. With Windows Vista menus now are part of the visual schema and are rendered using the visual styles engine."
Thread beginning with comment 209700
To read all comments associated with this story, please click here.
Ugh...
by SpasmaticSeacow on Tue 6th Feb 2007 17:41 UTC
SpasmaticSeacow
Member since:
2006-02-17

What horrific looking code.

Reply Score: 0

RE: Ugh...
by denmark_sucks_cock on Tue 6th Feb 2007 18:00 in reply to "Ugh..."
denmark_sucks_cock Member since:
2006-04-05

It's C code ya nitwit...it all looks like that. Use C# or another HLL if it bothers you.

Reply Parent Score: 2

RE[2]: Ugh...
by MikeGA on Tue 6th Feb 2007 18:40 in reply to "RE: Ugh..."
MikeGA Member since:
2005-07-22

Mind you the blue text on charcoal background is pretty painful to look at.

Reply Parent Score: 4

RE[2]: Ugh...
by ebasconp on Tue 6th Feb 2007 21:48 in reply to "RE: Ugh..."
ebasconp Member since:
2006-05-09

Looking at the code remembers me the horrible times of Win32 API (though the code is really that) and MFC.

"It's C code ya nitwit...it all looks like that."

That is not true!

You can code using beautiful C++ frameworks and your code will look better, more elegant and less cryptic than that (Qt comes to my mind).

Reply Parent Score: 1

RE: Ugh...
by PlatformAgnostic on Tue 6th Feb 2007 18:56 in reply to "Ugh..."
PlatformAgnostic Member since:
2006-01-02

Unfortunately it's not just because it's C code. It's C++ code calling into COM, which never looks that great. COM is great for a component like WIC, which has to be high-performance and callable from both native and managed code (for some reason, I know quite a bit about WIC), but there is a reason why .NET exists: it's just so much prettier and easier to code for than COM.

Reply Parent Score: 2