I am wondering if someone could point me in the right direction. I want to drag and drop hyperlinks (.url files) from Internet Explorer to my application, but I can't get any part of my application to accept these files -- I only get a black circle with a line through it, which indicates that a drag drop operation cannot be performed.

Can someone tell me what site(s) I can visit which will show me how to get a window to accept this operation, and which windows message(s) to process afterwards?

Here is what I have tried, among other things...

Using windows Spy++ I monitored Internet Explorer while dropping a hyperlink to its own ComboBox -- which, of course, accepts this operation. Here is what was recorded in the log file:

<00001> 00000198 S WM_NCHITTEST xPos:207 yPos:133
<00002> 00000198 R WM_NCHITTEST nHittest:HTCLIENT
<00003> 00000198 S WM_SETCURSOR hwnd:00000198 nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
<00004> 00000198 R WM_SETCURSOR fHaltProcessing:True
<00005> 00000198 P WM_MOUSEMOVE fwKeys:0000 xPos:54 yPos:21
<00006> 00000198 S WM_NCHITTEST xPos:329 yPos:133
<00007> 00000198 R WM_NCHITTEST nHittest:HTCLIENT
<00008> 00000198 S WM_NCHITTEST xPos:329 yPos:132
<00009> 00000198 R WM_NCHITTEST nHittest:HTCLIENT
<00010> 00000198 S WM_NCHITTEST xPos:329 yPos:131
<00011> 00000198 R WM_NCHITTEST nHittest:HTCLIENT
<00012> 00000198 S .CB_GETCOUNT
<00013> 00000198 R .CB_GETCOUNT cItems:0
<00014> 00000198 S .CB_RESETCONTENT
<00015> 00000198 R .CB_RESETCONTENT lResult:0001
<00016> 00000198 S .CB_GETCURSEL
<00017> 00000198 R .CB_GETCURSEL index:CB_ERR
<00018> 00000198 S .WM_GETFONT
<00019> 00000198 R .WM_GETFONT hfont:00000400 ("MS Sans Serif" 8pt)
<00020> 00000198 S ..CB_SETITEMHEIGHT index:-1 (the selection field) height:16
<00021> 00000198 S ...WM_WINDOWPOSCHANGING lpwp:005874D6
<00022> 00000198 R ...WM_WINDOWPOSCHANGING
<00023> 00000198 R ..CB_SETITEMHEIGHT lResult:CB_OKAY
<00024> 00000198 S ...WM_WINDOWPOSCHANGING lpwp:00587244
<00025> 00000198 R ...WM_WINDOWPOSCHANGING
<00026> 00000198 S ...WM_WINDOWPOSCHANGED lpwp:00587284
<00027> 00000198 R ...WM_WINDOWPOSCHANGED
<00028> 00000198 S ...WM_GETFONT
<00029> 00000198 R ...WM_GETFONT hfont:00000400 ("MS Sans Serif" 8pt)
<00030> 00000198 S ...WM_ERASEBKGND hdc:000005FE
<00031> 00000198 R ...WM_ERASEBKGND fErased:True
<00032> 00000198 S ...CB_SETDROPPEDWIDTH wWidth:200
<00033> 00000198 R ...CB_SETDROPPEDWIDTH wWidth:488
<00034> 00000198 S .CB_SETITEMHEIGHT index:0 height:16
<00035> 00000198 R .CB_SETITEMHEIGHT lResult:CB_OKAY
<00036> 00000198 S .WM_GETFONT
<00037> 00000198 R .WM_GETFONT hfont:00000400 ("MS Sans Serif" 8pt)
<00038> 00000198 S .CB_SETDROPPEDWIDTH wWidth:200
<00039> 00000198 R .CB_SETDROPPEDWIDTH wWidth:488
<00040> 00000198 S .CB_SETEXTENDEDUI fExtended:True
<00041> 00000198 R .CB_SETEXTENDEDUI lResult:CB_OKAY
<00042> 00000198 S ..WM_COMMAND wNotifyCode:EN_UPDATE wID:41477 hwndCtl:000001A0
<00043> 00000198 R ..WM_COMMAND
<00044> 00000198 S ..WM_COMMAND wNotifyCode:EN_CHANGE wID:41477 hwndCtl:000001A0
<00045> 00000198 S ...CB_GETCURSEL
<00046> 00000198 R ...CB_GETCURSEL index:CB_ERR
<00047> 00000198 R ..WM_COMMAND
<00048> 00000198 S .WM_SETCURSOR hwnd:000001A0 nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
<00049> 00000198 R .WM_SETCURSOR fHaltProcessing:True
<00050> 00000198 P WM_PAINT hdc:00000000
<00051> 00000198 S WM_ERASEBKGND hdc:00000E36
<00052> 00000198 R WM_ERASEBKGND fErased:True
<00053> 00000198 S WM_CTLCOLOREDIT hdcEdit:00000E36 hwndEdit:000001A0
<00054> 00000198 R WM_CTLCOLOREDIT hBrush:00000756
<00055> 00000198 S WM_CTLCOLOREDIT hdcEdit:00000E36 hwndEdit:000001A0
<00056> 00000198 R WM_CTLCOLOREDIT hBrush:00000756
<00057> 00000198 S .WM_SETCURSOR hwnd:000001A0 nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
<00058> 00000198 R .WM_SETCURSOR fHaltProcessing:True
<00059> 00000198 S WM_NCHITTEST xPos:330 yPos:131
<00060> 00000198 R WM_NCHITTEST nHittest:HTCLIENT
<00061> 00000198 S WM_SETCURSOR hwnd:00000198 nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
<00062> 00000198 R WM_SETCURSOR fHaltProcessing:True
<00063> 00000198 P WM_MOUSEMOVE fwKeys:0000 xPos:177 yPos:19

This would be somewhat helpful if I could get my application's ComboBox to accept files dragged to it from Internet Explorer -- Yes, I tried WS_EX_ACCEPTFILES.

Any suggestions???

Thanks a lot

Echidna