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

apps that don't expect an atom.
oldstable
Alexandre Julliard 2005-07-22 18:40:21 +00:00
parent 3ff8239dfe
commit 64329de2a6
1 changed files with 3 additions and 7 deletions

View File

@ -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 );
}
/***********************************************************************