Group: comp.os.mswindows.programmer.win32 · Group Profile
Date: May 8, 2008 17:37
"mark" hilton.com> wrote in message news:g00248$bos$1@aioe.org...
> ssylee wrote:
>> I'm new to Windows programming, but have been exposed to enough C++/C
>> to get started on the topic. I have been going through some Windows C+
>> + programming code. In a lot of source files, I have found quite a few
>> lines of entries of lookup tables. However, I'm not familiar of how
>> they are used in runtime. Any explanation would help a lot. Thanks.
At a guess, these tables might be the message maps used with MFC and ATL
libraries. Windows sends numerous messages to programs that create windows.
That's how you get your input about mouse, keys, etc. Message maps are used
to associate each message with a particular function. So when a message
comes in your function designed to handle it gets called, via the lookup
table.
--
Scott McPhillips [VC++ MVP]
|