Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

winicon.cpp File Reference

#include <os2win.h>
#include <stdio.h>
#include <string.h>
#include <winicon.h>
#include <win\cursoricon.h>
#include <objhandle.h>
#include "dib.h"
#include <heapstring.h>
#include <win\virtual.h>
#include "initterm.h"
#include "oslibres.h"
#include "oslibwin.h"
#include "dc.h"
#include "dbglocal.h"

Include dependency graph for winicon.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

struct  tagICONCACHE

Defines

#define DBG_LOCALLOG   DBG_winicon

Typedefs

typedef tagICONCACHE ICONCACHE

Functions

HGLOBAL CURSORICON_CreateFromResource (HINSTANCE hInstance, DWORD dwResGroupId, HGLOBAL hObj, LPBYTE bits, UINT cbSize, BOOL bIcon, DWORD dwVersion, INT width, INT height, UINT loadflags)
HGLOBAL CURSORICON_Copy (HGLOBAL handle)
CURSORICONDIRENTRY * CURSORICON_FindBestIcon (CURSORICONDIR *dir, int width, int height, int colors)
CURSORICONDIRENTRY * CURSORICON_FindBestCursor (CURSORICONDIR *dir, int width, int height, int color)
BOOL CURSORICON_SimulateLoadingFromResourceW (LPWSTR filename, BOOL fCursor, CURSORICONDIR **res, LPBYTE **ptr)
INT CURSORICON_DelSharedIcon (HANDLE handle)
void CURSORICON_AddSharedIcon (HMODULE hModule, HRSRC hRsrc, HRSRC hGroupRsrc, HANDLE handle)
HANDLE CURSORICON_FindSharedIcon (HMODULE hModule, HRSRC hRsrc)
ICONCACHECURSORICON_FindCache (HANDLE handle)
HGLOBAL CreateCursorIconIndirect (HINSTANCE hInstance, CURSORICONINFO *info, LPCVOID lpANDbits, LPCVOID lpXORbits, BOOL fIcon)
HICON WIN32API CreateIcon (HINSTANCE hInstance, INT nWidth, INT nHeight, BYTE bPlanes, BYTE bBitsPixel, LPCVOID lpANDbits, LPCVOID lpXORbits)
HICON WIN32API CreateIconFromResource (LPBYTE bits, UINT cbSize, BOOL bIcon, DWORD dwVersion)
HICON WIN32API CreateIconFromResourceEx (LPBYTE bits, UINT cbSize, BOOL bIcon, DWORD dwVersion, INT width, INT height, UINT cFlag)
HICON WINAPI CreateIconIndirect (ICONINFO *iconinfo)
BOOL WIN32API DestroyIcon (HICON hIcon)
HICON WIN32API CopyIcon (HICON hIcon)
HICON WIN32API GetOS2Icon (HICON hIcon)
BOOL WINAPI GetIconInfo (HICON hIcon, ICONINFO *iconinfo)
HCURSOR WIN32API CreateCursor (HINSTANCE hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, const VOID *lpANDbits, const VOID *lpXORbits)
BOOL WIN32API DestroyCursor (HCURSOR hCursor)
HCURSOR WIN32API GetCursor (void)
HCURSOR WIN32API SetCursor (HCURSOR hCursor)
BOOL WIN32API GetCursorPos (PPOINT lpPoint)
BOOL WIN32API SetCursorPos (int X, int Y)
BOOL WIN32API ClipCursor (const RECT *lpRect)
BOOL WIN32API GetClipCursor (LPRECT lpRect)
BOOL WIN32API SetSystemCursor (HCURSOR hCursor, DWORD dwCursorId)
INT _System __ShowCursor (BOOL bShow)
INT _ShowCursor (BOOL bShow)
void RestoreCursor ()
int WIN32API ShowCursor (BOOL bShow)
HGLOBAL CURSORICON_Load (HINSTANCE hInstance, LPCWSTR name, INT width, INT height, INT colors, BOOL fCursor, UINT loadflags)
WORD WIN32API CURSORICON_Destroy (HGLOBAL handle, UINT flags)
HGLOBAL CURSORICON_ExtCopy (HGLOBAL Handle, UINT nType, INT iDesiredCX, INT iDesiredCY, UINT nFlags)
INT WIN32API LookupIconIdFromDirectoryEx (LPBYTE xdir, BOOL bIcon, INT width, INT height, UINT cFlag)
INT WIN32API LookupIconIdFromDirectory (LPBYTE dir, BOOL bIcon)
void CURSORICON_FreeModuleIcons (HMODULE hModule)

