File:  [OS/2 SDKs] / pmsdk / samples / newcard / winbind.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:28:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: pmsdk-1988, HEAD
Microsoft OS/2 SDK PM 08-08-1988

#include "windows.h"

/*********************************************************************/
/*  Windows/PM Cardfile Shared Code                                  */
/*                                                                   */
/*  (c) Copyright Microsoft Corp. 1987,1988 - All Rights Reserved    */
/*********************************************************************/


/*********************************************************************/
/*    These defines provide hooks into the application which allow   */
/* the PM binding files to remap the concepts into equivalent        */
/* items.                                                            */
/*********************************************************************/


#define  HINST    HANDLE         /* This may disappear */
#define  HCURSOR  HANDLE         /* Mouse pointer handles */

#define  WINWORD        WORD     /* Type of wParam in Message Proc */
#define  DLGRET         BOOL     /* Type of Dialog Message return  */

/* Dialog Return */
#define  DIALOGDEFAULT( a, b, c, d )   return( FALSE )

/* When setting Range and position together, use this (necessary?) */
/*  Scroll_Range( hWnd, Id, Pos, High, Low ) */

#define  SCROLL_RANGE( a, b, c, d, e ) \
               { SetScrollRange( a, b, d, e, FALSE );\
                 SetScrollPos( a, b, c, TRUE ); }


/* It's easiest to separate cases of AnsiUpper with a char and with a */
/* string; add AnsiLower when needed */

#define  ANSICHARUP( a )   AnsiUpper( a )



/*********************************************************************/
/*    These defines are somewhat different than the first set. These */
/* are primarily convience conventions which have meaning only in    */
/* the PM environment.  An alternative would be to have conditional  */
/* compiles in the code each time the macro needed to be called.     */
/*                                                                   */
/*    On the other hand, it's possible to eliminate all conditional  */
/* compiles from the source code through the use of a different set  */
/* of defines in the binding files.  The tradeoff should be based on */
/* how frequently the concept occurs in the source file.             */
/*********************************************************************/



/* PM RGB values are different; might as well change type of   */
/*   x instead of just returning x  */

#define  CONVERT_RGB(x) ((unsigned long int) x)

#define  LOUSHORT(x)    x

#define  ENTRYPROCEDURE()  

#define  SET_CHARHEIGHT( x )
#define  TRANSLATE_COORDS( x )
#define  TRANSLATE_Y( x )        x
#define  TRANSLATE_RECT( x )     x

#define  FRAME(x)                x




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.