ReactOS 0.4.16-dev-329-g9223134
cicuif.h File Reference
#include "cicarray.h"
#include <uxtheme.h>
#include <vsstyle.h>
Include dependency graph for cicuif.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CUIFSystemInfo
 
class  CUIFTheme
 
class  CUIFObjectArray
 
class  CUIFObject
 
class  CUIFColorTable
 
class  CUIFColorTableSys
 
class  CUIFColorTableOff10
 
class  CUIFSolidBrush
 
class  CUIFIcon
 
class  CUIFBitmapDC
 
class  CUIFScheme
 
class  CUIFSchemeDef
 
class  CUIFWindow
 
class  CUIFToolTip
 
class  CUIFShadow
 
class  CUIFMenu
 
class  CUIFMenuItem
 
class  CUIFMenuItemSeparator
 
class  CUIFButton
 
class  CUIFButton2
 
class  CUIFToolbarMenuButton
 
class  CUIFToolbarButtonElement
 
class  CUIFToolbarButton
 
class  CUIFGripper
 
class  CUIFWndFrame
 
class  CUIFBalloonButton
 
class  CUIFBalloonWindow
 

Typedefs

using FN_OpenThemeData = decltype(&OpenThemeData)
 
using FN_CloseThemeData = decltype(&CloseThemeData)
 
using FN_DrawThemeBackground = decltype(&DrawThemeBackground)
 
using FN_DrawThemeParentBackground = decltype(&DrawThemeParentBackground)
 
using FN_DrawThemeText = decltype(&DrawThemeText)
 
using FN_DrawThemeIcon = decltype(&DrawThemeIcon)
 
using FN_GetThemeBackgroundExtent = decltype(&GetThemeBackgroundExtent)
 
using FN_GetThemeBackgroundContentRect = decltype(&GetThemeBackgroundContentRect)
 
using FN_GetThemeTextExtent = decltype(&GetThemeTextExtent)
 
using FN_GetThemePartSize = decltype(&GetThemePartSize)
 
using FN_DrawThemeEdge = decltype(&DrawThemeEdge)
 
using FN_GetThemeColor = decltype(&GetThemeColor)
 
using FN_GetThemeMargins = decltype(&GetThemeMargins)
 
using FN_GetThemeFont = decltype(&GetThemeFont)
 
using FN_GetThemeSysColor = decltype(&GetThemeSysColor)
 
using FN_GetThemeSysSize = decltype(&GetThemeSysSize)
 

Enumerations

enum  { UIF_DRAW_PRESSED = 0x10 , UIF_DRAW_DISABLED = 0x20 }
 
enum  {
  UIF_WINDOW_CHILD = 0x1 , UIF_WINDOW_TOPMOST = 0x2 , UIF_WINDOW_TOOLWINDOW = 0x4 , UIF_WINDOW_DLGFRAME = 0x8 ,
  UIF_WINDOW_TOOLTIP = 0x20 , UIF_WINDOW_SHADOW = 0x40 , UIF_WINDOW_WORKAREA = 0x80 , UIF_WINDOW_MONITOR = 0x100 ,
  UIF_WINDOW_LAYOUTRTL = 0x200 , UIF_WINDOW_NOMOUSEMSG = 0x400 , UIF_WINDOW_USESCHEME1 = 0x10000000 , UIF_WINDOW_USESCHEME2 = 0x20000000 ,
  UIF_WINDOW_USESCHEME3 = 0x40000000 , UIF_WINDOW_ENABLETHEMED = 0x80000000
}
 
enum  { UIF_MENU_USE_OFF10 = 0x10000000 }
 
enum  {
  UIF_BUTTON_H_ALIGN_LEFT = 0 , UIF_BUTTON_H_ALIGN_CENTER = 0x1 , UIF_BUTTON_H_ALIGN_RIGHT = 0x2 , UIF_BUTTON_H_ALIGN_MASK = UIF_BUTTON_H_ALIGN_CENTER | UIF_BUTTON_H_ALIGN_RIGHT ,
  UIF_BUTTON_V_ALIGN_TOP = 0 , UIF_BUTTON_V_ALIGN_MIDDLE = 0x4 , UIF_BUTTON_V_ALIGN_BOTTOM = 0x8 , UIF_BUTTON_V_ALIGN_MASK = UIF_BUTTON_V_ALIGN_MIDDLE | UIF_BUTTON_V_ALIGN_BOTTOM ,
  UIF_BUTTON_LARGE_ICON = 0x100 , UIF_BUTTON_VERTICAL = 0x400
}
 
