home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zfamily.zip
/
zfamily
/
ZDTFUNCS
/
SAMPLE
/
TSTBTMAP.INC
< prev
next >
Wrap
Text File
|
1993-09-24
|
2KB
|
53 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 : TSTBTMAP.INC
** Author : Dario de Judicibus (DEJUDICI at ROMEPPC)
** Created : 09 Apr 1993
** Updated : 21 Sep 1993
** Version : 4.12
** Content : Handle BitMap size and position
**
*/
{
BOOL fSuccess ;
switch (SHORT2FROMMP(mp1))
{
case BN_PAINT:
{
Tmezon = (TMEZONStruct *)WinQueryWindowULong(hWndClient, OFFSET_TMEZON) ;
/*
** Draw button. WS_CLIPSIBLINGS avoids that offset entry field be overdrawn.
*/
zzzDrawButtonBitmap(((USERBUTTON *)mp2)->hps, // Bitmap presentation space
hWndDlg, // Dialog handle
Tmezon->hbmp, // Bitmap handle
TMEZONMAPBUT) ; // Button identity
}
break ;
default:
{
return(WinDefDlgProc(hWndDlg, message, mp1, mp2)) ;
}
break ;
}
return ((MRESULT)FALSE) ;
}