Annotation of pmsdk/samples/newcard/winbind.h, revision 1.1.1.1

1.1       root        1: #include "windows.h"
                      2: 
                      3: /*********************************************************************/
                      4: /*  Windows/PM Cardfile Shared Code                                  */
                      5: /*                                                                   */
                      6: /*  (c) Copyright Microsoft Corp. 1987,1988 - All Rights Reserved    */
                      7: /*********************************************************************/
                      8: 
                      9: 
                     10: /*********************************************************************/
                     11: /*    These defines provide hooks into the application which allow   */
                     12: /* the PM binding files to remap the concepts into equivalent        */
                     13: /* items.                                                            */
                     14: /*********************************************************************/
                     15: 
                     16: 
                     17: #define  HINST    HANDLE         /* This may disappear */
                     18: #define  HCURSOR  HANDLE         /* Mouse pointer handles */
                     19: 
                     20: #define  WINWORD        WORD     /* Type of wParam in Message Proc */
                     21: #define  DLGRET         BOOL     /* Type of Dialog Message return  */
                     22: 
                     23: /* Dialog Return */
                     24: #define  DIALOGDEFAULT( a, b, c, d )   return( FALSE )
                     25: 
                     26: /* When setting Range and position together, use this (necessary?) */
                     27: /*  Scroll_Range( hWnd, Id, Pos, High, Low ) */
                     28: 
                     29: #define  SCROLL_RANGE( a, b, c, d, e ) \
                     30:                { SetScrollRange( a, b, d, e, FALSE );\
                     31:                  SetScrollPos( a, b, c, TRUE ); }
                     32: 
                     33: 
                     34: /* It's easiest to separate cases of AnsiUpper with a char and with a */
                     35: /* string; add AnsiLower when needed */
                     36: 
                     37: #define  ANSICHARUP( a )   AnsiUpper( a )
                     38: 
                     39: 
                     40: 
                     41: /*********************************************************************/
                     42: /*    These defines are somewhat different than the first set. These */
                     43: /* are primarily convience conventions which have meaning only in    */
                     44: /* the PM environment.  An alternative would be to have conditional  */
                     45: /* compiles in the code each time the macro needed to be called.     */
                     46: /*                                                                   */
                     47: /*    On the other hand, it's possible to eliminate all conditional  */
                     48: /* compiles from the source code through the use of a different set  */
                     49: /* of defines in the binding files.  The tradeoff should be based on */
                     50: /* how frequently the concept occurs in the source file.             */
                     51: /*********************************************************************/
                     52: 
                     53: 
                     54: 
                     55: /* PM RGB values are different; might as well change type of   */
                     56: /*   x instead of just returning x  */
                     57: 
                     58: #define  CONVERT_RGB(x) ((unsigned long int) x)
                     59: 
                     60: #define  LOUSHORT(x)    x
                     61: 
                     62: #define  ENTRYPROCEDURE()  
                     63: 
                     64: #define  SET_CHARHEIGHT( x )
                     65: #define  TRANSLATE_COORDS( x )
                     66: #define  TRANSLATE_Y( x )        x
                     67: #define  TRANSLATE_RECT( x )     x
                     68: 
                     69: #define  FRAME(x)                x
                     70: 
                     71: 
                     72: 

unix.superglobalmegacorp.com

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