Variables

ICONCACHEIconAnchor = NULL
CRITICAL_SECTION IconCrst = CRITICAL_SECTION_INIT
WORD ICON_HOTSPOT = 0x4242
HCURSOR hActiveCursor = 0
HCURSOR hActiveCursorPM = 0
int cursorshowcnt = 0


Define Documentation

#define DBG_LOCALLOG   DBG_winicon
 

Definition at line 59 of file winicon.cpp.


Typedef Documentation

typedef struct tagICONCACHE ICONCACHE
 


Function Documentation

HGLOBAL CURSORICON_CreateFromResource HINSTANCE    hInstance,
DWORD    dwResGroupId,
HGLOBAL    hObj,
LPBYTE    bits,
UINT    cbSize,
BOOL    bIcon,
DWORD    dwVersion,
INT    width,
INT    height,
UINT    loadflags
[static]
 

Definition at line 886 of file winicon.cpp.

Referenced by CURSORICON_ExtCopy(), CURSORICON_Load(), and CreateIconFromResourceEx().

HGLOBAL CURSORICON_Copy HGLOBAL    handle [static]
 

Definition at line 1291 of file winicon.cpp.

Referenced by CURSORICON_ExtCopy(), and CopyIcon().

CURSORICONDIRENTRY * CURSORICON_FindBestIcon CURSORICONDIR *    dir,
int    width,
int    height,
int    colors
[static]
 

Definition at line 1516 of file winicon.cpp.

Referenced by CURSORICON_ExtCopy(), CURSORICON_Load(), and LookupIconIdFromDirectoryEx().

CURSORICONDIRENTRY * CURSORICON_FindBestCursor CURSORICONDIR *    dir,
int    width,
int    height,
int    color
[static]
 

Definition at line 1578 of file winicon.cpp.

Referenced by CURSORICON_ExtCopy(), CURSORICON_Load(), and LookupIconIdFromDirectoryEx().

BOOL CURSORICON_SimulateLoadingFromResourceW LPWSTR    filename,
BOOL    fCursor,
CURSORICONDIR **    res,
LPBYTE **    ptr
 

Definition at line 786 of file winicon.cpp.

Referenced by CURSORICON_Load().

INT CURSORICON_DelSharedIcon HANDLE    handle [static]
 

Definition at line 1755 of file winicon.cpp.

Referenced by CURSORICON_Destroy().

void CURSORICON_AddSharedIcon HMODULE    hModule,
HRSRC    hRsrc,
HRSRC    hGroupRsrc,
HANDLE    handle
[static]
 

Definition at line 1735 of file winicon.cpp.

Referenced by CURSORICON_Load().

HANDLE CURSORICON_FindSharedIcon HMODULE    hModule,
HRSRC    hRsrc
[static]
 

Definition at line 1676 of file winicon.cpp.

Referenced by CURSORICON_Load().

ICONCACHE * CURSORICON_FindCache HANDLE    handle [static]
 

Definition at line 1709 of file winicon.cpp.

Referenced by CURSORICON_ExtCopy().

HGLOBAL CreateCursorIconIndirect HINSTANCE    hInstance,
CURSORICONINFO *    info,
LPCVOID    lpANDbits,
LPCVOID    lpXORbits,
BOOL    fIcon
[static]
 

Definition at line 563 of file winicon.cpp.

Referenced by CreateCursor(), and CreateIcon().

HICON WIN32API CreateIcon HINSTANCE    hInstance,
INT    nWidth,
INT    nHeight,
BYTE    bPlanes,
BYTE    bBitsPixel,
LPCVOID    lpANDbits,
LPCVOID    lpXORbits
 

Definition at line 111 of file winicon.cpp.

HICON WIN32API CreateIconFromResource LPBYTE    bits,
UINT    cbSize,
BOOL    bIcon,
DWORD    dwVersion
 

Definition at line 134 of file winicon.cpp.

HICON WIN32API CreateIconFromResourceEx LPBYTE    bits,
UINT    cbSize,
BOOL    bIcon,
DWORD    dwVersion,
INT    width,
INT    height,
UINT    cFlag
 

Definition at line 141 of file winicon.cpp.

Referenced by CreateIconFromResource().

HICON WINAPI CreateIconIndirect ICONINFO *    iconinfo
 

Definition at line 152 of file winicon.cpp.

BOOL WIN32API DestroyIcon HICON    hIcon
 

Definition at line 251 of file winicon.cpp.

Referenced by STATIC_NCDestroy(), and STATIC_SetIcon().

