comparison win/dw.c @ 1448:508dde3dc398

Windows needs a little more extra vertical space for text buttons.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 10 Dec 2011 23:27:21 +0000
parents 8f7692fcad37
children 632346743f46
comparison
equal deleted inserted replaced
1447:5417b312801e 1448:508dde3dc398
4220 hbm = (HBITMAP)SendMessage(handle, BM_GETIMAGE, IMAGE_BITMAP, 0); 4220 hbm = (HBITMAP)SendMessage(handle, BM_GETIMAGE, IMAGE_BITMAP, 0);
4221 4221
4222 /* If we got an image... set the sizes appropriately */ 4222 /* If we got an image... set the sizes appropriately */
4223 if(hbm) 4223 if(hbm)
4224 { 4224 {
4225 BITMAP bmi; 4225 BITMAP bmi = { 0 };
4226 4226
4227 GetObject(hbm, sizeof(BITMAP), &bmi); 4227 GetObject(hbm, sizeof(BITMAP), &bmi);
4228 thiswidth = bmi.bmWidth; 4228 thiswidth = bmi.bmWidth;
4229 thisheight = bmi.bmHeight; 4229 thisheight = bmi.bmHeight;
4230 } 4230 }
4289 } 4289 }
4290 /* Text buttons */ 4290 /* Text buttons */
4291 else 4291 else
4292 { 4292 {
4293 extrawidth = 8; 4293 extrawidth = 8;
4294 extraheight = 4; 4294 extraheight = 8;
4295 } 4295 }
4296 } 4296 }
4297 else if(strnicmp(tmpbuf, StatusbarClassName, strlen(StatusbarClassName)+1) == 0) 4297 else if(strnicmp(tmpbuf, StatusbarClassName, strlen(StatusbarClassName)+1) == 0)
4298 { 4298 {
4299 extrawidth = 4; 4299 extrawidth = 4;