Ignore:
Timestamp:
Jun 20, 2002, 4:18:15 PM (23 years ago)
Author:
sandervl
Message:

drag & drop fix; added SetDragDrop; enabled drag & drop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dragdrop.cpp

    r8553 r8735  
    1 /* $Id: dragdrop.cpp,v 1.2 2002-06-02 19:34:25 sandervl Exp $ */
     1/* $Id: dragdrop.cpp,v 1.3 2002-06-20 14:18:14 sandervl Exp $ */
    22
    33/*
     
    3131    DWORD      dwExStyle;
    3232    HWND       orghwnd = hwnd;
     33   
     34    dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE);
    3335
    34     dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE);
    35    
    3636    //TODO: Is it correct if the window or parent accepts files or must we check the top parent?
    3737    hwnd = (dwExStyle & WS_EX_ACCEPTFILES) ? hwnd : GetParent(hwnd);
     38    dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE);
    3839
    39     dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE);
    4040    if(!(dwExStyle & WS_EX_ACCEPTFILES)) {
    4141        if(pfnDropFiles) {
    42             return pfnDropFiles(hwnd);
     42            return pfnDropFiles(orghwnd);
    4343        }
    4444        return FALSE;
    4545    }
     46
    4647    cbszFiles++;    //extra terminating 0
    4748    hDropFile = GlobalAlloc(0, sizeof(DROPFILES)+cbszFiles);
Note: See TracChangeset for help on using the changeset viewer.