Removed use of WND struct.
This commit is contained in:
parent
e9437c73c1
commit
a71e1b4961
14
misc/shell.c
14
misc/shell.c
|
@ -14,10 +14,10 @@
|
||||||
#include "winerror.h"
|
#include "winerror.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "heap.h"
|
#include "heap.h"
|
||||||
|
#include "ldt.h"
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "neexe.h"
|
#include "neexe.h"
|
||||||
#include "dlgs.h"
|
#include "dlgs.h"
|
||||||
#include "win.h"
|
|
||||||
#include "cursoricon.h"
|
#include "cursoricon.h"
|
||||||
#include "sysmetrics.h"
|
#include "sysmetrics.h"
|
||||||
#include "shellapi.h"
|
#include "shellapi.h"
|
||||||
|
@ -67,11 +67,15 @@ static UINT16 uMsgShellActivate = 0;
|
||||||
*/
|
*/
|
||||||
void WINAPI DragAcceptFiles(HWND hWnd, BOOL b)
|
void WINAPI DragAcceptFiles(HWND hWnd, BOOL b)
|
||||||
{
|
{
|
||||||
WND* wnd = WIN_FindWndPtr(hWnd);
|
LONG exstyle;
|
||||||
|
|
||||||
if( wnd )
|
|
||||||
wnd->dwExStyle = b? wnd->dwExStyle | WS_EX_ACCEPTFILES
|
if( !IsWindow(hWnd) )
|
||||||
: wnd->dwExStyle & ~WS_EX_ACCEPTFILES;
|
return;
|
||||||
|
exstyle = GetWindowLongA(hWnd,GWL_EXSTYLE);
|
||||||
|
if (b)exstyle |= WS_EX_ACCEPTFILES;
|
||||||
|
else exstyle &= ~WS_EX_ACCEPTFILES;
|
||||||
|
SetWindowLongA(hWnd,GWL_EXSTYLE,exstyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue