uLib  User mode C/C++ extended API library for Win32 programmers.

Module Description

Floating point window text functions.

Functions

double GetWndReal (HWND hCtl)
 
double GetDlgItemReal (HWND hDlg, UINT Id)
 
bool SetWndReal (HWND hCtl, double Value, BYTE nDeci, CSTR Suffix=NULL)
 
bool SetDlgItemReal (HWND hDlg, UINT Id, double Value, BYTE nDeci, CSTR Suffix=NULL)
 

Function Documentation

◆ GetWndReal()

double GetWndReal ( HWND  hCtl)

GetWndReal uses GetWindowText and _tcstod to return a real nr.
In case of an error, the return value is HUGE_VAL.

Definition at line 1243 of file UserUtil.cpp.

◆ GetDlgItemReal()

double GetDlgItemReal ( HWND  hDlg,
UINT  Id 
)

See GetWndReal().

Definition at line 1249 of file UserUtil.cpp.

◆ SetWndReal()

bool SetWndReal ( HWND  hCtl,
double  Value,
BYTE  nDeci,
CSTR  Suffix = NULL 
)

SetWndReal uses stprintf_s and _SetWindowText() to format a real Value into a control.
Suffix, if specified, is added to the text.

Definition at line 1254 of file UserUtil.cpp.

◆ SetDlgItemReal()

bool SetDlgItemReal ( HWND  hDlg,
UINT  Id,
double  Value,
BYTE  nDeci,
CSTR  Suffix = NULL 
)

See SetWndReal().

Definition at line 1262 of file UserUtil.cpp.