Drag and Drop1 MFC - Drag and Drop 구현 DragAcceptFiles()함수와 WM_DROPFILES메세지를 이용해서 드래그앤드랍을 구현 할 수 있습니다. 다이얼로그 베이스 프로젝트에서 아래와 같이 헤더와 소스파일에서 구현하면 됩니다. CMFCDropFilesDlg.h protected: afx_msg void OnDropFiles(HDROP dropInfo); DECLARE_MESSAGE_MAP() CMFCDropFilesDlg.cpp BEGIN_MESSAGE_MAP(CMFCDropFilesDlg, CDialogEx) ON_WM_DROPFILES() END_MESSAGE_MAP() BOOL CMFCDropFilesDlg::OnInitDialog() { DragAcceptFiles(); // entire dialog list.DragAccept.. 2019. 4. 28. 이전 1 다음 반응형