Re: COMCTL32: Minor corrections

2004-12-04 Thread Dmitry Timoshkov
"Filip Navara" <[EMAIL PROTECTED]> wrote: > >> - DrawEdge(NULL, &(infoPtr->rcDraw), EDGE_SUNKEN, BF_RECT | BF_ADJUST); > >> + /* subract the size of the edge drawn by DrawEdge */ > >> + InflateRect(&infoPtr->rcDraw, -2, -2); > > > > Please use GetSystemMetrics(SM_CXEDGE) and GetSystemMetrics(SM

Re: COMCTL32: Minor corrections

2004-12-04 Thread Filip Navara
Robert Shearman wrote: Filip Navara wrote: - /* use DrawEdge to adjust the size of rcEdge to get rcDraw */ memcpy((&infoPtr->rcDraw), (&infoPtr->rcClient), sizeof(infoPtr->rcDraw)); - DrawEdge(NULL, &(infoPtr->rcDraw), EDGE_SUNKEN, BF_RECT | BF_ADJUST); + /* subract the size of the edge draw

Re: COMCTL32: Minor corrections

2004-12-04 Thread Robert Shearman
Filip Navara wrote: Changelog: - Tooltip icons must be destroyed with DestroyIcon and not with DeleteObject. - Don't use DrawEdge with NULL device context, it's invalid call and sets last error. Index: lib/comctl32/datetime