Jump to content

DrgQueryDraginfoPtrFromHwnd

From EDM2
Revision as of 00:23, 8 April 2025 by Iturbide (talk | contribs) (Created page with "This function determines whether a particular window has allocated a DRAGINFO structure. ==Syntax== DrgQueryDraginfoPtrFromHwnd(hwndSource) ==Parameters== ;hwndSource (HWND) - input: Handle of the window whose associated DRAGINFO pointer is to be returned. ==Returns== ;pDraginfo (PDRAGINFO) - returns: Pointer to the DRAGINFO structure allocated by the window specified by hwndSource. :: If the return value is NULL, the DRAGINFO structure has not been allocated...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function determines whether a particular window has allocated a DRAGINFO structure.

Syntax

DrgQueryDraginfoPtrFromHwnd(hwndSource)

Parameters

hwndSource (HWND) - input
Handle of the window whose associated DRAGINFO pointer is to be returned.

Returns

pDraginfo (PDRAGINFO) - returns
Pointer to the DRAGINFO structure allocated by the window specified by hwndSource.
If the return value is NULL, the DRAGINFO structure has not been allocated.

Remarks

The application can gain access to the structure DRAGINFO by calling DrgAccessDraginfo.

Example Code

#define INCL_WINSTDDRAG
#include <os2.h>

HWND      hwndWindow; /* Window handle                     */
PDRAGINFO pinfo;      /* Pointer to a DRAGINFO structure */

pdinfo=DrgQueryDraginfoPtrFromHwnd(hwndWindow);
If (pdinfo) {
.
.
.
}

Related Functions