Win16 cursor/icon functions are not needed any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: curico.h
|
||||
// Purpose: Icon and cursor functions
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 01/02/97
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_CURICO_H_
|
||||
#define _WX_CURICO_H_
|
||||
|
||||
HCURSOR IconToCursor( wxChar *szFileName, HINSTANCE hInst, int XHot, int YHot,
|
||||
int *W = 0, int *H = 0);
|
||||
|
||||
HCURSOR MakeCursorFromBitmap(HINSTANCE hInst, HBITMAP hBitmap, POINT *pPoint);
|
||||
|
||||
HICON MakeIconFromBitmap(HINSTANCE hInst, HBITMAP hBitmap);
|
||||
|
||||
#endif
|
||||
|
@@ -1,76 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: curicop.h
|
||||
// Purpose: Private routines for cursor/icon handling
|
||||
// Author: Various
|
||||
// Modified by:
|
||||
// Created: 01/02/97
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_CURICOP_H_
|
||||
#define _WX_CURICOP_H_
|
||||
|
||||
// PRIVATE STUFF FOLLOWS UNTIL END
|
||||
|
||||
// Header signatures for various resources
|
||||
#define BFT_ICON 0x4349 /* 'IC' */
|
||||
#define BFT_BITMAP 0x4d42 /* 'BM' */
|
||||
#define BFT_CURSOR 0x5450 /* 'PT(' */
|
||||
|
||||
// This WIDTHBYTES macro determines the number of BYTES per scan line.
|
||||
#define WIDTHBYTES( i) ((i + 31) / 32 * 4)
|
||||
#define IS_WIN30_DIB( lpbi) ((*(LPDWORD)( lpbi)) == sizeof( BITMAPINFOHEADER))
|
||||
|
||||
WORD DIBNumColors(LPSTR pv);
|
||||
|
||||
struct tagCURFILEHEADER { WORD wReserved; // Always 0
|
||||
WORD wResourceType; // 2 = cursor
|
||||
WORD wResourceCount; // Number of icons in the file
|
||||
};
|
||||
|
||||
typedef struct tagCURFILEHEADER CURFILEHEADER;
|
||||
|
||||
struct tagCURFILERES {
|
||||
BYTE bWidth; // Width of image
|
||||
BYTE bHeight; // Height of image
|
||||
BYTE bColorCount; // Number of colors in image (2, 8, or 16)
|
||||
BYTE bReserved1; // Reserved
|
||||
WORD wXHotspot; // x coordinate of hotspot
|
||||
WORD wYHotspot; // y coordinate of hotspot
|
||||
DWORD dwDIBSize; // Size of DIB for this image
|
||||
DWORD dwDIBOffset; // Offset to DIB for this image
|
||||
};
|
||||
|
||||
typedef struct tagCURFILERES CURFILERES;
|
||||
|
||||
HANDLE ReadCur( LPTSTR szFileName, LPPOINT lpptHotSpot, int *W = 0, int *H = 0);
|
||||
HCURSOR MakeCursor( HANDLE hDIB, LPPOINT lpptHotSpot, HINSTANCE hInst);
|
||||
|
||||
struct tagICONFILEHEADER {
|
||||
WORD wReserved; // Always 0
|
||||
WORD wResourceType; // 1 = icon
|
||||
WORD wResourceCount; // Number of icons in the file
|
||||
};
|
||||
|
||||
typedef struct tagICONFILEHEADER ICONFILEHEADER;
|
||||
|
||||
struct tagICONFILERES {
|
||||
BYTE bWidth; // Width of image
|
||||
BYTE bHeight; // Height of image
|
||||
BYTE bColorCount; // Number of colors in image (2, 8, or 16)
|
||||
BYTE bReserved1; // Reserved
|
||||
WORD wReserved2;
|
||||
WORD wReserved3;
|
||||
DWORD dwDIBSize; // Size of DIB for this image
|
||||
DWORD dwDIBOffset; // Offset to DIB for this image
|
||||
};
|
||||
|
||||
typedef struct tagICONFILERES ICONFILERES;
|
||||
|
||||
HANDLE ReadIcon( wxChar *szFileName, int *W = 0, int *H = 0);
|
||||
HICON MakeIcon( HANDLE hDIB, HINSTANCE hInst);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user