Mercurial > dwindows
comparison win/dw.c @ 1073:659b3c6a8959
Bitmap type widgets shouldn't rescale the image to fit on Windows.
It should center and/or clip to fit into the area for consistency with other platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 25 Jun 2011 03:15:29 +0000 |
parents | 28e63fe64167 |
children | 3d117071a50b |
comparison
equal
deleted
inserted
replaced
1072:5772fa5e24b3 | 1073:659b3c6a8959 |
---|---|
4572 */ | 4572 */ |
4573 HWND API dw_bitmap_new(ULONG id) | 4573 HWND API dw_bitmap_new(ULONG id) |
4574 { | 4574 { |
4575 return CreateWindow(STATICCLASSNAME, | 4575 return CreateWindow(STATICCLASSNAME, |
4576 "", | 4576 "", |
4577 SS_BITMAP | WS_VISIBLE | | 4577 SS_BITMAP | SS_CENTERIMAGE | WS_VISIBLE | |
4578 WS_CHILD | WS_CLIPCHILDREN, | 4578 WS_CHILD | WS_CLIPCHILDREN, |
4579 0,0,2000,1000, | 4579 0,0,2000,1000, |
4580 DW_HWND_OBJECT, | 4580 DW_HWND_OBJECT, |
4581 (HMENU)id, | 4581 (HMENU)id, |
4582 DWInstance, | 4582 DWInstance, |