enum  { UIF_GRIPPER_VERTICAL = 0x1 }
 
enum  { UIF_BALLOON_WINDOW_OK = 0x10000 , UIF_BALLOON_WINDOW_YESNO = 0x20000 , UIF_BALLOON_WINDOW_TYPE_MASK = 0xF0000 }
 

Functions

void cicInitUIFUtil (void)
 
void cicDoneUIFUtil (void)
 
HBITMAP cicMirrorBitmap (HBITMAP hBitmap, HBRUSH hbrBack)
 
HBRUSH cicCreateDitherBrush (VOID)
 
HBITMAP cicCreateDisabledBitmap (LPCRECT prc, HBITMAP hbmMask, HBRUSH hbr1, HBRUSH hbr2, BOOL bPressed)
 
HBITMAP cicCreateShadowMaskBmp (LPRECT prc, HBITMAP hbm1, HBITMAP hbm2, HBRUSH hbr1, HBRUSH hbr2)
 
HBITMAP cicChangeBitmapColor (LPCRECT prc, HBITMAP hbm, COLORREF rgbBack, COLORREF rgbFore)
 
HBITMAP cicConvertBlackBKGBitmap (LPCRECT prc, HBITMAP hbm1, HBITMAP hbm2, HBRUSH hBrush)
 
HBITMAP cicCreateMaskBmp (LPCRECT prc, HBITMAP hbm1, HBITMAP hbm2, HBRUSH hbr, COLORREF rgbColor, COLORREF rgbBack)
 
BOOL cicGetIconBitmaps (HICON hIcon, HBITMAP *hbm1, HBITMAP *hbm2, const SIZE *pSize)
 
void cicDrawMaskBmpOnDC (HDC hDC, LPCRECT prc, HBITMAP hbmp, HBITMAP hbmpMask)
 
CUIFSchemecicCreateUIFScheme (DWORD type)
 @unimplemented
 
void cicInitUIFLib (void)
 
void cicDoneUIFLib (void)
 
void cicInitUIFSys (void)
 
void cicDoneUIFSys (void)
 
void cicUpdateUIFSys (void)
 
void cicInitUIFScheme (void)
 
void cicUpdateUIFScheme (void)
 
void cicDoneUIFScheme (void)
 
void cicGetWorkAreaRect (POINT pt, LPRECT prc)
 
void cicGetScreenRect (POINT pt, LPRECT prc)
 
BOOL cicIsFullScreenSize (HWND hWnd)
 
BOOL cicGetIconSize (HICON hIcon, LPSIZE pSize)
 

Typedef Documentation

◆ FN_CloseThemeData

using FN_CloseThemeData = decltype(&CloseThemeData)

Definition at line 69 of file cicuif.h.

◆ FN_DrawThemeBackground

Definition at line 70 of file cicuif.h.

◆ FN_DrawThemeEdge

using FN_DrawThemeEdge = decltype(&DrawThemeEdge)

Definition at line 78 of file cicuif.h.

◆ FN_DrawThemeIcon

using FN_DrawThemeIcon = decltype(&DrawThemeIcon)

Definition at line 73 of file cicuif.h.

◆ FN_DrawThemeParentBackground

Definition at line 71 of file cicuif.h.

◆ FN_DrawThemeText

using FN_DrawThemeText = decltype(&DrawThemeText)

Definition at line 72 of file cicuif.h.

◆ FN_GetThemeBackgroundContentRect

Definition at line 75 of file cicuif.h.

◆ FN_GetThemeBackgroundExtent

Definition at line 74 of file cicuif.h.

◆ FN_GetThemeColor

using FN_GetThemeColor = decltype(&GetThemeColor)

Definition at line 79 of file cicuif.h.

◆ FN_GetThemeFont

using FN_GetThemeFont = decltype(&GetThemeFont)

Definition at line 81 of file cicuif.h.

◆ FN_GetThemeMargins

using FN_GetThemeMargins = decltype(&GetThemeMargins)

Definition at line 80 of file cicuif.h.

◆ FN_GetThemePartSize

Definition at line 77 of file cicuif.h.

