For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > May 2005 > ListView & Control Hierarchy









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ListView & Control Hierarchy
Yudi

2005-05-23, 3:59 pm

Hi all,

I'm having a problem with child/grandchild controls.

I created a custom control as a child of the main window, and then
created a ListView control as a child of that control. The problem is
that the ListView doesn't get any input messages (up/down navigation),
since the main window, which is a dialog for that matter, handles these
commands itself as tab navigation messages.

The child control of the main window can recieve all messages by
handling the WM_GETDLGCODE message and then forward navigation messages
to the ListView, but there are some cases where I have more than one
control as a child of the main window, and in that case I don't want it
to 'eat' all messages.

Any ideas?

Thanks!
Yudi.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com