I gave it property of accepting files by using the resource editor.Now the problem is
if I drag files in to it,the mouse pointer changes but no filename is seen in the edit box. I somewhere read about WM_DROPFILES but I don't have any idea of how to implement it. I have a switch case as shown below.
Expand|Select|Wrap|Line Numbers
- switch(msg)
- {
- case WM_INITDIALOG:SetDlgItemText(hwnd,IDC_TEXT,"");
- break;
- case WM_COMMAND://Some statements
- break;
- case WM_CLOSE:EndDialog(hwnd,0);
- break;
- case default:return FALSE;
- }
- return TRUE;
- }
Where should I put the WM_DROPFILES command and how can I get the filename to be printed on the edit box IDC_TEXT.
Pleasee