Changeset 2666 for trunk/src/user32/button.cpp
- Timestamp:
- Feb 5, 2000, 8:45:19 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/button.cpp
r2611 r2666 1 /* $Id: button.cpp,v 1.3 1 2000-02-03 17:13:00cbratschi Exp $ */1 /* $Id: button.cpp,v 1.32 2000-02-05 19:45:14 cbratschi Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 688 688 } 689 689 690 static INT BUTTON_GetTextFormat(DWORD dwStyle, INT defHorz,INT defVert)690 static INT BUTTON_GetTextFormat(DWORD dwStyle,DWORD dwExStyle,INT defHorz,INT defVert) 691 691 { 692 692 INT format = 0; … … 694 694 if (dwStyle & BS_LEFT) format = DT_LEFT; 695 695 else if (dwStyle & BS_CENTER) format = DT_CENTER; 696 else if ( dwStyle & BS_RIGHT) format = DT_RIGHT;696 else if ((dwStyle & BS_RIGHT) || (dwExStyle & WS_EX_RIGHT)) format = DT_RIGHT; 697 697 else format = defHorz; 698 698 … … 775 775 if ((textLen > 0) && (!(dwStyle & (BS_ICON|BS_BITMAP)))) 776 776 { 777 INT format = BUTTON_GetTextFormat(dwStyle, DT_CENTER,DT_VCENTER);777 INT format = BUTTON_GetTextFormat(dwStyle,GetWindowLongA(hwnd,GWL_EXSTYLE),DT_CENTER,DT_VCENTER); 778 778 779 779 textLen++; … … 999 999 if( text && action != ODA_SELECT ) 1000 1000 { 1001 INT format = BUTTON_GetTextFormat(dwStyle, DT_TOP,DT_VCENTER);1001 INT format = BUTTON_GetTextFormat(dwStyle,GetWindowLongA(hwnd,GWL_EXSTYLE),DT_TOP,DT_VCENTER); 1002 1002 1003 1003 if (dwStyle & WS_DISABLED) DrawDisabledText(hDC,text,&rtext,format); … … 1084 1084 if (textLen > 0) 1085 1085 { 1086 INT format = BUTTON_GetTextFormat(dwStyle, DT_LEFT,DT_TOP) | DT_NOCLIP | DT_SINGLELINE;1086 INT format = BUTTON_GetTextFormat(dwStyle,GetWindowLongA(hwnd,GWL_EXSTYLE),DT_LEFT,DT_TOP) | DT_NOCLIP | DT_SINGLELINE; 1087 1087 1088 1088 textLen++;
Note:
See TracChangeset
for help on using the changeset viewer.