home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zfamily.zip
/
zfamily
/
ZDTFUNCS
/
SAMPLE
/
TSTINITC.INC
< prev
next >
Wrap
Text File
|
1993-09-02
|
2KB
|
54 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. | *
** \----------------------------------------------------------------------/
**
** Include : TSTINITC.INC
** Author : Dario de Judicibus (DEJUDICI at ROMEPPC)
** Created : 20 July 1992
** Updated : 01 Sep 1993
** Version : 4.12
** Content : Called in the WM_INITDLG case statement of CHKDTE.
**
*/
{
int i = 0, j = 0 ; // Loop counters
/*
** Load the list of languages
*/
for (i = zdtFSTLANG, j = 0 ; i < zdtLSTLANG ; i++, j++ )
strcpy(Chkdte->ChkDteLangTbl[j], zdtGetLangId(i)) ;
/*
** Fill in list entry field
*/
strcpy(Chkdte->ChkDteLangId,zdtCurLangId()) ;
WinSetDlgItemText(hWndDlg, CHKDTECLNDDL, Chkdte->ChkDteLangId) ;
/*
** Initialize List from Table
*/
for (i = 0 ; i < 32 ; i++)
if (Chkdte->ChkDteLangTbl[i][0])
WinSendDlgItemMsg(hWndDlg, CHKDTECLNDDL, LM_INSERTITEM,
MPFROM2SHORT(LIT_END, 0),
MPFROMP(Chkdte->ChkDteLangTbl[i])) ;
/*
** Let's clear all output fields
*/
#include "TSTCLEAR.INC"
}