digitalmars.D.dwt - WM_DROPFILES (hello Shawn!)
- bobef (14/14) Feb 19 2006 I trying to add WM_DROPFILES event for the windows version of DWT. I
- Shawn Liu (5/19) Feb 20 2006 I think the additional Windows Message can be handled correctly in DWT.
- bobef (2/26) Feb 20 2006 This is why I said it is strange...
- bobef (4/19) Feb 20 2006 I found easier way to get notified on WM_DROPFILES - hooks (hook for
- bobef (4/26) Feb 20 2006 OK. Did the DDE too. The tricky part is that WM_DDE_INITATE goes to
I trying to add WM_DROPFILES event for the windows version of DWT. I spent few hours studying the DWT internals... I defined new event in DWT, added new event class and all the stuff. I put all the stuff in a new version called SWT_SECT so it could be separated from the original SWT, but I have very strange problem. When I add new case for OS.WM_DROPFILES in the Control's windowProc I get unhandled exception in decorations.d 941 . Maybe I am doing something wrong? Could you (Shawn) explain briefly what is involved in adding new event handlers to DWT? I plan to add WM_DROPFILES and DDE handlers. Something like addDDEListener(service,topic)... I believe it would be useful to have these in the windows version, and even if they are not included in the official distribution, they are necessary for my project - akide. Thank you, bobef
Feb 19 2006
"bobef" <bobef lessequal.com> says:dt9qmi$28ho$1 digitaldaemon.com...I trying to add WM_DROPFILES event for the windows version of DWT. I spent few hours studying the DWT internals... I defined new event in DWT, added new event class and all the stuff. I put all the stuff in a new version called SWT_SECT so it could be separated from the original SWT, but I have very strange problem. When I add new case for OS.WM_DROPFILES in the Control's windowProc I get unhandled exception in decorations.d 941 . Maybe I am doing something wrong? Could you (Shawn) explain briefly what is involved in adding new event handlers to DWT? I plan to add WM_DROPFILES and DDE handlers. Something like addDDEListener(service,topic)... I believe it would be useful to have these in the windows version, and even if they are not included in the official distribution, they are necessary for my project - akide. Thank you, bobefI think the additional Windows Message can be handled correctly in DWT. decorations.d line 941 only complains that there is a null image parameter passed into the setImages() method. http://trac.dsource.org/projects/dwt/browser/trunk/current/win32/import/dwt/widgets/decorations.d?rev=96#L941
Feb 20 2006
Shawn Liu wrote:"bobef" <bobef lessequal.com> says:dt9qmi$28ho$1 digitaldaemon.com...This is why I said it is strange...I trying to add WM_DROPFILES event for the windows version of DWT. I spent few hours studying the DWT internals... I defined new event in DWT, added new event class and all the stuff. I put all the stuff in a new version called SWT_SECT so it could be separated from the original SWT, but I have very strange problem. When I add new case for OS.WM_DROPFILES in the Control's windowProc I get unhandled exception in decorations.d 941 . Maybe I am doing something wrong? Could you (Shawn) explain briefly what is involved in adding new event handlers to DWT? I plan to add WM_DROPFILES and DDE handlers. Something like addDDEListener(service,topic)... I believe it would be useful to have these in the windows version, and even if they are not included in the official distribution, they are necessary for my project - akide. Thank you, bobefI think the additional Windows Message can be handled correctly in DWT. decorations.d line 941 only complains that there is a null image parameter passed into the setImages() method. http://trac.dsource.org/projects/dwt/browser/trunk/current/win32/import/dwt/widgets/decorations.d?rev=96#L941
Feb 20 2006
I found easier way to get notified on WM_DROPFILES - hooks (hook for WH_GETMESSAGE after DragAcceptFiles(shell.handle,1); ) I still can't have a full DDE conversation this way but give it some time... bobef wrote:I trying to add WM_DROPFILES event for the windows version of DWT. I spent few hours studying the DWT internals... I defined new event in DWT, added new event class and all the stuff. I put all the stuff in a new version called SWT_SECT so it could be separated from the original SWT, but I have very strange problem. When I add new case for OS.WM_DROPFILES in the Control's windowProc I get unhandled exception in decorations.d 941 . Maybe I am doing something wrong? Could you (Shawn) explain briefly what is involved in adding new event handlers to DWT? I plan to add WM_DROPFILES and DDE handlers. Something like addDDEListener(service,topic)... I believe it would be useful to have these in the windows version, and even if they are not included in the official distribution, they are necessary for my project - akide. Thank you, bobef
Feb 20 2006
OK. Did the DDE too. The tricky part is that WM_DDE_INITATE goes to WH_CALLWNDPROC (maybe WH_CALLWNDPROCRET too, haven't tried) and WM_DDE_EXECUTE/TERMINATE goes to WH_GETMESSAGE ... bobef wrote:I found easier way to get notified on WM_DROPFILES - hooks (hook for WH_GETMESSAGE after DragAcceptFiles(shell.handle,1); ) I still can't have a full DDE conversation this way but give it some time... bobef wrote:I trying to add WM_DROPFILES event for the windows version of DWT. I spent few hours studying the DWT internals... I defined new event in DWT, added new event class and all the stuff. I put all the stuff in a new version called SWT_SECT so it could be separated from the original SWT, but I have very strange problem. When I add new case for OS.WM_DROPFILES in the Control's windowProc I get unhandled exception in decorations.d 941 . Maybe I am doing something wrong? Could you (Shawn) explain briefly what is involved in adding new event handlers to DWT? I plan to add WM_DROPFILES and DDE handlers. Something like addDDEListener(service,topic)... I believe it would be useful to have these in the windows version, and even if they are not included in the official distribution, they are necessary for my project - akide. Thank you, bobef
Feb 20 2006