#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | tagBTNDATA |
Defines | |
#define | CBR_CLIENTRECT 0 |
#define | CBR_CHECKBOX 1 |
#define | CBR_CHECKTEXT 2 |
#define | CBR_GROUPTEXT 3 |
#define | CBR_GROUPFRAME 4 |
#define | CBR_PUSHBUTTON 5 |
#define | IMAGE_BMMAX IMAGE_CURSOR+1 |
#define | IsValidImage(imageType, realType, max) ((imageType < max) && (rgbType[imageType] == realType)) |
Typedefs | |
typedef tagBTNDATA | BTNDATA |
typedef tagBTNDATA * | LPBTNDATA |
Functions | |
void | xxxDrawButton (PBUTN pbutn, HDC hdc, UINT pbfPush) |
UINT | IsPushButton (PWND pwnd) |
WORD | GetAlignment (PWND pwnd) |
void | BNSetFont (PBUTN pbutn, HFONT hfn, BOOL fRedraw) |
HBRUSH | xxxBNInitDC (PBUTN pbutn, HDC hdc) |
HDC | xxxBNGetDC (PBUTN pbutn, HBRUSH *lphbr) |
void | BNReleaseDC (PBUTN pbutn, HDC hdc) |
void | xxxBNOwnerDraw (PBUTN pbutn, HDC hdc, UINT itemAction) |
void | BNCalcRect (PWND pwnd, HDC hdc, LPRECT lprc, int code, UINT pbfFlags) |
void | BNMultiExtent (WORD wFlags, HDC hdc, LPRECT lprcMax, LPWSTR lpsz, int cch, PINT pcx, PINT pcy) |
BOOL | BNMultiDraw (HDC hdc, LPBTNDATA lpbd, int cch, int cx, int cy) |
BOOL | xxxBNSetCapture (PBUTN pbutn, UINT codeMouse) |
void | xxxButtonNotifyParent (PWND pwnd, UINT code) |
void | xxxBNReleaseCapture (PBUTN pbutn, BOOL fCheck) |
void | xxxBNDrawText (PBUTN pbutn, HDC hdc, BOOL dbt, BOOL fDepress) |
void | xxxButtonDrawCheck (PBUTN pbutn, HDC hdc, HBRUSH hbr) |
void | xxxButtonDrawNewState (PBUTN pbutn, HDC hdc, HBRUSH hbr, UINT sOld) |
void | xxxBNPaint (PBUTN pbutn, HDC hdc) |
void | RepaintButton (PBUTN pbutn) |
LRESULT APIENTRY | ButtonWndProcWorker (PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, DWORD fAnsi) |
LRESULT WINAPI | ButtonWndProcA (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
LRESULT WINAPI | ButtonWndProcW (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
CONST BYTE | mpStyleCbr [] |
CONST BYTE | rgbType [IMAGE_BMMAX] |
LOOKASIDE | ButtonLookaside |
|
Definition at line 19 of file btnctl.c. Referenced by BNCalcRect(), and xxxButtonDrawCheck(). |
|
Definition at line 20 of file btnctl.c. Referenced by BNCalcRect(). |
|
|
|
Definition at line 22 of file btnctl.c. Referenced by BNCalcRect(), and xxxBNPaint(). |
|
Definition at line 21 of file btnctl.c. Referenced by BNCalcRect(), ButtonWndProcWorker(), and xxxBNPaint(). |
|
Definition at line 23 of file btnctl.c. Referenced by BNCalcRect(), and xxxBNDrawText(). |
|
Definition at line 40 of file btnctl.c. Referenced by ButtonWndProcWorker(). |
|
Definition at line 47 of file btnctl.c. Referenced by ButtonWndProcWorker(), and StaticWndProcWorker(). |
|
|
|
Referenced by xxxBNDrawText(). |
|
Definition at line 361 of file btnctl.c. References _GetClientRect(), BFBOTTOM, BFCENTER, BFHORZMASK, BFLEFT, BFRIGHT, BFRIGHTBUTTON, BFTOP, BFVCENTER, BFVERTMASK, CBR_CHECKBOX, CBR_CHECKTEXT, CBR_GROUPFRAME, CBR_GROUPTEXT, CBR_PUSHBUTTON, EmptyRect, GetAlignment(), gpsi, InflateRect(), _LARGE_UNICODE_STRING::Length, LOBYTE, OBI_CHECK, PBF_DEFAULT, PSMGetTextExtent(), REBASE, SetRectEmpty, tagWND::strName, SYSMET, szOneChar, TestWF, UINT, and WFWIN40COMPAT. Referenced by ButtonWndProcWorker(), xxxBNDrawText(), xxxBNPaint(), and xxxButtonDrawCheck().
|
|
Definition at line 534 of file btnctl.c. References BOOL, cy, DrawTextExW(), tagBUTN::fPaintKbdCuesOnly, tagBTNDATA::lpsz, NULL, tagBTNDATA::pbutn, tagBUTN::spwnd, TestWF, TRUE, UINT, WEFPUIACCELHIDDEN, and tagBTNDATA::wFlags. Referenced by xxxBNDrawText().
|
|
Definition at line 491 of file btnctl.c. References CopyRect, DrawTextExW(), InflateRect(), NULL, PINT, SYSMET, and UINT. Referenced by xxxBNDrawText().
|
|
Definition at line 288 of file btnctl.c. References ghFontSys, tagBUTN::hFont, HWq, ReleaseDC(), tagBUTN::spwnd, TestWF, and WEFRTLREADING. Referenced by ButtonWndProcWorker(), and RepaintButton().
|
|
Definition at line 171 of file btnctl.c. References tagBUTN::hFont, HWq, IsVisible(), NtUserInvalidateRect(), NULL, tagBUTN::spwnd, and TRUE. Referenced by ButtonWndProcWorker().
|
|
Definition at line 1907 of file btnctl.c. References ButtonWndProcWorker(), DefWindowProcWorker(), FNID_BUTTON, FWINDOWMSG, L, NULL, TRUE, and ValidateHwnd. Referenced by ClientThreadSetup().
|
|
Definition at line 1929 of file btnctl.c. References ButtonWndProcWorker(), DefWindowProcWorker(), FALSE, FNID_BUTTON, FWINDOWMSG, L, NULL, and ValidateHwnd. Referenced by ClientThreadSetup(), and RW_RegisterControls().
|
|
Definition at line 1338 of file btnctl.c. References _DefSetText(), _GetClientRect(), APIENTRY, tagCLS::atomClassName, tagSERVERINFO::atomSysClass, BFIMAGEMASK, BFNOTIFY, BFPUSHLIKE, BFTYPEMASK, BNCalcRect(), BNReleaseDC(), BNSetFont(), BOOL, BST_CAPTURED, BST_CHECKMASK, BST_DONTCLICK, BST_INBMCLICK, BST_INCLICK, BST_MOUSE, BUTN, ButtonLookaside, BUTTONSTATE, CBR_GROUPTEXT, CheckLock, ClearWindowState(), DBT_FOCUS, DefWindowProcWorker(), DWORD, FALSE, FNID_BUTTON, FNID_CLEANEDUP_BIT, tagBUTN::fPaintKbdCuesOnly, FreeLookasideEntry(), FWINABLE, gpsi, tagBUTN::hFont, tagBUTN::hImage, HW, HWq, ICLS_DIALOG, IMAGE_BMMAX, INITCONTROLLOOKASIDE, ISBSTEXTOROD, IsValidImage, IsVisible(), L, LOBYTE, NotifyWinEvent(), NtUserAlterWindowStyle(), NtUserBeginPaint(), NtUserEndPaint(), NtUserInvalidateRect(), NtUserSetWindowFNID(), NULL, PaintRect(), PBF_PUSHABLE, PBUTNWND, PtInRect(), REBASEALWAYS, REBASEPWND, RepaintButton(), SendMessageWorker(), SetWindowState(), tagBUTN::spwnd, tagWND::spwndParent, TestWF, TestwndChild, ThreadLock, ThreadUnlock, TRUE, UINT, Unlock, VALIDATECLASSANDSIZE, WEFRIGHT, WFTABSTOP, WFVISIBLE, WFWIN31COMPAT, WFWIN40COMPAT, xxxBNDrawText(), xxxBNGetDC(), xxxBNOwnerDraw(), xxxBNPaint(), xxxBNReleaseCapture(), xxxBNSetCapture(), xxxButtonDrawCheck(), xxxButtonDrawNewState(), xxxButtonNotifyParent(), and xxxDrawButton(). Referenced by ButtonWndProcA(), ButtonWndProcW(), and ClientThreadSetup().
|
|
Definition at line 136 of file btnctl.c. References BFCENTER, BFHORZMASK, BFLEFT, BFVCENTER, BFVERTMASK, BYTE, IsPushButton(), LOBYTE, and TestWF. Referenced by BNCalcRect(), and xxxBNDrawText().
|
|
Definition at line 71 of file btnctl.c. References BFPUSHLIKE, BFTYPEMASK, BYTE, LOBYTE, PBF_DEFAULT, PBF_PUSHABLE, TestWF, and UINT. Referenced by GetAlignment(), xxxBNDrawText(), xxxBNPaint(), and xxxButtonDrawNewState().
|
|
Definition at line 1322 of file btnctl.c. References BNReleaseDC(), NULL, xxxBNGetDC(), and xxxBNPaint(). Referenced by ButtonWndProcWorker().
|
|
Definition at line 722 of file btnctl.c. References _GetClientRect(), BFBITMAP, BFBOTTOM, BFHORZMASK, BFICON, BFLEFT, BFMULTILINE, BFRIGHT, BFTOP, BFTYPEMASK, BFVERTMASK, BNCalcRect(), BNMultiDraw(), BNMultiExtent(), BST_CHECKMASK, BUTTONSTATE, BYTE, CBR_PUSHBUTTON, CopyRect, cy, DBT_FOCUS, DBT_TEXT, DrawFocusRect(), tagBUTN::fPaintKbdCuesOnly, GetAlignment(), HIBYTE, tagBUTN::hImage, InflateRect(), IsPushButton(), _LARGE_UNICODE_STRING::Length, LOBYTE, LPBTNDATA, tagBTNDATA::lpsz, max, min, mpStyleCbr, NtUserGetIconSize(), tagBTNDATA::pbutn, PSMGetTextExtent(), REBASE, tagBUTN::spwnd, tagWND::strName, SYSHBR, SYSMET, SYSRGB, TestWF, TRUE, UINT, WEFPUIACCELHIDDEN, WEFPUIFOCUSHIDDEN, WFDISABLED, tagBTNDATA::wFlags, and xxxBNOwnerDraw(). Referenced by ButtonWndProcWorker(), xxxBNPaint(), and xxxDrawButton().
|
|
Definition at line 258 of file btnctl.c. References CheckLock, HWq, IsVisible(), NtUserGetDC(), NULL, tagBUTN::spwnd, and xxxBNInitDC(). Referenced by ButtonWndProcWorker(), and RepaintButton().
|
|
Definition at line 193 of file btnctl.c. References BFPUSHLIKE, BFTYPEMASK, BYTE, CheckLock, GetControlBrush, tagBUTN::hFont, HWq, LOBYTE, tagWND::rcClient, tagBUTN::spwnd, TestWF, UINT, WEFRTLREADING, and WFWIN40COMPAT. Referenced by xxxBNGetDC(), and xxxBNPaint().
|
|
Definition at line 310 of file btnctl.c. References _GetClientRect(), BUTTONSTATE, HW, HWq, L, REBASEPWND, SendMessage(), tagWND::spmenu, tagBUTN::spwnd, TestWF, ThreadLock, ThreadUnlock, UINT, WEFPUIACCELHIDDEN, WEFPUIFOCUSHIDDEN, and WFDISABLED. Referenced by ButtonWndProcWorker(), xxxBNDrawText(), and xxxBNPaint().
|
|
Definition at line 1206 of file btnctl.c. References _GetClientRect(), BFFLAT, BFTYPEMASK, BNCalcRect(), BUTTONSTATE, CBR_GROUPFRAME, CBR_GROUPTEXT, CheckLock, DBT_FOCUS, DBT_TEXT, DrawEdge(), FALSE, tagBUTN::fPaintKbdCuesOnly, ghFontSys, tagBUTN::hFont, HW, HWq, IsPushButton(), LOBYTE, PaintRect(), REBASEPWND, tagBUTN::spwnd, tagWND::spwndParent, TestWF, ThreadLock, ThreadUnlock, UINT, WFDISABLED, xxxBNDrawText(), xxxBNInitDC(), xxxBNOwnerDraw(), xxxButtonDrawCheck(), xxxButtonDrawNewState(), xxxButtonNotifyParent(), and xxxDrawButton(). Referenced by ButtonWndProcWorker(), and RepaintButton().
|
|
Definition at line 654 of file btnctl.c. References _GetNextDlgGroupItem(), BFTYPEMASK, BOOL, BST_CAPTURED, BST_CHECKMASK, BST_MOUSE, BUTTONSTATE, CheckLock, FALSE, HW, L, NtUserReleaseCapture, REBASEPWND, SendMessage(), SendMessageWorker(), tagBUTN::spwnd, TestWF, ThreadLock, ThreadUnlock, TRUE, UINT, and xxxButtonNotifyParent(). Referenced by ButtonWndProcWorker().
|
|
Definition at line 590 of file btnctl.c. References BOOL, BST_CAPTURED, BST_INCLICK, BUTTONSTATE, CheckLock, HWq, NtUserSetCapture(), NtUserSetFocus(), and tagBUTN::spwnd. Referenced by ButtonWndProcWorker().
|
|
Definition at line 995 of file btnctl.c. References BFFLAT, BFTYPEMASK, BNCalcRect(), BOOL, BST_CHECKMASK, BUTTONSTATE, CBR_CHECKBOX, tagOEMBITMAPINFO::cx, tagOEMBITMAPINFO::cy, DOBI_CHECK, DOBI_CHECKDOWN, DOBI_DOWN, DrawFrameControl(), DWORD, FALSE, gpsi, HW, HWq, NtUserBitBltSysBmp(), OBI_3STATE, OBI_CHECK, OBI_RADIO, OBI_RADIOMASK, PaintRect(), POEMBITMAPINFO, REBASEPWND, tagBUTN::spwnd, tagWND::spwndParent, TestWF, ThreadLockAlways, ThreadUnlock, TRUE, UINT, WFDISABLED, tagOEMBITMAPINFO::x, and tagOEMBITMAPINFO::y. Referenced by ButtonWndProcWorker(), xxxBNPaint(), and xxxButtonDrawNewState().
|
|
Definition at line 1116 of file btnctl.c. References BFTYPEMASK, BUTTONSTATE, CheckLock, IsPushButton(), tagBUTN::spwnd, TestWF, UINT, xxxButtonDrawCheck(), and xxxDrawButton(). Referenced by ButtonWndProcWorker(), and xxxBNPaint().
|
|
Definition at line 625 of file btnctl.c. References CheckLock, HW, HWq, PTR_TO_ID, REBASEPWND, SendMessage(), tagWND::spwndParent, ThreadLock, and ThreadUnlock. Referenced by ButtonWndProcWorker(), xxxBNPaint(), and xxxBNReleaseCapture().
|
|
Definition at line 1159 of file btnctl.c. References _GetClientRect(), BFFLAT, BST_CHECKMASK, BUTTONSTATE, DBT_FOCUS, DBT_TEXT, DF_WINDOWFRAME, DrawFrame(), DrawPushButton(), tagBUTN::fPaintKbdCuesOnly, InflateRect(), PBF_DEFAULT, tagBUTN::spwnd, SYSMET, TestWF, UINT, WFWIN40COMPAT, and xxxBNDrawText(). Referenced by ButtonWndProcWorker(), xxxBNPaint(), and xxxButtonDrawNewState().
|
|
Definition at line 58 of file btnctl.c. Referenced by ButtonWndProcWorker(). |
|
Initial value: Definition at line 25 of file btnctl.c. Referenced by xxxBNDrawText(). |
|
Initial value:
|