home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zfamily.zip
/
zfamily
/
ZNLFUNCS
/
SAMPLE
/
TSTNTNL.INC
< prev
next >
Wrap
Text File
|
1993-09-21
|
3KB
|
57 lines
/*
** /----------------------------------------------------------------------\
** | IBM Z Family Reusable Libraries/2 (5641-504) |
** |----------------------------------------------------------------------|
** | (C) Copyright International Business Machines Corporation 1993, 1994 |
** |----------------------------------------------------------------------|
** | DISCLAIMER OF WARRANTIES |
** | ------------------------ |
** | The following code is sample code created by IBM Corporation. |
** | Such a code is provided to you solely for the purpose of assisting |
** | you in the development of your applications. The code is provided |
** | "AS IS", without warranty of any kind. IBM shall not be liable for |
** | any damages arising out of your use of the following code, even if |
** | they have been advised of the possibility of such damages. | *
** \----------------------------------------------------------------------/
**
** Header : TSTNTNL.INC
** Author : Valerio Tavazzi (TAVAZZI at ROMEPPC)
** Reviewer : Dario de Judicibus (DEJUDICI at ROMEPPC)
** Created : 14 Jul 1992
** Updated : 21 Sep 1993
** Version : 3.22
** Content : Called by NTLINFMMsgProc in WM_INITDLG case statement
**
*/
{
if(! znlGetCountryName(Country.CtryInfo.country , Ntlinf->NtlInfCountry))
return FALSE ;
if(! znlGetMeasurementName(Country.Measurement , Ntlinf->NtlInfMeasurements))
return FALSE ;
if(! znlGetListSeparator(&Country, Ntlinf->NtlInfListSeparator))
return FALSE ;
/*
** Initialize entry field control: NtlInfCountry
*/
WinSendDlgItemMsg(hWndDlg, NTLINFCTYFLD, EM_SETTEXTLIMIT, MPFROMSHORT(16), 0L) ;
if (Ntlinf->NtlInfCountry[0])
WinSetDlgItemText(hWndDlg, NTLINFCTYFLD, Ntlinf->NtlInfCountry) ;
/*
** Initialize entry field control: NtlInfMeasurements
*/
WinSendDlgItemMsg(hWndDlg, NTLINFMSRFLD, EM_SETTEXTLIMIT, MPFROMSHORT(16), 0L) ;
if (Ntlinf->NtlInfMeasurements[0])
WinSetDlgItemText(hWndDlg, NTLINFMSRFLD, Ntlinf->NtlInfMeasurements) ;
/*
** Initialize entry field control: NtlInfListSeparator
*/
WinSendDlgItemMsg(hWndDlg, NTLINFSEPFLD, EM_SETTEXTLIMIT, MPFROMSHORT(2), 0L) ;
if (Ntlinf->NtlInfListSeparator[0])
WinSetDlgItemText(hWndDlg, NTLINFSEPFLD, Ntlinf->NtlInfListSeparator ) ;
}