◆ FN_GetThemeSysColor

Definition at line 82 of file cicuif.h.

◆ FN_GetThemeSysSize

using FN_GetThemeSysSize = decltype(&GetThemeSysSize)

Definition at line 83 of file cicuif.h.

◆ FN_GetThemeTextExtent

Definition at line 76 of file cicuif.h.

◆ FN_OpenThemeData

using FN_OpenThemeData = decltype(&OpenThemeData)

Definition at line 68 of file cicuif.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
UIF_DRAW_PRESSED 
UIF_DRAW_DISABLED 

Definition at line 409 of file cicuif.h.

410{
411 UIF_DRAW_PRESSED = 0x10,
412 UIF_DRAW_DISABLED = 0x20,
413};
@ UIF_DRAW_PRESSED
Definition: cicuif.h:411
@ UIF_DRAW_DISABLED
Definition: cicuif.h:412

◆ anonymous enum

anonymous enum
Enumerator
UIF_WINDOW_CHILD 
UIF_WINDOW_TOPMOST 
UIF_WINDOW_TOOLWINDOW 
UIF_WINDOW_DLGFRAME 
UIF_WINDOW_TOOLTIP 
UIF_WINDOW_SHADOW 
UIF_WINDOW_WORKAREA 
UIF_WINDOW_MONITOR 
UIF_WINDOW_LAYOUTRTL 
UIF_WINDOW_NOMOUSEMSG 
UIF_WINDOW_USESCHEME1 
UIF_WINDOW_USESCHEME2 
UIF_WINDOW_USESCHEME3 
UIF_WINDOW_ENABLETHEMED 

Definition at line 492 of file cicuif.h.

493{
494 UIF_WINDOW_CHILD = 0x1,
495 UIF_WINDOW_TOPMOST = 0x2,
498 UIF_WINDOW_TOOLTIP = 0x20,
499 UIF_WINDOW_SHADOW = 0x40,
500 UIF_WINDOW_WORKAREA = 0x80,
501 UIF_WINDOW_MONITOR = 0x100,
502 UIF_WINDOW_LAYOUTRTL = 0x200,
503 UIF_WINDOW_NOMOUSEMSG = 0x400,
504 UIF_WINDOW_USESCHEME1 = 0x10000000,
505 UIF_WINDOW_USESCHEME2 = 0x20000000,
506 UIF_WINDOW_USESCHEME3 = 0x40000000,
507 UIF_WINDOW_ENABLETHEMED = 0x80000000,
508};
@ UIF_WINDOW_NOMOUSEMSG
Definition: cicuif.h:503
@ UIF_WINDOW_CHILD
Definition: cicuif.h:494
@ UIF_WINDOW_LAYOUTRTL
Definition: cicuif.h:502
@ UIF_WINDOW_TOPMOST
Definition: cicuif.h:495
@ UIF_WINDOW_TOOLWINDOW
Definition: cicuif.h:496
@ UIF_WINDOW_WORKAREA
Definition: cicuif.h:500
@ UIF_WINDOW_USESCHEME3
Definition: cicuif.h:506
@ UIF_WINDOW_MONITOR
Definition: cicuif.h:501
@ UIF_WINDOW_USESCHEME2
Definition: cicuif.h:505
@ UIF_WINDOW_DLGFRAME
Definition: cicuif.h:497
@ UIF_WINDOW_ENABLETHEMED
Definition: cicuif.h:507
@ UIF_WINDOW_USESCHEME1
Definition: cicuif.h:504
@ UIF_WINDOW_SHADOW
Definition: cicuif.h:499
@ UIF_WINDOW_TOOLTIP
Definition: cicuif.h:498

◆ anonymous enum

anonymous enum
Enumerator
UIF_MENU_USE_OFF10 

Definition at line 683 of file cicuif.h.

684{
685 UIF_MENU_USE_OFF10 = 0x10000000,
686};
@ UIF_MENU_USE_OFF10
Definition: cicuif.h:685

◆ anonymous enum

anonymous enum
Enumerator
UIF_BUTTON_H_ALIGN_LEFT 
UIF_BUTTON_H_ALIGN_CENTER 
UIF_BUTTON_H_ALIGN_RIGHT 
UIF_BUTTON_H_ALIGN_MASK 
UIF_BUTTON_V_ALIGN_TOP 
UIF_BUTTON_V_ALIGN_MIDDLE 
UIF_BUTTON_V_ALIGN_BOTTOM 
UIF_BUTTON_V_ALIGN_MASK 
UIF_BUTTON_LARGE_ICON 
UIF_BUTTON_VERTICAL 

