Changeset 8735 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Jun 20, 2002, 4:18:15 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r8700 r8735 1 /* $Id: pmwindow.cpp,v 1.17 8 2002-06-17 14:04:54sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.179 2002-06-20 14:18:15 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 67 67 BOOL fOS2Look = FALSE; 68 68 BOOL fForceMonoCursor = FALSE; 69 BOOL fDragDropActive = FALSE; 70 BOOL fDragDropDisabled = FALSE; 69 71 HBITMAP hbmFrameMenu[3] = {0}; 70 72 … … 264 266 { 265 267 fForceMonoCursor = TRUE; 268 } 269 //****************************************************************************** 270 //****************************************************************************** 271 void WIN32API SetDragDrop(BOOL fDisabled) 272 { 273 fDragDropDisabled = fDisabled; 266 274 } 267 275 //****************************************************************************** … … 785 793 break; 786 794 787 //temporarily disabled788 #if 0789 795 case DM_DRAGOVER: 790 796 { … … 796 802 dprintf(("OS2: DM_DRAGOVER %x (%d,%d)", win32wnd->getWindowHandle(), sxDrop, syDrop)); 797 803 804 if(fDragDropDisabled) { 805 rc = (MRFROM2SHORT (DOR_NEVERDROP, 0)); 806 break; 807 } 808 798 809 //does this window accept dropped files? 799 810 if(!DragDropAccept(win32wnd->getWindowHandle())) { … … 810 821 char *pszFiles; 811 822 812 win32wnd->setDragDropActive(TRUE);813 814 823 pszFiles = PMDragExtractFiles(pDragInfo, &cItems, &ulBytes); 815 824 if(pszFiles) { 816 825 POINT point = {sxDrop, syDrop}; 817 826 if(DragDropDragEnter(win32wnd->getWindowHandle(), point, cItems, pszFiles, ulBytes, DROPEFFECT_COPY_W) == FALSE) { 818 827 rc = (MRFROM2SHORT (DOR_NEVERDROP, 0)); 819 828 } 820 else rc = (MRFROM2SHORT(DOR_DROP, DO_MOVE)); 829 else { 830 fDragDropActive = TRUE; 831 rc = (MRFROM2SHORT(DOR_DROP, DO_MOVE)); 832 win32wnd->setDragDropActive(TRUE); 833 } 821 834 free(pszFiles); 822 835 } … … 837 850 { 838 851 dprintf(("OS2: DM_DRAGLEAVE %x", win32wnd->getWindowHandle())); 852 853 if(fDragDropDisabled) { 854 break; 855 } 856 857 fDragDropActive = FALSE; 858 859 //does this window accept dropped files? 860 if(!DragDropAccept(win32wnd->getWindowHandle())) { 861 break; 862 } 863 839 864 DragDropDragLeave(win32wnd->getWindowHandle()); 840 865 win32wnd->setDragDropActive(FALSE); … … 852 877 dprintf(("OS2: DM_DROP %x (%d,%d)", win32wnd->getWindowHandle(), sxDrop, syDrop)); 853 878 879 fDragDropActive = FALSE; 854 880 rc = (MRFROM2SHORT (DOR_NODROP, 0)); 881 882 if(fDragDropDisabled) { 883 rc = (MRFROM2SHORT (DOR_NODROP, 0)); 884 break; 885 } 855 886 856 887 //does this window accept dropped files? … … 879 910 break; 880 911 } 881 #endif882 912 883 913 case WM_DDE_INITIATE:
Note:
See TracChangeset
for help on using the changeset viewer.