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

uitools.cpp File Reference

#include "winuser.h"
#include "user32.h"
#include "win32wbase.h"
#include "syscolor.h"
#include "dbglocal.h"

Include dependency graph for uitools.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define DBG_LOCALLOG   DBG_uitools
#define RBInnerSoft   RBInnerNormal
#define RBOuterSoft   RBOuterNormal
#define DFC_CHECKPOINTSMAX   6

Functions

BOOL UITOOLS95_DrawDiagEdge (HDC hdc, LPRECT rc, UINT uType, UINT uFlags)
BOOL UITOOLS95_DrawRectEdge (HDC hdc, LPRECT rc, UINT uType, UINT uFlags)
BOOL WIN32API DrawEdge (HDC hdc, LPRECT rc, UINT edge, UINT flags)
int UITOOLS_MakeSquareRect (LPRECT src, LPRECT dst)
void UITOOLS_DrawCheckedRect (HDC dc, LPRECT rect)
BOOL UITOOLS95_DFC_ButtonPush (HDC dc, LPRECT r, UINT uFlags)
BOOL UITOOLS95_DFC_ButtonCheck (HDC dc, LPRECT r, UINT uFlags)
BOOL UITOOLS95_DFC_ButtonRadio (HDC dc, LPRECT r, UINT uFlags)
BOOL UITOOLS95_DrawFrameButton (HDC hdc, LPRECT rc, UINT uState)
BOOL UITOOLS95_DrawFrameCaption (HDC dc, LPRECT r, UINT uFlags)
BOOL UITOOLS95_DrawFrameScroll (HDC dc, LPRECT r, UINT uFlags)
BOOL UITOOLS95_DrawFrameMenu (HDC dc, LPRECT r, UINT uFlags)
BOOL WIN32API DrawFrameControl (HDC hdc, LPRECT rc, UINT uType, UINT uState)
BOOL Paint_DrawStateJam (HDC hdc, UINT opcode, DRAWSTATEPROC func, LPARAM lp, WPARAM wp, LPRECT rc, UINT dtflags, BOOL unicode)
BOOL Paint_DrawState (HDC hdc, HBRUSH hbr, DRAWSTATEPROC func, LPARAM lp, WPARAM wp, INT x, INT y, INT cx, INT cy, UINT flags, BOOL unicode)
BOOL WIN32API DrawStateA (HDC hdc, HBRUSH hbc, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT fuFlags)
BOOL WIN32API DrawStateW (HDC hdc, HBRUSH hbc, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT fuFlags)
BOOL WIN32API DrawFocusRect (HDC hdc, const RECT *lpRect)
BOOL WIN32API DrawIcon (HDC hDC, int X, int Y, HICON hIcon)
BOOL WIN32API DrawIconEx (HDC hdc, int xLeft, int yTop, HICON hIcon, int cxWidth, int cyWidth, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags)
BOOL WIN32API DrawAnimatedRects (HWND hwnd, int idAni, CONST RECT *lprcFrom, CONST RECT *lprcTo)

Variables

const signed LTInnerNormal []
const signed char LTOuterNormal []
const signed char RBInnerNormal []
const signed char RBOuterNormal []
const signed char LTInnerSoft []
const signed char LTOuterSoft []
const signed char LTRBOuterMono []
const signed char LTRBInnerMono []
const signed char LTRBOuterFlat []
const signed char LTRBInnerFlat []


Define Documentation

#define DBG_LOCALLOG   DBG_uitools
 

Definition at line 19 of file uitools.cpp.

#define RBInnerSoft   RBInnerNormal
 

Definition at line 68 of file uitools.cpp.

#define RBOuterSoft   RBOuterNormal
 

Definition at line 69 of file uitools.cpp.

#define DFC_CHECKPOINTSMAX   6
 

Definition at line 695 of file uitools.cpp.


Function Documentation

BOOL UITOOLS95_DrawDiagEdge HDC    hdc,
LPRECT    rc,
UINT    uType,
UINT    uFlags
[static]
 

Definition at line 108 of file uitools.cpp.

Referenced by DrawEdge().

BOOL UITOOLS95_DrawRectEdge HDC    hdc,
LPRECT    rc,
UINT    uType,
UINT    uFlags
[static]
 

Definition at line 423 of file uitools.cpp.

Referenced by DrawEdge(), UITOOLS95_DFC_ButtonCheck(), UITOOLS95_DFC_ButtonPush(), and UITOOLS95_DrawFrameScroll().

BOOL WIN32API DrawEdge HDC    hdc,
LPRECT    rc,
UINT    edge,
UINT    flags
 

Definition at line 574 of file uitools.cpp.

Referenced by CBPaintBorder(), GB_Paint(), MENU_DrawMenuItem(), MENU_DrawPopupMenu(), MENU_TrackMouseMenuBar_MouseMove(), SCROLL_DrawInterior(), and STATIC_PaintEtchedfn().

int UITOOLS_MakeSquareRect LPRECT    src,
LPRECT    dst
[static]
 