Definition at line 802 of file cicuif.h.

803{
812 UIF_BUTTON_LARGE_ICON = 0x100,
813 UIF_BUTTON_VERTICAL = 0x400,
814};
@ UIF_BUTTON_V_ALIGN_BOTTOM
Definition: cicuif.h:810
@ UIF_BUTTON_V_ALIGN_TOP
Definition: cicuif.h:808
@ UIF_BUTTON_H_ALIGN_LEFT
Definition: cicuif.h:804
@ UIF_BUTTON_V_ALIGN_MIDDLE
Definition: cicuif.h:809
@ UIF_BUTTON_V_ALIGN_MASK
Definition: cicuif.h:811
@ UIF_BUTTON_H_ALIGN_CENTER
Definition: cicuif.h:805
@ UIF_BUTTON_VERTICAL
Definition: cicuif.h:813
@ UIF_BUTTON_LARGE_ICON
Definition: cicuif.h:812
@ UIF_BUTTON_H_ALIGN_RIGHT
Definition: cicuif.h:806
@ UIF_BUTTON_H_ALIGN_MASK
Definition: cicuif.h:807

◆ anonymous enum

anonymous enum
Enumerator
UIF_GRIPPER_VERTICAL 

Definition at line 938 of file cicuif.h.

939{
941};
@ UIF_GRIPPER_VERTICAL
Definition: cicuif.h:940

◆ anonymous enum

anonymous enum
Enumerator
UIF_BALLOON_WINDOW_OK 
UIF_BALLOON_WINDOW_YESNO 
UIF_BALLOON_WINDOW_TYPE_MASK 

Definition at line 1006 of file cicuif.h.

1007{
1008 UIF_BALLOON_WINDOW_OK = 0x10000,
1009 UIF_BALLOON_WINDOW_YESNO = 0x20000,
1011};
@ UIF_BALLOON_WINDOW_OK
Definition: cicuif.h:1008
@ UIF_BALLOON_WINDOW_YESNO
Definition: cicuif.h:1009
@ UIF_BALLOON_WINDOW_TYPE_MASK
Definition: cicuif.h:1010

Function Documentation

◆ cicChangeBitmapColor()

HBITMAP cicChangeBitmapColor ( LPCRECT  prc,
HBITMAP  hbm,
COLORREF  rgbBack,
COLORREF  rgbFore 
)

Definition at line 1272 of file cicuif.cpp.

1273{
1275 return NULL;
1276
1277 INT width = prc->right - prc->left;
1278 INT height = prc->bottom - prc->top;
1279
1280 CUIFSolidBrush brush(rgbFore);
1281
1285
1287 ::SelectObject(*CUIFBitmapDC::s_phdcDst, (HBRUSH)brush);
1289
1291 ::SetBkColor(*CUIFBitmapDC::s_phdcDst, RGB(255, 255, 255));
1294
1299}
HBITMAP DetachBitmap()
Definition: cicuif.h:378
BOOL SetDIB(LONG cx, LONG cy, WORD cPlanes, WORD cBitCount)
Definition: cicuif.cpp:1101
static CUIFBitmapDC * s_phdcDst
Definition: cicuif.h:366
void Uninit(BOOL bKeep=FALSE)
Definition: cicuif.cpp:1063
static BOOL s_fInitBitmapDCs
Definition: cicuif.h:363
static CUIFBitmapDC * s_phdcSrc
Definition: cicuif.h:364
static CUIFBitmapDC * s_phdcMask
Definition: cicuif.h:365
BOOL SetBitmap(HBITMAP hBitmap)
Definition: cicuif.cpp:1087
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
Definition: common.c:57
#define RGB(r, g, b)
Definition: precomp.h:71
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
_In_ HBITMAP hbm
Definition: ntgdi.h:2776
_Out_ LPRECT prc
Definition: ntgdi.h:1658
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
int32_t INT
Definition: typedefs.h:58
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
Definition: dc.c:999
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1546
#define SRCCOPY
Definition: wingdi.h:333
#define MERGECOPY
Definition: wingdi.h:332
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:918

