Lines Matching refs:part

160 STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART *part, int itemID)  in STATUSBAR_DrawPart()  argument
162 RECT r = part->bound; in STATUSBAR_DrawPart()
169 if (part->style & SBT_POPOUT) in STATUSBAR_DrawPart()
171 else if (part->style & SBT_NOBORDERS) in STATUSBAR_DrawPart()
184 if (part->hIcon) { in STATUSBAR_DrawPart()
186 DrawIconEx (hdc, r.left + 2, r.top, part->hIcon, cy, cy, 0, 0, DI_NORMAL); in STATUSBAR_DrawPart()
190 if (part->style & SBT_OWNERDRAW) { in STATUSBAR_DrawPart()
198 dis.itemData = (ULONG_PTR)part->text; in STATUSBAR_DrawPart()
206 DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS); in STATUSBAR_DrawPart()
212 …DrawThemeText(theme, hdc, SP_PANE, 0, part->text, -1, DT_VCENTER|DT_SINGLELINE|DT_NOPREFIX, 0, &r); in STATUSBAR_DrawPart()
215 DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS); in STATUSBAR_DrawPart()
222 STATUSBAR_RefreshPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART *part, int itemI… in STATUSBAR_RefreshPart() argument
229 if (part->bound.right < part->bound.left) return; in STATUSBAR_RefreshPart()
231 if (!RectVisible(hdc, &part->bound)) in STATUSBAR_RefreshPart()
238 DrawThemeBackground(theme, hdc, 0, 0, &cr, &part->bound); in STATUSBAR_RefreshPart()
246 FillRect(hdc, &part->bound, hbrBk); in STATUSBAR_RefreshPart()
251 STATUSBAR_DrawPart (infoPtr, hdc, part, itemID); in STATUSBAR_RefreshPart()
326 STATUSWINDOWPART *part; in STATUSBAR_SetPartBounds() local
342 part = &infoPtr->parts[i]; in STATUSBAR_SetPartBounds()
350 if (part->x == -1) in STATUSBAR_SetPartBounds()
353 r->right = part->x; in STATUSBAR_SetPartBounds()
463 STATUSWINDOWPART *part; in STATUSBAR_GetTextA() local
472 part = &infoPtr->part0; in STATUSBAR_GetTextA()
474 part = &infoPtr->parts[nPart]; in STATUSBAR_GetTextA()
476 if (part->style & SBT_OWNERDRAW) in STATUSBAR_GetTextA()
477 result = (LRESULT)part->text; in STATUSBAR_GetTextA()
479 DWORD len = part->text ? WideCharToMultiByte( CP_ACP, 0, part->text, -1, in STATUSBAR_GetTextA()
481 result = MAKELONG( len, part->style ); in STATUSBAR_GetTextA()
482 if (part->text && buf) in STATUSBAR_GetTextA()
483 WideCharToMultiByte( CP_ACP, 0, part->text, -1, buf, len+1, NULL, NULL ); in STATUSBAR_GetTextA()
492 STATUSWINDOWPART *part; in STATUSBAR_GetTextW() local
499 part = &infoPtr->part0; in STATUSBAR_GetTextW()
501 part = &infoPtr->parts[nPart]; in STATUSBAR_GetTextW()
503 if (part->style & SBT_OWNERDRAW) in STATUSBAR_GetTextW()
504 result = (LRESULT)part->text; in STATUSBAR_GetTextW()
506 result = part->text ? lstrlenW (part->text) : 0; in STATUSBAR_GetTextW()
507 result |= (part->style << 16); in STATUSBAR_GetTextW()
508 if (part->text && buf) in STATUSBAR_GetTextW()
509 lstrcpyW (buf, part->text); in STATUSBAR_GetTextW()
518 STATUSWINDOWPART *part; in STATUSBAR_GetTextLength() local
527 part = &infoPtr->part0; in STATUSBAR_GetTextLength()
529 part = &infoPtr->parts[nPart]; in STATUSBAR_GetTextLength()
531 if ((~part->style & SBT_OWNERDRAW) && part->text) in STATUSBAR_GetTextLength()
532 result = lstrlenW(part->text); in STATUSBAR_GetTextLength()
536 result |= (part->style << 16); in STATUSBAR_GetTextLength()
715 STATUSWINDOWPART *part=NULL; in STATUSBAR_SetTextT() local
728 part = &infoPtr->part0; in STATUSBAR_SetTextT()
731 part = &infoPtr->parts[nPart]; in STATUSBAR_SetTextT()
734 if (!part) return FALSE; in STATUSBAR_SetTextT()
736 if (part->style != style) in STATUSBAR_SetTextT()
739 oldStyle = part->style; in STATUSBAR_SetTextT()
740 part->style = style; in STATUSBAR_SetTextT()
743 Free (part->text); in STATUSBAR_SetTextT()
744 part->text = text; in STATUSBAR_SetTextT()
773 if (!changed && part->text && !lstrcmpW(ntext, part->text)) { in STATUSBAR_SetTextT()
778 if (!changed && !part->text) in STATUSBAR_SetTextT()
783 Free (part->text); in STATUSBAR_SetTextT()
784 part->text = ntext; in STATUSBAR_SetTextT()
786 InvalidateRect(infoPtr->Self, &part->bound, FALSE); in STATUSBAR_SetTextT()
1073 STATUSWINDOWPART *part; in STATUSBAR_WMSetText() local
1080 part = &infoPtr->parts[0]; in STATUSBAR_WMSetText()
1082 Free (part->text); in STATUSBAR_WMSetText()
1083 part->text = 0; in STATUSBAR_WMSetText()
1086 part->text = Alloc ((len+1)*sizeof(WCHAR)); in STATUSBAR_WMSetText()
1087 if (!part->text) return FALSE; in STATUSBAR_WMSetText()
1088 lstrcpyW (part->text, (LPCWSTR)text); in STATUSBAR_WMSetText()
1091 InvalidateRect(infoPtr->Self, &part->bound, FALSE); in STATUSBAR_WMSetText()