WGX Logo WGX library

Architecture - Reference Manual - Guides

Miscellaneous

Functions

void __cdecl WgxEnableWindows (HANDLE hMainWindow,...)
 Enables a child windows.
void __cdecl WgxDisableWindows (HANDLE hMainWindow,...)
 Disables a child windows.
void __stdcall WgxSetIcon (HINSTANCE hInstance, HWND hWindow, UINT IconID)
 Sets a window icon.
HFONT __stdcall WgxSetFont (HWND hWindow, LPLOGFONT lplf)
 Sets a font for the window and all its children.
void __stdcall WgxCheckWindowCoordinates (LPRECT lprc, int min_width, int min_height)
 Prevents a window to be outside the screen.
BOOL __stdcall WgxShellExecuteW (HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
 Calls a Win32 ShellExecute() procedure and shows a message box with detailed information in case of errors.

Function Documentation

void __cdecl WgxEnableWindows ( HANDLE  hMainWindow,
  ... 
)

Enables a child windows.

Parameters:
[in] hMainWindow handle to the main window.
[in] ... the list of resource identifiers of child windows.
Note:
The list of identifiers must be terminated by zero.

Definition at line 42 of file misc.c.

void __cdecl WgxDisableWindows ( HANDLE  hMainWindow,
  ... 
)

Disables a child windows.

Parameters:
[in] hMainWindow handle to the main window.
[in] ... the list of resource identifiers of child windows.
Note:
The list of identifiers must be terminated by zero.

Definition at line 62 of file misc.c.

void __stdcall WgxSetIcon ( HINSTANCE  hInstance,
HWND  hWindow,
UINT  IconID 
)

Sets a window icon.

Parameters:
[in] hInstance handle to an instance of the module whose executable file contains the icon to load.
[in] hWindow handle to the window.
[in] IconID the resource identifier of the icon.

Definition at line 83 of file misc.c.

HFONT __stdcall WgxSetFont ( HWND  hWindow,
LPLOGFONT  lplf 
)

Sets a font for the window and all its children.

Parameters:
[in] hWindow handle to the window.
[in] lplf pointer to the LOGFONT structure describing the font.
Returns:
A handle to the font. NULL indicates failure.

Definition at line 99 of file misc.c.

void __stdcall WgxCheckWindowCoordinates ( LPRECT  lprc,
int  min_width,
int  min_height 
)

Prevents a window to be outside the screen.

Parameters:
[in,out] lprc pointer to the structure containing windows coordinates.
[in] min_width width of the minimal visible part of the window.
[in] min_height height of the minimal visible part of the window.

Definition at line 130 of file misc.c.


Generated on Sat May 29 23:06:45 2010 for WGX by doxygen 1.6.2