Lines Matching refs:cur

394     PTHEME_CLASS cur = tf->classes;  in MSSTYLES_FindClass()  local
395 while(cur) { in MSSTYLES_FindClass()
397 if(!*cur->szAppName && !lstrcmpiW(pszClassName, cur->szClassName)) in MSSTYLES_FindClass()
398 return cur; in MSSTYLES_FindClass()
401 if(!lstrcmpiW(pszAppName, cur->szAppName) && !lstrcmpiW(pszClassName, cur->szClassName)) in MSSTYLES_FindClass()
402 return cur; in MSSTYLES_FindClass()
404 cur = cur->next; in MSSTYLES_FindClass()
424 PTHEME_CLASS cur = MSSTYLES_FindClass(tf, pszAppName, pszClassName); in MSSTYLES_AddClass() local
425 if(cur) return cur; in MSSTYLES_AddClass()
427 cur = HeapAlloc(GetProcessHeap(), 0, sizeof(THEME_CLASS)); in MSSTYLES_AddClass()
428 cur->hTheme = tf->hTheme; in MSSTYLES_AddClass()
429 lstrcpyW(cur->szAppName, pszAppName); in MSSTYLES_AddClass()
430 lstrcpyW(cur->szClassName, pszClassName); in MSSTYLES_AddClass()
431 cur->next = tf->classes; in MSSTYLES_AddClass()
432 cur->partstate = NULL; in MSSTYLES_AddClass()
433 cur->overrides = NULL; in MSSTYLES_AddClass()
434 tf->classes = cur; in MSSTYLES_AddClass()
435 return cur; in MSSTYLES_AddClass()
454 PTHEME_PARTSTATE cur = tc->partstate; in MSSTYLES_FindPartState() local
455 while(cur) { in MSSTYLES_FindPartState()
456 if(cur->iPartId == iPartId && cur->iStateId == iStateId) { in MSSTYLES_FindPartState()
458 return cur; in MSSTYLES_FindPartState()
460 cur = cur->next; in MSSTYLES_FindPartState()
481 PTHEME_PARTSTATE cur = MSSTYLES_FindPartState(tc, iPartId, iStateId, NULL); in MSSTYLES_AddPartState() local
482 if(cur) return cur; in MSSTYLES_AddPartState()
484 cur = HeapAlloc(GetProcessHeap(), 0, sizeof(THEME_PARTSTATE)); in MSSTYLES_AddPartState()
485 cur->iPartId = iPartId; in MSSTYLES_AddPartState()
486 cur->iStateId = iStateId; in MSSTYLES_AddPartState()
487 cur->properties = NULL; in MSSTYLES_AddPartState()
488 cur->next = tc->partstate; in MSSTYLES_AddPartState()
489 tc->partstate = cur; in MSSTYLES_AddPartState()
490 return cur; in MSSTYLES_AddPartState()
508 PTHEME_PROPERTY cur = tp; in MSSTYLES_LFindProperty() local
509 while(cur) { in MSSTYLES_LFindProperty()
510 if(cur->iPropertyId == iPropertyId) { in MSSTYLES_LFindProperty()
511 if(cur->iPrimitiveType == iPropertyPrimitive) { in MSSTYLES_LFindProperty()
512 return cur; in MSSTYLES_LFindProperty()
516 return cur; in MSSTYLES_LFindProperty()
520 cur = cur->next; in MSSTYLES_LFindProperty()
578 PTHEME_PROPERTY cur = MSSTYLES_PSFindProperty(ps, iPropertyPrimitive, iPropertyId); in MSSTYLES_AddProperty() local
580 if(cur) return cur; in MSSTYLES_AddProperty()
582 cur = HeapAlloc(GetProcessHeap(), 0, sizeof(THEME_PROPERTY)); in MSSTYLES_AddProperty()
583 cur->iPrimitiveType = iPropertyPrimitive; in MSSTYLES_AddProperty()
584 cur->iPropertyId = iPropertyId; in MSSTYLES_AddProperty()
585 cur->lpValue = lpValue; in MSSTYLES_AddProperty()
586 cur->dwValueLen = dwValueLen; in MSSTYLES_AddProperty()
589 cur->origin = PO_STATE; in MSSTYLES_AddProperty()
591 cur->origin = PO_PART; in MSSTYLES_AddProperty()
593 cur->origin = PO_GLOBAL; in MSSTYLES_AddProperty()
595 cur->origin = PO_CLASS; in MSSTYLES_AddProperty()
597 cur->next = ps->properties; in MSSTYLES_AddProperty()
598 ps->properties = cur; in MSSTYLES_AddProperty()
599 return cur; in MSSTYLES_AddProperty()
619 PTHEME_PROPERTY cur = MSSTYLES_FindMetric(tf, iPropertyPrimitive, iPropertyId); in MSSTYLES_AddMetric() local
621 if(cur) return cur; in MSSTYLES_AddMetric()
623 cur = HeapAlloc(GetProcessHeap(), 0, sizeof(THEME_PROPERTY)); in MSSTYLES_AddMetric()
624 cur->iPrimitiveType = iPropertyPrimitive; in MSSTYLES_AddMetric()
625 cur->iPropertyId = iPropertyId; in MSSTYLES_AddMetric()
626 cur->lpValue = lpValue; in MSSTYLES_AddMetric()
627 cur->dwValueLen = dwValueLen; in MSSTYLES_AddMetric()
629 cur->origin = PO_GLOBAL; in MSSTYLES_AddMetric()
631 cur->next = tf->metrics; in MSSTYLES_AddMetric()
632 tf->metrics = cur; in MSSTYLES_AddMetric()
633 return cur; in MSSTYLES_AddMetric()
947 LPCWSTR cur = lpStringStart; in MSSTYLES_GetNextInteger() local
951 while(cur < lpStringEnd && ((*cur < '0' || *cur > '9') && *cur != '-')) cur++; in MSSTYLES_GetNextInteger()
952 if(cur >= lpStringEnd) { in MSSTYLES_GetNextInteger()
955 if(*cur == '-') { in MSSTYLES_GetNextInteger()
956 cur++; in MSSTYLES_GetNextInteger()
959 while(cur < lpStringEnd && (*cur >= '0' && *cur <= '9')) { in MSSTYLES_GetNextInteger()
960 total = total * 10 + (*cur - '0'); in MSSTYLES_GetNextInteger()
961 cur++; in MSSTYLES_GetNextInteger()
965 if(lpValEnd) *lpValEnd = cur; in MSSTYLES_GetNextInteger()
970 LPCWSTR cur = lpStringStart; in MSSTYLES_GetNextToken() local
974 while(cur < lpStringEnd && (isspace(*cur) || *cur == ',')) cur++; in MSSTYLES_GetNextToken()
975 if(cur >= lpStringEnd) { in MSSTYLES_GetNextToken()
978 start = cur; in MSSTYLES_GetNextToken()
979 while(cur < lpStringEnd && *cur != '\n'&& *cur != ',') cur++; in MSSTYLES_GetNextToken()
980 end = cur; in MSSTYLES_GetNextToken()
985 if(lpValEnd) *lpValEnd = cur; in MSSTYLES_GetNextToken()