Category : Files from Magazines
Archive   : WDAPR92.ZIP
Filename : 3N04062B

 
Output of file : 3N04062B contained in archive : WDAPR92.ZIP
/******************************************************
WndExtra Access Functions

Description:
The following functions access data whose offset
is specified as a negative index from the end
of the class's wndExtra data block. This allows
the same data to be added to multiple subclasses,
even though their superclasses have variable length
wndExtra data blocks.
In each function, the size of the wndExtra data block
is first retrieved, then the Windows-compatible offset
is calculated and passed to the corresponding Windows
function.

Author: Gregory C. Peters
******************************************************/

WORD pSetWindowWord(HWND hWnd, int offset, WORD value)
{
WORD wndExtra = GetClassWord(hWnd, GCW_CBWNDEXTRA);
return(SetWindowWord(hWnd, wndExtra + offset, value));
}

WORD pGetWindowWord(HWND hWnd, int offset)
{
WORD wndExtra = GetClassWord(hWnd, GCW_CBWNDEXTRA);
return(GetWindowWord(hWnd, wndExtra + offset));
}

LONG pSetWindowLong(HWND hWnd, int offset, DWORD value)
{
WORD wndExtra = GetClassWord(hWnd, GCW_CBWNDEXTRA);
return(SetWindowLong(hWnd, wndExtra + offset, value));
}

LONG pGetWindowLong(HWND hWnd, int offset)
{
WORD wndExtra = GetClassWord(hWnd, GCW_CBWNDEXTRA);
return(GetWindowLong(hWnd, wndExtra + offset));
}


  3 Responses to “Category : Files from Magazines
Archive   : WDAPR92.ZIP
Filename : 3N04062B

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/