Referenced by cicConvertBlackBKGBitmap().

◆ cicConvertBlackBKGBitmap()

HBITMAP cicConvertBlackBKGBitmap ( LPCRECT  prc,
HBITMAP  hbm1,
HBITMAP  hbm2,
HBRUSH  hBrush 
)

Definition at line 1302 of file cicuif.cpp.

1303{
1305 return NULL;
1306
1307 if (IS_INTRESOURCE(hBrush))
1308 hBrush = ::GetSysColorBrush(HandleToLong(hBrush) - 1);
1309
1310 LOGBRUSH lb;
1311 ::GetObject(hBrush, sizeof(lb), &lb);
1312 if (lb.lbStyle || lb.lbColor)
1313 return NULL;
1314
1315 INT width = prc->right - prc->left;
1316 INT height = prc->bottom - prc->top;
1317
1318 HBITMAP hBitmap = cicChangeBitmapColor(prc, hbm1, 0, RGB(255, 255, 255));
1319 if ( !hBitmap )
1320 return NULL;
1321
1325
1326 RECT rc = { 0, 0, width, height };
1327
1328 HBRUSH hbrWhite = (HBRUSH)GetStockObject(WHITE_BRUSH);
1329 ::FillRect(*CUIFBitmapDC::s_phdcDst, &rc, hbrWhite);
1330
1333
1339}
#define HandleToLong(h)
Definition: basetsd.h:80
HBITMAP cicChangeBitmapColor(LPCRECT prc, HBITMAP hbm, COLORREF rgbBack, COLORREF rgbFore)
Definition: cicuif.cpp:1272
static HBITMAP hBitmap
Definition: timezone.c:26
pKey DeleteObject()
static HBITMAP
Definition: button.c:44
UINT lbStyle
Definition: wingdi.h:1747
COLORREF lbColor
Definition: wingdi.h:1748
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define WHITE_BRUSH
Definition: wingdi.h:902
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
#define GetObject
Definition: wingdi.h:4468
HBRUSH WINAPI GetSysColorBrush(_In_ int)
#define IS_INTRESOURCE(i)
Definition: winuser.h:580

Referenced by cicCreateMaskBmp().

◆ cicCreateDisabledBitmap()

HBITMAP cicCreateDisabledBitmap ( LPCRECT  prc,
HBITMAP  hbmMask,
HBRUSH  hbr1,
HBRUSH  hbr2,
BOOL  bPressed 
)

Definition at line 1200 of file cicuif.cpp.

