Warning - the following is programmer babble. If you are not likely to find interest in programmer babble, stop reading this entry right about now. In writing a Windows dialog box for auto-update purposes, I was pondering the pieces of data that need to be retained between messages. Since it's a piece of code that I'll likely be reusing, I want to keep its overhead as small as possible, so I'm trying to avoid global variables and such. I also didn't want to have to go mallocing all over the place, because it's a pain. My solution - puttings strings into unused window-control-titles, and handles and pointers into unused GWL_USERDATA spaces. There are no mallocs. Splend.
[23:56]
|