Hi,
I have a dialog based application, in my dialog I placed a CListCtrl and using the class wizard I added a handler for the NM_CLICK message.
my problem is the following:
- when the dialog is first created, clicking on the list for the first time does not call the message handler I have to click a second time for the notification to be handled
- if I hide the list using ShowWindow(SW_HIDE)
and then re-show it using ShowWindow(SW_RESTORE)
the first click (when the list appears) does not generate a notification
what could be wrong??
any help is greatly appreciated
I have a dialog based application, in my dialog I placed a CListCtrl and using the class wizard I added a handler for the NM_CLICK message.
my problem is the following:
- when the dialog is first created, clicking on the list for the first time does not call the message handler I have to click a second time for the notification to be handled
- if I hide the list using ShowWindow(SW_HIDE)
and then re-show it using ShowWindow(SW_RESTORE)
the first click (when the list appears) does not generate a notification
what could be wrong??
any help is greatly appreciated