HICON WIN32API CopyIcon HICON    hIcon
 

Definition at line 258 of file winicon.cpp.

HICON WIN32API GetOS2Icon HICON    hIcon
 

Definition at line 265 of file winicon.cpp.

Referenced by OSLibWinSetIcon().

BOOL WINAPI GetIconInfo HICON    hIcon,
ICONINFO *    iconinfo
 

Definition at line 284 of file winicon.cpp.

Referenced by BUTTON_DrawPushButton(), DrawIcon(), DrawIconEx(), STATIC_PaintIconfn(), and STATIC_SetIcon().

HCURSOR WIN32API CreateCursor HINSTANCE    hInst,
int    xHotSpot,
int    yHotSpot,
int    nWidth,
int    nHeight,
const VOID *    lpANDbits,
const VOID *    lpXORbits
 

Definition at line 375 of file winicon.cpp.

BOOL WIN32API DestroyCursor HCURSOR    hCursor
 

Definition at line 398 of file winicon.cpp.

Referenced by SetSystemCursor().

HCURSOR WIN32API GetCursor void   
 

Definition at line 405 of file winicon.cpp.

Referenced by SetCursor().

HCURSOR WIN32API SetCursor HCURSOR    hCursor
 

Definition at line 416 of file winicon.cpp.

Referenced by CURSORICON_Destroy().

BOOL WIN32API GetCursorPos PPOINT    lpPoint
 

Definition at line 455 of file winicon.cpp.

BOOL WIN32API SetCursorPos int    X,
int    Y
 

Definition at line 470 of file winicon.cpp.

BOOL WIN32API ClipCursor const RECT *    lpRect
 

Definition at line 477 of file winicon.cpp.

BOOL WIN32API GetClipCursor LPRECT    lpRect
 

Definition at line 487 of file winicon.cpp.

BOOL WIN32API SetSystemCursor HCURSOR    hCursor,
DWORD    dwCursorId
 

Definition at line 512 of file winicon.cpp.

INT _System __ShowCursor BOOL    bShow
 

Referenced by _ShowCursor().

INT _ShowCursor BOOL    bShow [inline]
 

Definition at line 524 of file winicon.cpp.

Referenced by ShowCursor().

void RestoreCursor  
 

Definition at line 537 of file winicon.cpp.

int WIN32API ShowCursor BOOL    bShow
 

Definition at line 554 of file winicon.cpp.

Referenced by RestoreCursor().

HGLOBAL CURSORICON_Load HINSTANCE    hInstance,
LPCWSTR    name,
INT    width,
INT    height,
INT    colors,
BOOL    fCursor,
UINT    loadflags
 

Definition at line 625 of file winicon.cpp.

Referenced by LoadImageW().

WORD WIN32API CURSORICON_Destroy HGLOBAL    handle,
UINT    flags
 

Definition at line 1233 of file winicon.cpp.

Referenced by CURSORICON_FreeModuleIcons(), DestroyCursor(), and DestroyIcon().

HGLOBAL CURSORICON_ExtCopy HGLOBAL    Handle,
UINT    nType,
INT    iDesiredCX,
INT    iDesiredCY,
UINT    nFlags
 

Definition at line 1353 of file winicon.cpp.

Referenced by CopyImage().

INT WIN32API LookupIconIdFromDirectoryEx LPBYTE    xdir,
BOOL    bIcon,
INT    width,
INT    height,
UINT    cFlag
 

Definition at line 1628 of file winicon.cpp.

Referenced by LookupIconIdFromDirectory().

INT WIN32API LookupIconIdFromDirectory LPBYTE    dir,
BOOL    bIcon
 

Definition at line 1662 of file winicon.cpp.

void CURSORICON_FreeModuleIcons HMODULE    hModule
 

Definition at line 1778 of file winicon.cpp.


Variable Documentation

ICONCACHE* IconAnchor = NULL [static]
 

Definition at line 81 of file winicon.cpp.

CRITICAL_SECTION IconCrst = CRITICAL_SECTION_INIT [static]
 

Definition at line 82 of file winicon.cpp.

WORD ICON_HOTSPOT = 0x4242 [static]
 

Definition at line 83 of file winicon.cpp.

HCURSOR hActiveCursor = 0 [static]
 

Definition at line 84 of file winicon.cpp.

HCURSOR hActiveCursorPM = 0 [static]
 

Definition at line 85 of file winicon.cpp.

int cursorshowcnt = 0 [static]
 

Definition at line 535 of file winicon.cpp.


Generated on Wed Jan 23 23:21:46 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001