WinQueryClassThunkProc: Difference between revisions
Appearance
Created page with "This call queries the pointer-conversion procedure associated with a class. ==Syntax== WinQueryClassThunkProc(pszClassName) ==Parameters== ; pszClassName (PSZ) - input : W..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
This call queries the pointer-conversion procedure associated with a class. | This call queries the pointer-conversion procedure associated with a class. | ||
==Syntax== | ==Syntax== | ||
Line 5: | Line 5: | ||
==Parameters== | ==Parameters== | ||
; pszClassName (PSZ) - input | ; pszClassName (PSZ) - input: Window-class name. | ||
: Window-class name. | |||
==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 class. | ||
: | ::Other : Identifier of the pointer-conversion procedure associated with this class. | ||
: | |||
==Example Code== | ==Example Code== | ||
Line 21: | Line 17: | ||
#define INCL_WINWINDOWMGR | #define INCL_WINWINDOWMGR | ||
#define INCL_WINTHUNKAPI | #define INCL_WINTHUNKAPI | ||
#include < | #include <os2.h> | ||
HWND hwnd; | HWND hwnd; | ||
/* . */ | /* . */ | ||
PFN pfn; | PFN pfn; | ||
char *classname; | char *classname; | ||
WinQueryClassName(hwnd, | WinQueryClassName(hwnd, | ||
sizeof(classname), | sizeof(classname), | ||
classname); | classname); | ||
pfn = WinQueryClassThunkProc(classname); | pfn = WinQueryClassThunkProc(classname); | ||
</pre> | </pre> | ||
Line 52: | Line 34: | ||
* [[WinQueryWindowThunkProc]] | * [[WinQueryWindowThunkProc]] | ||
* [[WinSetClassThunkProc]] | * [[WinSetClassThunkProc]] | ||
* [[WinSetWindowThunkProc]] | * [[WinSetWindowThunkProc]] | ||
[[Category:Win]] | [[Category:Win]] |
Latest revision as of 20:24, 27 November 2023
This call queries the pointer-conversion procedure associated with a class.
Syntax
WinQueryClassThunkProc(pszClassName)
Parameters
- pszClassName (PSZ) - input
- Window-class name.
Returns
- thunkpr (PFN) - returns
- Pointer-conversion procedure identifier.
- NULL : No pointer-conversion procedure is associated with this class.
- Other : Identifier of the pointer-conversion procedure associated with this class.
Example Code
This example obtains the pointer conversion procedure of the window class, given that we have an anchor-block handle.
#define INCL_WINWINDOWMGR #define INCL_WINTHUNKAPI #include <os2.h> HWND hwnd; /* . */ PFN pfn; char *classname; WinQueryClassName(hwnd, sizeof(classname), classname); pfn = WinQueryClassThunkProc(classname);