WinQueryWindowThunkProc: Difference between revisions
Appearance
Created page with "This function queries the pointer-conversion procedure associated with a window. ==Syntax== WinQueryWindowThunkProc(''hwnd'') ==Parameters== ;hwnd (HWND) - input :Window h..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
This function queries the pointer-conversion procedure associated with a window. | This function queries the pointer-conversion procedure associated with a window. | ||
==Syntax== | ==Syntax== | ||
Line 5: | Line 5: | ||
==Parameters== | ==Parameters== | ||
;hwnd (HWND) - input | ;hwnd (HWND) - input:Window handle. | ||
:Window handle. | |||
==Returns== | ==Returns== | ||
;thunkpr (PFN) - returns | ;thunkpr (PFN) - returns:Pointer-conversion procedure identifier. | ||
:Pointer-conversion procedure identifier. | :;NULL:No pointer-conversion procedure is associated with this window. | ||
:;NULL | :;Other:Identifier of the pointer-conversion procedure associated with this window. | ||
:;Other | |||
==Example Code== | ==Example Code== | ||
Line 19: | Line 16: | ||
<pre> | <pre> | ||
#define INCL_WINTHUNKAPI | #define INCL_WINTHUNKAPI | ||
#include < | #include <os2.h> | ||
HWND hwndFrame; | HWND hwndFrame; | ||
Line 25: | Line 22: | ||
pthnkproc = WinQueryWindowThunkProc(hwndFrame); | pthnkproc = WinQueryWindowThunkProc(hwndFrame); | ||
</pre> | </pre> | ||
Line 44: | Line 29: | ||
* [[WinSetClassThunkProc]] | * [[WinSetClassThunkProc]] | ||
* [[WinSetWindowThunkProc]] | * [[WinSetWindowThunkProc]] | ||
[[Category:Win]] | [[Category:Win]] |
Latest revision as of 20:43, 27 November 2023
This function queries the pointer-conversion procedure associated with a window.
Syntax
WinQueryWindowThunkProc(hwnd)
Parameters
- hwnd (HWND) - input
- Window handle.
Returns
- thunkpr (PFN) - returns
- Pointer-conversion procedure identifier.
- NULL
- No pointer-conversion procedure is associated with this window.
- Other
- Identifier of the pointer-conversion procedure associated with this window.
Example Code
This example shows how to get pointer conversion procedure associated with the frame window.
#define INCL_WINTHUNKAPI #include <os2.h> HWND hwndFrame; PFN pthnkproc; pthnkproc = WinQueryWindowThunkProc(hwndFrame);