comparison win/dw.c @ 1456:6bf5dc7da45d

Added automatic widget size detection a variety of places in dwtest. Fixed missing extra height in spinbutton detection on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 Dec 2011 22:03:54 +0000
parents fb4a71126df5
children e325f98a2792
comparison
equal deleted inserted replaced
1455:a56fa83f2a7c 1456:6bf5dc7da45d
4259 /* Spinbuttons */ 4259 /* Spinbuttons */
4260 else if(strnicmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1) == 0) 4260 else if(strnicmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1) == 0)
4261 { 4261 {
4262 dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight); 4262 dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight);
4263 thiswidth = 50; 4263 thiswidth = 50;
4264 extraheight = 6;
4264 } 4265 }
4265 /* Entryfields */ 4266 /* Entryfields */
4266 else if(strnicmp(tmpbuf, EDITCLASSNAME, strlen(EDITCLASSNAME)+1) == 0 && 4267 else if(strnicmp(tmpbuf, EDITCLASSNAME, strlen(EDITCLASSNAME)+1) == 0 &&
4267 !(GetWindowLong(handle, GWL_STYLE) & ES_MULTILINE)) 4268 !(GetWindowLong(handle, GWL_STYLE) & ES_MULTILINE))
4268 { 4269 {