PA_GetHWND

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetHWND (windowRef) long

ParameterTypeDescription
windowRefPA_WindowRef4D Window reference to convert to HWND
Function resultlongCorresponding HWND value of windowRef

Description

The routine PA_GetHWND converts a 4D window reference into a Windows regular HWND.

If you pass 0, it returns the current window HWND

Example

Force window update under Windows.

   #if VERSIONWIN
   HWND   frontWindow;

   frontWindow = PA_GetHWND(0L);
   InvalidateRect(PA_GetHWND(0L), NULL, FALSE);
   #endif

See Also

No reference.

Error Handling

Use PA_GetLastError to see if an error occurred


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next