Definition at line 588 of file uitools.cpp.

Referenced by UITOOLS95_DFC_ButtonCheck(), UITOOLS95_DFC_ButtonRadio(), UITOOLS95_DrawFrameCaption(), UITOOLS95_DrawFrameMenu(), and UITOOLS95_DrawFrameScroll().

void UITOOLS_DrawCheckedRect HDC    dc,
LPRECT    rect
[static]
 

Definition at line 612 of file uitools.cpp.

Referenced by UITOOLS95_DFC_ButtonCheck(), and UITOOLS95_DFC_ButtonPush().

BOOL UITOOLS95_DFC_ButtonPush HDC    dc,
LPRECT    r,
UINT    uFlags
[static]
 

Definition at line 641 of file uitools.cpp.

Referenced by UITOOLS95_DrawFrameButton(), and UITOOLS95_DrawFrameScroll().

BOOL UITOOLS95_DFC_ButtonCheck HDC    dc,
LPRECT    r,
UINT    uFlags
[static]
 

Definition at line 697 of file uitools.cpp.

Referenced by UITOOLS95_DrawFrameButton().

BOOL UITOOLS95_DFC_ButtonRadio HDC    dc,
LPRECT    r,
UINT    uFlags
[static]
 

Definition at line 761 of file uitools.cpp.

Referenced by UITOOLS95_DrawFrameButton().

BOOL UITOOLS95_DrawFrameButton HDC    hdc,
LPRECT    rc,
UINT    uState
[static]
 

Definition at line 882 of file uitools.cpp.

Referenced by DrawFrameControl().

BOOL UITOOLS95_DrawFrameCaption HDC    dc,
LPRECT    r,
UINT    uFlags
[static]
 

Definition at line 911 of file uitools.cpp.

Referenced by DrawFrameControl().

BOOL UITOOLS95_DrawFrameScroll HDC    dc,
LPRECT    r,
UINT    uFlags
[static]
 

Definition at line 1084 of file uitools.cpp.

Referenced by DrawFrameControl().

BOOL UITOOLS95_DrawFrameMenu HDC    dc,
LPRECT    r,
UINT    uFlags
[static]
 

Definition at line 1256 of file uitools.cpp.

Referenced by DrawFrameControl().

BOOL WIN32API DrawFrameControl HDC    hdc,
LPRECT    rc,
UINT    uType,
UINT    uState
 

Definition at line 1334 of file uitools.cpp.

Referenced by BUTTON_DrawPushButton(), CBPaintButton(), CB_Paint(), SCROLL_DrawBottomArrow(), and SCROLL_DrawTopArrow().

BOOL Paint_DrawStateJam HDC    hdc,
UINT    opcode,
DRAWSTATEPROC    func,
LPARAM    lp,
WPARAM    wp,
LPRECT    rc,
UINT    dtflags,
BOOL    unicode
[static]
 

Definition at line 1364 of file uitools.cpp.

Referenced by Paint_DrawState().

BOOL Paint_DrawState HDC    hdc,
HBRUSH    hbr,
DRAWSTATEPROC    func,
LPARAM    lp,
WPARAM    wp,
INT    x,
INT    y,
INT    cx,
INT    cy,
UINT    flags,
BOOL    unicode
 

Definition at line 1416 of file uitools.cpp.

Referenced by DrawStateA(), and DrawStateW().

BOOL WIN32API DrawStateA HDC    hdc,
HBRUSH    hbc,
DRAWSTATEPROC    lpOutputFunc,
LPARAM    lData,
WPARAM    wData,
int    x,
int    y,
int    cx,
int    cy,
UINT    fuFlags
 

Definition at line 1577 of file uitools.cpp.

BOOL WIN32API DrawStateW HDC    hdc,
HBRUSH    hbc,
DRAWSTATEPROC    lpOutputFunc,
LPARAM    lData,
WPARAM    wData,
int    x,
int    y,
int    cx,
int    cy,
UINT    fuFlags
 

Definition at line 1606 of file uitools.cpp.

BOOL WIN32API DrawFocusRect HDC    hdc,
const RECT *    lpRect
 

Definition at line 1616 of file uitools.cpp.

Referenced by BUTTON_DrawPushButton(), CBPaintText(), CB_Paint(), LISTBOX_DrawItem(), RECT_EQUAL(), and UB_Paint().

BOOL WIN32API DrawIcon HDC    hDC,
int    X,
int    Y,
HICON    hIcon
 

Definition at line 1652 of file uitools.cpp.

Referenced by BUTTON_DrawPushButton(), Paint_DrawStateJam(), and STATIC_PaintIconfn().

BOOL WIN32API DrawIconEx HDC    hdc,
int    xLeft,
int    yTop,
HICON    hIcon,
int    cxWidth,
int    cyWidth,
UINT    istepIfAniCur,
HBRUSH    hbrFlickerFreeDraw,
UINT    diFlags
 

Definition at line 1697 of file uitools.cpp.

