Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>setwindowlong()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetWindowLong()
Set a long (32-bit) value into a window structure
------------------------------------------------------------------------------

Syntax
SetWindowLong( <hWnd>, <nPos>, <nValue> )   -->   nOldValue

Arguments
<hWnd> is a handle to a window.

<nPos> is the long whose value is to be changed.  (Use one of
the GWL_* values defined in WINDOWS.CH.)

<nValue> is the value to be stored in the specified position.

Returns
The previous value is returned as an integer.

Description
This function can be used to change a long (32-bit value) in
the window structure that is maintained internally by Windows.

You should be sure you know what you're doing...

Example
// This is an example, and is not recommended
nOldStyle = SetWindowLong( hWnd, GWL_STYLE, nNewStyle )
? "This window's style was: ", nOldStyle


See Also: GetWindowLong() GetWindowWord() SetWindowWord()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson