I suggest the folowing options:
1. GetNextView enumerate in the sequence of creation. So you can know which is ListView
2. You can use GetRuntimeClass or typeid or dynamic_cast
3. You can Send some message for every view and process the message just for ListView
POSITION pos = GetFirstViewPosition();
while (pos != NULL)
{
CMyView* pView = GetNextView(pos);
::SendMessage(pView->GetSafeHwnd,....);
}
Rating isn't important...But gurus respect it and keep high
igbrus
| Sat, 10 Nov 2007 06:05:00 GMT |