1201{
1203 return NULL;
1204
1205 LONG width = prc->right - prc->left, height = prc->bottom - prc->top;
1206
1210
1211 RECT rc = { 0, 0, width, height };
1213
1214 HBRUSH hbrWhite = (HBRUSH)GetStockObject(WHITE_BRUSH);
1215 ::FillRect(*CUIFBitmapDC::s_phdcSrc, &rc, hbrWhite);
1216
1218 if (bPressed)
1221 else
1222 ::BitBlt(*CUIFBitmapDC::s_phdcDst, 0, 0, width, height,
1224
1226
1229
1234}
long LONG
Definition: pedump.c:60
#define SRCINVERT
Definition: wingdi.h:329
#define SRCPAINT
Definition: wingdi.h:334
#define SRCAND
Definition: wingdi.h:330

◆ cicCreateDitherBrush()

HBRUSH cicCreateDitherBrush ( VOID  )

Definition at line 1181 of file cicuif.cpp.

1182{
1183 BYTE bytes[16];
1184 ZeroMemory(&bytes, sizeof(bytes));
1185 bytes[0] = bytes[4] = bytes[8] = bytes[12] = 0x55;
1186 bytes[2] = bytes[6] = bytes[10] = bytes[14] = 0xAA;
1187 HBITMAP hBitmap = ::CreateBitmap(8, 8, 1, 1, bytes);
1188 if (!hBitmap)
1189 return NULL;
1190
1191 LOGBRUSH lb;
1193 lb.lbStyle = BS_PATTERN;
1194 HBRUSH hbr = ::CreateBrushIndirect(&lb);
1196 return hbr;
1197}
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
#define ULONG_PTR
Definition: config.h:101
ULONG_PTR lbHatch
Definition: wingdi.h:1749
#define ZeroMemory
Definition: winbase.h:1737
HBRUSH WINAPI CreateBrushIndirect(_In_ const LOGBRUSH *plb)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
#define BS_PATTERN
Definition: wingdi.h:1090
unsigned char BYTE
Definition: xxhash.c:193

◆ cicCreateMaskBmp()

HBITMAP cicCreateMaskBmp ( LPCRECT  prc,
HBITMAP  hbm1,
HBITMAP  hbm2,
HBRUSH  hbr,
COLORREF  rgbColor,
COLORREF  rgbBack 
)

Definition at line 1342 of file cicuif.cpp.

1344{
1346 return NULL;
1347
1348 INT width = prc->right - prc->left;
1349 INT height = prc->bottom - prc->top;
1350 HBITMAP hBitmap = cicConvertBlackBKGBitmap(prc, hbm1, hbm2, hbr);
1351 if (hBitmap)
1352 return hBitmap;
1353
1357
1358 RECT rc = { 0, 0, width, height };
1359
1360 COLORREF OldTextColor = ::SetTextColor(*CUIFBitmapDC::s_phdcDst, rgbColor);
1361 COLORREF OldBkColor = ::SetBkColor(*CUIFBitmapDC::s_phdcDst, rgbBack);
1365
1371
1373}
HBITMAP cicConvertBlackBKGBitmap(LPCRECT prc, HBITMAP hbm1, HBITMAP hbm2, HBRUSH hBrush)
Definition: cicuif.cpp:1302
DWORD COLORREF
Definition: windef.h:300

Referenced by CUIFButton::DrawBitmapProc().

◆ cicCreateShadowMaskBmp()

HBITMAP cicCreateShadowMaskBmp ( LPRECT  prc,
HBITMAP  hbm1,
HBITMAP  hbm2,
HBRUSH  hbr1,
HBRUSH  hbr2 
)

Definition at line 1237 of file cicuif.cpp.

1238{
1240 return NULL;
1241
1242 --prc->left;
1243 --prc->top;
1244
1245 LONG width = prc->right - prc->left;
1246 LONG height = prc->bottom - prc->top;
1247
1248 CUIFBitmapDC bitmapDC(TRUE);
1249
1253 bitmapDC.SetDIB(width, height, 1, 32);
1254
1255 RECT rc = { 0, 0, width, height };
1256
1258 ::FillRect(bitmapDC, &rc, hbr2);
1259
1260 ::BitBlt(bitmapDC, 0, 0, width, height, *CUIFBitmapDC::s_phdcMask, 0, 0, SRCPAINT);
1261 ::BitBlt(*CUIFBitmapDC::s_phdcDst, 2, 2, width, height, bitmapDC, 0, 0, SRCAND);
1264
1269}

◆ cicCreateUIFScheme()

CUIFScheme * cicCreateUIFScheme ( DWORD  type)

@unimplemented

Definition at line 628 of file cicuif.cpp.

629{
630#if 1
631 return new(cicNoThrow) CUIFSchemeDef(type);
632#else
633 switch (type)
634 {
635 case 1: return new(cicNoThrow) CUIFSchemeOff10(1);
636 case 2: return new(cicNoThrow) CUIFSchemeOff10(2);
637 case 3: return new(cicNoThrow) CUIFSchemeOff10(3);
638 default: return new(cicNoThrow) CUIFSchemeDef(type);
639 }
640#endif
641}
#define cicNoThrow
Definition: cicbase.h:34
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545

Referenced by CUIFWindow::CreateScheme().

◆ cicDoneUIFLib()

void cicDoneUIFLib ( void  )

Definition at line 5466 of file cicuif.cpp.

5467{
5469 cicDoneUIFSys();
5471}
void cicDoneUIFSys(void)
Definition: cicuif.cpp:5399
void cicDoneUIFScheme(void)
Definition: cicuif.cpp:5443
void cicDoneUIFUtil(void)
Definition: cicuif.cpp:1131

Referenced by ProcessDetach().

◆ cicDoneUIFScheme()

void cicDoneUIFScheme ( void  )

Definition at line 5443 of file cicuif.cpp.

5444{
5446 {
5449 }
5451 {
5454 }
5455}
static CUIFColorTableSys * s_pColorTableSys
Definition: cicuif.h:418
static CUIFColorTableOff10 * s_pColorTableOff10
Definition: cicuif.h:419

Referenced by cicDoneUIFLib().

◆ cicDoneUIFSys()

void cicDoneUIFSys ( void  )

Definition at line 5399 of file cicuif.cpp.

5400{
5402 {
5405 }
5406}
static CUIFSystemInfo * s_pSystemInfo
Definition: cicuif.h:52

Referenced by cicDoneUIFLib().

◆ cicDoneUIFUtil()

void cicDoneUIFUtil ( void  )

Definition at line 1131 of file cicuif.cpp.

1132{
1134 {
1137 }
1138
1140 {
1143 }
1144
1146 {
1149 }
1150
1152}
#define FALSE
Definition: types.h:117

Referenced by cicDoneUIFLib().

◆ cicDrawMaskBmpOnDC()

void cicDrawMaskBmpOnDC ( HDC  hDC,
LPCRECT  prc,
HBITMAP  hbmp,
HBITMAP  hbmpMask 
)

Definition at line 1407 of file cicuif.cpp.

1408{
1410 return;
1411
1412 LONG cx = prc->right - prc->left, cy = prc->bottom - prc->top;
1423}
static HDC hDC
Definition: 3dtext.c:33
HBITMAP hbmp
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585

◆ cicGetIconBitmaps()

BOOL cicGetIconBitmaps ( HICON  hIcon,
HBITMAP hbm1,
HBITMAP hbm2,
const SIZE pSize 
)

Definition at line 1375 of file cicuif.cpp.

1376{
1378 return FALSE;
1379
1380 SIZE size;
1381 if (pSize)
1382 {
1383 size = *pSize;
1384 }
1385 else
1386 {
1387 if (!cicGetIconSize(hIcon, &size))
1388 return FALSE;
1389 }
1390
1391 CUIFBitmapDC::s_phdcSrc->SetDIB(size.cx, size.cy, 1, 32);
1393
1394 RECT rc = { 0, 0, size.cx, size.cy };
1396
1399
1404 return TRUE;
1405}
BOOL cicGetIconSize(HICON hIcon, LPSIZE pSize)
Definition: cicuif.cpp:5375
GLsizeiptr size
Definition: glext.h:5919
HICON hIcon
Definition: msconfig.c:44
#define DI_NORMAL
Definition: wingdi.h:72
#define BLACK_BRUSH
Definition: wingdi.h:896
#define DI_MASK
Definition: wingdi.h:71
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
Definition: cursoricon.c:2080

Referenced by LangBarInsertMenu().

◆ cicGetIconSize()

BOOL cicGetIconSize ( HICON  hIcon,
LPSIZE  pSize 
)

Definition at line 5375 of file cicuif.cpp.

5376{
5378 if (!GetIconInfo(hIcon, &IconInfo))
5379 return FALSE;
5380
5381 BITMAP bm;
5382 ::GetObject(IconInfo.hbmColor, sizeof(bm), &bm);
5385 pSize->cx = bm.bmWidth;
5386 pSize->cy = bm.bmHeight;
5387 return TRUE;
5388}
_Out_opt_ PICONINFO IconInfo
Definition: ntuser.h:2294
Definition: bl.h:1331
HBITMAP hbmColor
Definition: winuser.h:3130
HBITMAP hbmMask
Definition: winuser.h:3129
LONG cx
Definition: windef.h:334
LONG cy
Definition: windef.h:335
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
Definition: cursoricon.c:2097

Referenced by cicGetIconBitmaps(), and CUIFIcon::GetImageList().

◆ cicGetScreenRect()

void cicGetScreenRect ( POINT  pt,
LPRECT  prc 
)

Definition at line 5353 of file cicuif.cpp.

5354{
5356 HMONITOR hMon = MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST);
5357 if (hMon)
5358 {
5359 MONITORINFO mi = { sizeof(mi) };
5360 GetMonitorInfo(hMon, &mi);
5361 *prc = mi.rcMonitor;
5362 }
5363}
#define pt(x, y)
Definition: drawing.c:79
HMONITOR WINAPI MonitorFromPoint(POINT, DWORD)
RECT rcMonitor
Definition: winuser.h:3788
static MONITORINFO mi
Definition: win.c:7338
#define GetMonitorInfo
Definition: winuser.h:5803
#define SM_CYSCREEN
Definition: winuser.h:963
#define SM_CXSCREEN
Definition: winuser.h:962
int WINAPI GetSystemMetrics(_In_ int)

