It actually does what it is supposed to, but isn't the way I use to pass ncm.lfCaptionFont to Font::FromLogFont() by marshaling it over the temporary array somewhat overcomplicated?
I expected that C++/CLI would free me from the need to replicate NONCLIENTMETRICS and LOGFONT as my own structures like the C# code from the article does, and that expectation was fulfilled. However, simply passing ncm.lfCaptionFont to Font::FromLogFont() did not work and resulted in an error C2665. Note quite that surprising since, as I understand it, LOGFONT, as a non-primitive native type, can't be implicitly boxed. But isn't there a simpler way than what I did above? I tried a bunch of other variants, mostly involving some sort of casting, all to no avail.
This seems to be a rarely discussed topic, BTW: MSDN search, CG forum search and Google, all for quite some time, did not yield any helpful result at all, not even a hint.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Bookmarks