CWnd::DragAcceptFiles
Call this member function from within a window, using a CWnd pointer, in your application's CWinApp::InitInstance function to indicate that the window accepts dropped files from the Windows File Manager or Windows Explorer.
void DragAcceptFiles( BOOL bAccept = TRUE // 디폴트가 트루다 ! );
Parameters
- BAccept
-
Flag that indicates whether dragged files are accepted.
사용 예제 ..
CxxApp 에서
InitInstance 함수내에서
위의 그림과 같이
PMainFrame->DragAcceptFiles() 함수를 호출하면
됩니다..
한줄 코딩 ...