Referenced by DrawCaptionTemp(), and MDI_AugmentFrameMenu().

BOOL WIN32API DrawAnimatedRects HWND    hwnd,
int    idAni,
CONST RECT *    lprcFrom,
CONST RECT *    lprcTo
 

Definition at line 1828 of file uitools.cpp.


Variable Documentation

const signed LTInnerNormal[] [static]
 

Initial value:

 {
    -1,           -1,                 -1,                 -1,
    -1,           COLOR_BTNHIGHLIGHT, COLOR_BTNHIGHLIGHT, -1,
    -1,           COLOR_3DDKSHADOW,   COLOR_3DDKSHADOW,   -1,
    -1,           -1,                 -1,                 -1
}

Definition at line 26 of file uitools.cpp.

const signed char LTOuterNormal[] [static]
 

Initial value:

 {
    -1,                 COLOR_3DLIGHT,     COLOR_BTNSHADOW, -1,
    COLOR_BTNHIGHLIGHT, COLOR_3DLIGHT,     COLOR_BTNSHADOW, -1,
    COLOR_3DDKSHADOW,   COLOR_3DLIGHT,     COLOR_BTNSHADOW, -1,
    -1,                 COLOR_3DLIGHT,     COLOR_BTNSHADOW, -1
}

Definition at line 33 of file uitools.cpp.

const signed char RBInnerNormal[] [static]
 

Initial value:

 {
    -1,           -1,                -1,              -1,
    -1,           COLOR_BTNSHADOW,   COLOR_BTNSHADOW, -1,
    -1,           COLOR_3DLIGHT,     COLOR_3DLIGHT,   -1,
    -1,           -1,                -1,              -1
}

Definition at line 40 of file uitools.cpp.

const signed char RBOuterNormal[] [static]
 

Initial value:

 {
    -1,              COLOR_3DDKSHADOW,  COLOR_BTNHIGHLIGHT, -1,
    COLOR_BTNSHADOW, COLOR_3DDKSHADOW,  COLOR_BTNHIGHLIGHT, -1,
    COLOR_3DLIGHT,   COLOR_3DDKSHADOW,  COLOR_BTNHIGHLIGHT, -1,
    -1,              COLOR_3DDKSHADOW,  COLOR_BTNHIGHLIGHT, -1
}

Definition at line 47 of file uitools.cpp.

const signed char LTInnerSoft[] [static]
 

Initial value:

 {
    -1,                  -1,                -1,              -1,
    -1,                  COLOR_3DLIGHT,     COLOR_3DLIGHT,   -1,
    -1,                  COLOR_BTNSHADOW,   COLOR_BTNSHADOW, -1,
    -1,                  -1,                -1,              -1
}

Definition at line 54 of file uitools.cpp.

const signed char LTOuterSoft[] [static]
 

Initial value:

 {
    -1,              COLOR_BTNHIGHLIGHT, COLOR_3DDKSHADOW, -1,
    COLOR_3DLIGHT,   COLOR_BTNHIGHLIGHT, COLOR_3DDKSHADOW, -1,
    COLOR_BTNSHADOW, COLOR_BTNHIGHLIGHT, COLOR_3DDKSHADOW, -1,
    -1,              COLOR_BTNHIGHLIGHT, COLOR_3DDKSHADOW, -1
}

Definition at line 61 of file uitools.cpp.

const signed char LTRBOuterMono[] [static]
 

Initial value:

 {
    -1,           COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
    COLOR_WINDOW, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
    COLOR_WINDOW, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
    COLOR_WINDOW, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
}

Definition at line 71 of file uitools.cpp.

const signed char LTRBInnerMono[] [static]
 

Initial value:

 {
    -1, -1,           -1,           -1,
    -1, COLOR_WINDOW, COLOR_WINDOW, COLOR_WINDOW,
    -1, COLOR_WINDOW, COLOR_WINDOW, COLOR_WINDOW,
    -1, COLOR_WINDOW, COLOR_WINDOW, COLOR_WINDOW,
}

Definition at line 78 of file uitools.cpp.

const signed char LTRBOuterFlat[] [static]
 

Initial value:

 {
    -1,                COLOR_BTNSHADOW, COLOR_BTNSHADOW, COLOR_BTNSHADOW,
    COLOR_WINDOWFRAME, COLOR_BTNSHADOW, COLOR_BTNSHADOW, COLOR_BTNSHADOW,
    COLOR_WINDOWFRAME, COLOR_BTNSHADOW, COLOR_BTNSHADOW, COLOR_BTNSHADOW,
    COLOR_WINDOWFRAME, COLOR_BTNSHADOW, COLOR_BTNSHADOW, COLOR_BTNSHADOW,
}

Definition at line 85 of file uitools.cpp.

const signed char LTRBInnerFlat[] [static]
 

Initial value:

 {
    -1, -1,              -1,              -1,
    -1, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
    -1, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
    -1, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME, COLOR_WINDOWFRAME,
}

Definition at line 92 of file uitools.cpp.


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