Our application when checked with spy seems to be sending this message endlessly. We what to be able to track it down in code but are not able to ..
Any suggestions?
Printable View
Our application when checked with spy seems to be sending this message endlessly. We what to be able to track it down in code but are not able to ..
Any suggestions?
WHat do you mean track it down ? The originator of this message ?
Why is that bothering you? Changing visibility of the window for example will send this message.
Well it was being send even when no document is open and the application is sitting idel. We want to make sure we are no changing the STYLE repeatedly in the main application timer.
Anyways I tracked it down to ..
If I comment this line out I don't see that. Why would this cause WM_STYLECHANGED ?
Anyways after looking into MSDN it say DragAcceptFiles should be in InitInstance and it was in OnUpdateFileNew which ofcourse is going to be called always. I moved it there and I don't see that message.PHP Code:m_pMainWnd->DragAcceptFiles(bEnable);
We are still getting a WM_NOTIFY
DragAcceptFiles changes extended window style to WS_EX_ACCEPTFILES.
Many action that require changing window functionality or state change either style or extended style.
About WM_NOTIFY, could you elaborate?