Referenced by CTipbarWnd::CTipbarWnd().

◆ cicGetWorkAreaRect()

void cicGetWorkAreaRect ( POINT  pt,
LPRECT  prc 
)

Definition at line 5340 of file cicuif.cpp.

5341{
5342 ::SystemParametersInfo(SPI_GETWORKAREA, 0, prc, 0);
5343
5344 HMONITOR hMon = ::MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST);
5345 if (hMon)
5346 {
5347 MONITORINFO mi = { sizeof(mi) };
5348 if (::GetMonitorInfo(hMon, &mi))
5349 *prc = mi.rcWork;
5350 }
5351}
#define SystemParametersInfo
Definition: winuser.h:5870

Referenced by CTipbarThread::MyMoveWnd().

◆ cicInitUIFLib()

void cicInitUIFLib ( void  )

Definition at line 5459 of file cicuif.cpp.

5460{
5461 cicInitUIFSys();
5464}
void cicInitUIFScheme(void)
Definition: cicuif.cpp:5416
void cicInitUIFSys(void)
Definition: cicuif.cpp:5392
void cicInitUIFUtil(void)
Definition: cicuif.cpp:1116

Referenced by ProcessAttach().

◆ cicInitUIFScheme()

void cicInitUIFScheme ( void  )

Definition at line 5416 of file cicuif.cpp.

