//
#include <win32k.h>
+DBG_DEFAULT_CHANNEL(UserDefwnd);
/* These tables are used in:
* UITOOLS_DrawDiagEdge()
/* Ported from WINE20020904 */
BOOL FASTCALL UITOOLS95_DrawFrameButton(HDC hdc, LPRECT rc, UINT uState)
{
- switch(uState & 0xff)
+ switch(uState & 0x1f)
{
case DFCS_BUTTONPUSH:
return UITOOLS95_DFC_ButtonPush(hdc, rc, uState);
case DFCS_BUTTONRADIO:
return UITOOLS95_DFC_ButtonCheckRadio(hdc, rc, uState, TRUE);
-/*
+
default:
- DbgPrint("Invalid button state=0x%04x\n", uState);
-*/
+ ERR("Invalid button state=0x%04x\n", uState);
+
}
return FALSE;
}
RECT myr;
INT bkmode;
WCHAR Symbol;
- switch(uFlags & 0xff)
+ switch(uFlags & 0xf)
{
case DFCS_CAPTIONCLOSE:
Symbol = 'r';
Symbol = '2';
break;
default:
+ ERR("Invalid caption; flags=0x%04x\n", uFlags);
return FALSE;
}
IntDrawRectEdge(dc,r,(uFlags&DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED, BF_RECT | BF_MIDDLE | BF_SOFT);
RECT myr;
INT bkmode;
WCHAR Symbol;
- switch(uFlags & 0xff)
+ switch(uFlags & 0x1f)
{
case DFCS_SCROLLCOMBOBOX:
case DFCS_SCROLLDOWN:
GreDeleteObject(hFont);
return TRUE;
default:
+ ERR("Invalid scroll; flags=0x%04x\n", uFlags);
return FALSE;
}
IntDrawRectEdge(dc, r, (uFlags & DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED, (uFlags&DFCS_FLAT) | BF_MIDDLE | BF_RECT);
RECT myr;
INT cxy;
cxy = UITOOLS_MakeSquareRect(r, &myr);
- switch(uFlags & 0xff)
+ switch(uFlags & 0x1f)
{
case DFCS_MENUARROWUP:
Symbol = '5';
break;
default:
-/*
- DbgPrint("Invalid menu; flags=0x%04x\n", uFlags);
-*/
+ ERR("Invalid menu; flags=0x%04x\n", uFlags);
return FALSE;
}
/* acquire ressources only if valid menu */
/* save font */
hOldFont = NtGdiSelectFont(dc, hFont);
- if ((uFlags & 0xff) == DFCS_MENUARROWUP ||
- (uFlags & 0xff) == DFCS_MENUARROWDOWN )
+ if ((uFlags & 0x1f) == DFCS_MENUARROWUP ||
+ (uFlags & 0x1f) == DFCS_MENUARROWDOWN )
{
#if 0
if (uFlags & DFCS_INACTIVE)
/* Ported from WINE20020904 */
static BOOL UITOOLS95_DrawFrameButton(HDC hdc, LPRECT rc, UINT uState)
{
- switch(uState & 0xff)
+ switch(uState & 0x1f)
{
case DFCS_BUTTONPUSH:
return UITOOLS95_DFC_ButtonPush(hdc, rc, uState);
case DFCS_BUTTONRADIO:
return UITOOLS95_DFC_ButtonCheckRadio(hdc, rc, uState, TRUE);
-/*
+
default:
- DbgPrint("Invalid button state=0x%04x\n", uState);
-*/
+ ERR("Invalid button state=0x%04x\n", uState);
+
}
return FALSE;
RECT myr;
INT bkmode;
TCHAR Symbol;
- switch(uFlags & 0xff)
+ switch(uFlags & 0xf)
{
case DFCS_CAPTIONCLOSE:
Symbol = 'r';
Symbol = '2';
break;
default:
- WARN("Invalid caption; flags=0x%04x\n", uFlags);
+ ERR("Invalid caption; flags=0x%04x\n", uFlags);
return FALSE;
}
IntDrawRectEdge(dc,r,(uFlags&DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED, BF_RECT | BF_MIDDLE | BF_SOFT, 1);
RECT myr;
INT bkmode;
TCHAR Symbol;
- switch(uFlags & 0xff)
+ switch(uFlags & 0x1f)
{
case DFCS_SCROLLCOMBOBOX:
case DFCS_SCROLLDOWN:
DeleteObject(hFont);
return TRUE;
default:
- WARN("Invalid scroll; flags=0x%04x\n", uFlags);
+ ERR("Invalid scroll; flags=0x%04x\n", uFlags);
return FALSE;
}
IntDrawRectEdge(dc, r, (uFlags & DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED, (uFlags&DFCS_FLAT) | BF_MIDDLE | BF_RECT, 1);
RECT myr;
INT cxy;
cxy = UITOOLS_MakeSquareRect(r, &myr);
- switch(uFlags & 0xff)
+ switch(uFlags & 0x1f)
{
case DFCS_MENUARROWUP:
Symbol = '5';
break;
default:
- WARN("Invalid menu; flags=0x%04x\n", uFlags);
+ ERR("Invalid menu; flags=0x%04x\n", uFlags);
return FALSE;
}
/* acquire ressources only if valid menu */
/* save font */
hOldFont = SelectObject(dc, hFont);
- if ((uFlags & 0xff) == DFCS_MENUARROWUP ||
- (uFlags & 0xff) == DFCS_MENUARROWDOWN )
+ if ((uFlags & 0x1f) == DFCS_MENUARROWUP ||
+ (uFlags & 0x1f) == DFCS_MENUARROWDOWN )
{
#if 0
if (uFlags & DFCS_INACTIVE)