// SM$:FO  E:\DEVTOOLS\V\INCLUDEW\V\VWIN32.H - 07/22/96 22:40:39           
//===============================================================
// vwin32.h - Special defs for Win32 - Windows version
//
// Copyright (C) 1995,1996  Bruce E. Wampler
//
// This file is part of the V C++ GUI Framework, and is covered
// under the terms of the GNU Library General Public License,
// Version 2. This library has NO WARRANTY. See the source file
// vapp.cxx for more complete information about license terms.
//===============================================================
#ifndef VWIN32_H
#define VWIN32_H
#ifdef __WATCOMC__
#ifdef __I86__
#define NEED_VXCRACKERS
#endif
#endif
#ifdef _WIN32
// #define _export // win32 doesn't always like export                     SM$:O
#define  // win32 doesn't always like export                            // SM$:M1
                                                                        // SM$:C
// #define MoveTo(a,b,c) MoveToEx(a,b,c,0)                                 SM$:O
#define MoveTo(a,b,c) MoveToEx(a,b,c,0)                                 // SM$:M2
#define MoveTo(a,b,c) MoveToEx(a,b,c,0)                                 // SM$:R
GpiSetCurrentPosition (,)                                               // SM$:M2
GpiQueryCurrentPosition (,);                                            // SM$:M2
GpiSetCurrentPosition (,);                                              // SM$:M2
 //                                                                        SM$:C
 // MoveTo  - Cat:020 Type:010 Area:480                                    SM$:K
 // Replace with GpiSetCurrentPosition or GpiMove                          SM$:S
 //                                                                        SM$:C
 // MoveToEx  - Cat:020 Type:010 Area:480                                  SM$:K
 // Replace with GpiSetCurrentPosition or GpiMove                          SM$:S
                                                                        // SM$:C
// #define SetWindowExt(a,b,c) SetWindowExtEx(a,b,c,0)                     SM$:O
#define SetWindowExt(a,b,c) SetWindowExtEx(a,b,c,0)                     // SM$:M3
#define SetWindowExt(a,b,c) SetWindowExtEx(a,b,c,0)                     // SM$:R
GpiQueryDefaultViewMatrix (,,);                                         // SM$:M3
GpiSetDefaultViewMatrix (,,,);                                          // SM$:M3
GpiQueryDefaultViewMatrix (,,);                                         // SM$:M3
GpiSetDefaultViewMatrix (,,,);                                          // SM$:M3
 //                                                                        SM$:C
 // SetWindowExt  - Cat:030 Type:010 Area:440                              SM$:K
 // Replace with GpiSetDefaultViewMatrix                                   SM$:S
 //                                                                        SM$:C
 // SetWindowExtEx  - Cat:030 Type:010 Area:440                            SM$:K
 // Replace with GpiSetDefaultViewMatrix                                   SM$:S
                                                                        // SM$:C
// #define SetViewportExt(a,b,c) SetViewportExtEx(a,b,c,0)                 SM$:O
#define SetViewportExt(a,b,c) SetViewportExtEx(a,b,c,0)                 // SM$:M3
#define SetViewportExt(a,b,c) SetViewportExtEx(a,b,c,0)                 // SM$:R
GpiQueryPageViewport (,);                                               // SM$:M3
GpiSetPageViewport (,);                                                 // SM$:M3
GpiQueryPageViewport (,);                                               // SM$:M3
GpiSetPageViewport (,);                                                 // SM$:M3
 //                                                                        SM$:C
 // SetViewportExt  - Cat:030 Type:010 Area:440                            SM$:K
 // Replace with GpiSetPageViewport                                        SM$:S
 //                                                                        SM$:C
 // SetViewportExtEx  - Cat:030 Type:010 Area:440                          SM$:K
 // Replace with GpiSetPageViewport                                        SM$:S
                                                                        // SM$:C
#else
#ifdef NEED_VXCRACKERS
// For some reason, Watcom doesn't define these in windowsx.h
// on the 16 bit version - they are there for 32 bit.
#define GET_WM_COMMAND_ID(wp, lp)   (wp)
#define GET_WM_HSCROLL_CODE(wp, lp) (wp)
// #define GET_WM_HSCROLL_POS(wp, lp)  LOWORD(lp)                          SM$:O
#define GET_WM_HSCROLL_POS(wp, lp)  LOUSHORT(lp)                        // SM$:M1
                                                                        // SM$:C
// #define GET_WM_HSCROLL_HWND(wp, lp) (HWND)HIWORD(lp)                    SM$:O
#define GET_WM_HSCROLL_HWND(wp, lp) (HWND)HIUSHORT(lp)                  // SM$:M1
                                                                        // SM$:C
#define GET_WM_VSCROLL_CODE(wp, lp) (wp)
// #define GET_WM_VSCROLL_POS(wp, lp)  LOWORD(lp)                          SM$:O
#define GET_WM_VSCROLL_POS(wp, lp)  LOUSHORT(lp)                        // SM$:M1
                                                                        // SM$:C
// #define GET_WM_VSCROLL_HWND(wp, lp) (HWND)HIWORD(lp)                    SM$:O
#define GET_WM_VSCROLL_HWND(wp, lp) (HWND)HIUSHORT(lp)                  // SM$:M1
                                                                        // SM$:C
// #define GET_WM_COMMAND_CMD(wp, lp)  HIWORD(lp)                          SM$:O
#define GET_WM_COMMAND_CMD(wp, lp)  HIUSHORT(lp)                        // SM$:M1
                                                                        // SM$:C
#endif
#endif
#endif
