02-17-2006 04:11 PM
02-17-2006 04:20 PM
There should be no performance hit when using a typedef. The general rule is, when you use the term "multiple instances" when describing your use of a custom control, it better be a typedef. 🙂 As far as regular vs. strict, if you ever anticipate modifying the appearance of different instances of the control to be different than each other, use a typedef. Otherwise use a strict typedef. Personally, none of my typedefs are ever seen by an end user (since my typedefs are data structures, generally), so I always use strict typedefs.
-D
02-17-2006 06:04 PM
02-17-2006 06:06 PM
Yup, definitely typedef an enum. One of my teammates actually advocates typedefing any enum, even if you're *sure* you'll only use it in one place. Because inevitably, you'll need it somewhere else. 😉
-D