Changeset 2523 for trunk/src/comctl32/toolbar.c
- Timestamp:
- Jan 26, 2000, 7:04:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/toolbar.c
r2205 r2523 1 /* $Id: toolbar.c,v 1.2 4 1999-12-26 17:32:13cbratschi Exp $ */1 /* $Id: toolbar.c,v 1.25 2000-01-26 18:04:30 cbratschi Exp $ */ 2 2 /* 3 3 * Toolbar control … … 3332 3332 } 3333 3333 3334 /* << TOOLBAR_SetButtonInfo32W >> */3335 3336 3337 3334 static LRESULT 3338 3335 TOOLBAR_SetButtonSize (HWND hwnd, WPARAM wParam, LPARAM lParam) … … 4165 4162 RECT parent_rect; 4166 4163 HWND parent; 4167 /* INT32 x, y; */ 4168 INT cx, cy; 4164 INT x,y,cx,cy; 4169 4165 INT flags; 4170 4166 UINT uPosFlags = 0; … … 4182 4178 */ 4183 4179 4184 //TRACE (toolbar, "sizing toolbar!\n");4180 //TRACE (toolbar, "sizing toolbar!\n"); 4185 4181 4186 4182 if (flags == SIZE_RESTORED) { … … 4188 4184 parent = GetParent (hwnd); 4189 4185 GetClientRect(parent, &parent_rect); 4186 x = parent_rect.left; 4187 y = parent_rect.top; 4190 4188 4191 4189 if (dwStyle & CCS_NORESIZE) { 4192 4190 uPosFlags |= (SWP_NOSIZE | SWP_NOMOVE); 4193 4194 4191 /* FIXME */ 4195 4192 /* infoPtr->nWidth = parent_rect.right - parent_rect.left; */ … … 4216 4213 cy += GetSystemMetrics(SM_CYEDGE); 4217 4214 4218 SetWindowPos (hwnd, 0, parent_rect.left, parent_rect.top,4215 SetWindowPos (hwnd, 0, x, y, 4219 4216 cx, cy, uPosFlags | SWP_NOZORDER); 4220 4217 }
Note:
See TracChangeset
for help on using the changeset viewer.