home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zfamily.zip
/
zfamily
/
ZDTFUNCS
/
SAMPLE
/
TSTLNGID.INC
< prev
next >
Wrap
Text File
|
1993-09-02
|
2KB
|
55 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 : TSTLNGID.INC
** Authors : Alessandro Cavallini (CAVALLI at ROMEPPC)
** Dario de Judicibus (DEJUDICI at ROMEPPC)
** Created : 21 July 1992
** Updated : 01 Sep 1993
** Version : 4.12
** Content : Called in WM_CONTROL (case CHKDTECLNDDL CBN_EFCHANGE)
** to get the selected language.
**
*/
{
char szLangId[5] ;
/*
** Get the address of the structure containing dialog information
*/
Chkdte = (CHKDTEStruct *)WinQueryWindowULong(hWndClient, OFFSET_CHKDTE) ;
/*
** Get the language identifier
*/
WinQueryDlgItemText(hWndDlg, CHKDTECLNDDL, sizeof(szLangId), szLangId) ;
if (strcmp(Chkdte->ChkDteLangId, szLangId) != 0)
{
strcpy(Chkdte->ChkDteLangId, szLangId) ;
/*
** Set the requested language
*/
(VOID)zdtSetLanguage(zdtLanguage(szLangId)) ;
/*
** Reset all fields
*/
#include "TSTCLEAR.INC"
}
}