Changeset 942 for trunk/src/comctl32/updown.c
- Timestamp:
- Sep 15, 1999, 6:31:49 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/updown.c
r496 r942 1 /* $Id: updown.c,v 1. 7 1999-08-14 16:13:16cbratschi Exp $ */1 /* $Id: updown.c,v 1.8 1999-09-15 16:31:49 cbratschi Exp $ */ 2 2 /* 3 3 * Updown control … … 18 18 * - listbox as buddy window 19 19 * - acceleration 20 * - base 16 20 * - base 16 -> bug: 9->B (should be A) 21 21 * - UDS_ALIGNLEFT, ~UDS_WRAP 22 22 * (tested - they work) … … 133 133 134 134 return ( ((dwStyle & (UDS_ALIGNLEFT | UDS_ALIGNRIGHT)) != 0) && 135 136 135 (SendMessageA(hwnd, UDM_GETBUDDY, 0, 0) != 0) && 136 (lstrcmpiA(infoPtr->szBuddyClass, "EDIT") == 0 ) ); 137 137 } 138 138 … … 209 209 * Returns the thousand sep. If an error occurs, it returns ','. 210 210 */ 211 static char UPDOWN_GetThousandSep( )211 static char UPDOWN_GetThousandSep(VOID) 212 212 { 213 213 char sep[2]; … … 430 430 RECT budRect; /* new coord for the buddy */ 431 431 int x,width; /* new x position and width for the up-down */ 432 432 433 433 /* Is it a valid bud? */ 434 434 if(!IsWindow(hwndBud)) … … 476 476 GetWindowRect(infoPtr->Buddy, &budRect); 477 477 MapWindowPoints(HWND_DESKTOP, GetParent(infoPtr->Buddy), 478 478 (POINT *)(&budRect.left), 2); 479 479 480 480 /* now do the positioning */ … … 490 490 /* first adjust the buddy to accomodate the up/down */ 491 491 SetWindowPos(infoPtr->Buddy, 0, budRect.left, budRect.top, 492 493 492 budRect.right - budRect.left, budRect.bottom - budRect.top, 493 SWP_NOACTIVATE|SWP_NOZORDER); 494 494 495 495 /* now position the up/down */ … … 512 512 513 513 SetWindowPos (hwnd, infoPtr->Buddy, 514 515 516 514 x, budRect.top-DEFAULT_ADDTOP, 515 width, (budRect.bottom-budRect.top)+DEFAULT_ADDTOP+DEFAULT_ADDBOT, 516 SWP_NOACTIVATE); 517 517 518 518 return TRUE; 519 } 519 } 520 520 521 521 /*********************************************************************** … … 1133 1133 else 1134 1134 { 1135 1135 UPDOWN_GetBuddyInt(upDownHwnd); 1136 1136 UPDOWN_DoAction(upDownHwnd, 1, wParam==VK_UP); 1137 1137 }
Note:
See TracChangeset
for help on using the changeset viewer.