I'm using CW Pro 3.1 along with SDK 3.0.
I found neither CFbsFont::TextWidthInPixels() or CFbsFont::HeightInPixels() can
work normally on emulator(not even to port to device). If you call CFbsFont::TextWidthInPixels(), It would even carsh.
here are part of my code
The emulator will crash in the line "font->TextWidthInPixels(tTemp)". I'm pretty sure that "font" is assigned successfully. and no matter what kind of font you specify(ex. Arial or Roamn or others). It will still crash.
The other classes I use here(like cWindowDC) is fully tested and OK. these codes can work perfectly on emulator SDK 2.X. So I doublt that must be something wrong with Emulator 3.0.
Can any body give me a clue on this or anyone has ever successfully run CFbsFont::TextWidthInPixels() on emulator 3.0.