Mercurial > dwindows
comparison win/dw.c @ 1566:035bc006afbe
Experimental change... halfway between min and max for tree controls.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 20 Jan 2012 18:47:10 +0000 |
parents | 46e34bd92336 |
children | d6988022c5cf |
comparison
equal
deleted
inserted
replaced
1565:007ed833ac79 | 1566:035bc006afbe |
---|---|
4590 thisheight = _DW_SCROLLED_MAX_HEIGHT; | 4590 thisheight = _DW_SCROLLED_MAX_HEIGHT; |
4591 } | 4591 } |
4592 /* Tree */ | 4592 /* Tree */ |
4593 else if(strnicmp(tmpbuf, WC_TREEVIEW, strlen(WC_TREEVIEW)+1)== 0) | 4593 else if(strnicmp(tmpbuf, WC_TREEVIEW, strlen(WC_TREEVIEW)+1)== 0) |
4594 { | 4594 { |
4595 thiswidth = _DW_SCROLLED_MAX_WIDTH; | 4595 thiswidth = (int)((_DW_SCROLLED_MAX_WIDTH + _DW_SCROLLED_MIN_WIDTH)/2); |
4596 thisheight = _DW_SCROLLED_MAX_HEIGHT; | 4596 thisheight = (int)((_DW_SCROLLED_MAX_HEIGHT + _DW_SCROLLED_MIN_HEIGHT)/2); |
4597 } | 4597 } |
4598 /* Buttons */ | 4598 /* Buttons */ |
4599 else if(strnicmp(tmpbuf, BUTTONCLASSNAME, strlen(BUTTONCLASSNAME)+1) == 0) | 4599 else if(strnicmp(tmpbuf, BUTTONCLASSNAME, strlen(BUTTONCLASSNAME)+1) == 0) |
4600 { | 4600 { |
4601 ULONG style = GetWindowLong(handle, GWL_STYLE); | 4601 ULONG style = GetWindowLong(handle, GWL_STYLE); |