Commit 64329de2 authored by Alexandre Julliard's avatar Alexandre Julliard

Store the SysIP property using a string to avoid trouble with 16-bit

apps that don't expect an atom.
parent 3ff8239d
......@@ -75,20 +75,16 @@ typedef struct
HWND hwndIconTitle;
} INTERNALPOS, *LPINTERNALPOS;
/* ----- internal variables ----- */
static LPCSTR atomInternalPos;
/* ----- internal functions ----- */
static inline INTERNALPOS *get_internal_pos( HWND hwnd )
{
if (!atomInternalPos) return NULL;
return GetPropA( hwnd, atomInternalPos );
return GetPropA( hwnd, "SysIP" );
}
static inline void set_internal_pos( HWND hwnd, INTERNALPOS *pos )
{
if (!atomInternalPos) atomInternalPos = (LPCSTR)(DWORD)GlobalAddAtomA("SysIP");
SetPropA( hwnd, atomInternalPos, pos );
SetPropA( hwnd, "SysIP", pos );
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment