Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
I have a C++/Win32 application with List View control. When the application is started and controls are initialized it receives WM_NOTIFY if the item is selected or changed in List View.

But after opening another window from menu (for instance, "Open file" dialog) the WM_NOTIFY is lost - no notifications received in MainDialog::DialogProc().

Any suggestions how to restore input from List View?
Posted

1 solution

Should relate to modal/modeless thing, check this old thread[^]
 
Share this answer
 
Comments
Sergey Chepurin 1-Jun-11 3:05am    
It can be but I am not sure. See, if i open "Open file" dialog window (which has nothing to do with List View on main window) and then press "Cancel" everything goes fine (WM_NOTIFY received). But if i select some file and press "Open" - the input from List View (WM_NOTIFY) is lost. There are other controls that are not affected, just List View notifications.
Stephen Wiria 1-Jun-11 9:53am    
Can you share your OPENFILENAME struct?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900