5417{
5418 CUIFColorTable *pColorTable;
5419
5421 if (pColorTable)
5422 {
5423 pColorTable->InitColor();
5424 pColorTable->InitBrush();
5425 }
5426
5428 if (pColorTable)
5429 {
5430 pColorTable->InitColor();
5431 pColorTable->InitBrush();
5432 }
5433}

Referenced by cicInitUIFLib().

◆ cicInitUIFSys()

void cicInitUIFSys ( void  )

◆ cicInitUIFUtil()

◆ cicIsFullScreenSize()

BOOL cicIsFullScreenSize ( HWND  hWnd)

Definition at line 5365 of file cicuif.cpp.

5366{
5367 RECT rc;
5368
5369 ::GetWindowRect(hWnd, &rc);
5370 return (rc.left <= 0) && (rc.top <= 0) &&
5373}
HWND hWnd
Definition: settings.c:17
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
#define SM_CXFULLSCREEN
Definition: winuser.h:980
#define SM_CYFULLSCREEN
Definition: winuser.h:981

Referenced by CTipbarWnd::IsFullScreenWindow().

◆ cicMirrorBitmap()

HBITMAP cicMirrorBitmap ( HBITMAP  hBitmap,
HBRUSH  hbrBack 
)

Definition at line 1154 of file cicuif.cpp.

1155{
1156 BITMAP bm;
1157 if (!CUIFBitmapDC::s_fInitBitmapDCs || !::GetObject(hBitmap, sizeof(bm), &bm))
1158 return NULL;
1159
1161 CUIFBitmapDC::s_phdcDst->SetDIB(bm.bmWidth, bm.bmHeight, 1, 32);
1162 CUIFBitmapDC::s_phdcMask->SetDIB(bm.bmWidth, bm.bmHeight, 1, 32);
1163
1164 RECT rc = { 0, 0, bm.bmWidth, bm.bmHeight };
1165 FillRect(*CUIFBitmapDC::s_phdcDst, &rc, hbrBack);
1166
1168
1169 ::BitBlt(*CUIFBitmapDC::s_phdcMask, 0, 0, bm.bmWidth, bm.bmHeight, *CUIFBitmapDC::s_phdcSrc, 0, 0, SRCCOPY);
1170
1172
1173 ::BitBlt(*CUIFBitmapDC::s_phdcDst, 0, 0, bm.bmWidth, bm.bmHeight, *CUIFBitmapDC::s_phdcMask, 1, 0, SRCCOPY);
1174
1179}
DWORD WINAPI SetLayout(_In_ HDC hdc, _In_ DWORD dwLayout)
Definition: coord.c:780
#define LAYOUT_RTL
Definition: wingdi.h:1371

◆ cicUpdateUIFScheme()

void cicUpdateUIFScheme ( void  )

◆ cicUpdateUIFSys()

void cicUpdateUIFSys ( void  )

Definition at line 5408 of file cicuif.cpp.