J
jon
I'm trying to have a section where people can just start dragging
files into a textbox and the full location of the file will be stored.
MS-Dos has this function built into it, and it's written in C, so it
has to work, I've built a textbox that accepts files:
hMsgBox = CreateWindowEx(WS_EX_CLIENTEDGE | WS_EX_ACCEPTFILES, "EDIT",
"",
WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL,
15, 30, 420, 20, hwnd, (HMENU)IDD_MSG_BOX, GetModuleHandle(NULL),
NULL);
I also have, under the WM_command for the window, (for default) a
message box that displays the current message that is being ignored.
When i drag a file to the textbox i get the dropping arrow (the cursor
that says your allowed to drop) and when i drop i receive no message.
when i click on the text box i get a message, so i know it is working.
heres the code for the WM_COMMAND:
default:
{
char m[15]; //some random number
sprintf(m, "%d", LOWORD(wParam));
MessageBox(hwnd, m, "message", MB_OK);
}
break;
Please help.
files into a textbox and the full location of the file will be stored.
MS-Dos has this function built into it, and it's written in C, so it
has to work, I've built a textbox that accepts files:
hMsgBox = CreateWindowEx(WS_EX_CLIENTEDGE | WS_EX_ACCEPTFILES, "EDIT",
"",
WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL,
15, 30, 420, 20, hwnd, (HMENU)IDD_MSG_BOX, GetModuleHandle(NULL),
NULL);
I also have, under the WM_command for the window, (for default) a
message box that displays the current message that is being ignored.
When i drag a file to the textbox i get the dropping arrow (the cursor
that says your allowed to drop) and when i drop i receive no message.
when i click on the text box i get a message, so i know it is working.
heres the code for the WM_COMMAND:
default:
{
char m[15]; //some random number
sprintf(m, "%d", LOWORD(wParam));
MessageBox(hwnd, m, "message", MB_OK);
}
break;
Please help.