Lines Matching refs:mpRes

39     mpRes = get;  in resource_item()
41 if (mpRes->type == RES_TYPE_FOLDER) in resource_item()
43 if ((mpRes->folder_id == CUSTOM_PIXELMAP_FOLDER) || in resource_item()
44 (mpRes->folder_id == DEFAULT_PIXELMAP_FOLDER)) in resource_item()
55 switch (mpRes->type) in resource_item()
76 mpRes = NULL; in resource_item()
236 if ((mpRes->type <= RES_TYPE_FOLDER) && m_open) in Close()
380 if (!project || !mpRes) in MakeFontPreview()
384 if (mpRes->font) in MakeFontPreview()
387 int char_count = mpRes->name.GetLength() * 6 + 1; in MakeFontPreview()
391 … WideCharToMultiByte(CP_UTF8, 0, mpRes->name.GetString(), -1, utf8buf, char_count, NULL, NULL); in MakeFontPreview()
395 prev_string = mpRes->name.GetBuffer(); in MakeFontPreview()
402 gx_system_string_width_get_ext(mpRes->font, &string, &width); in MakeFontPreview()
410 gx_system_string_width_get_ext(mpRes->font, &string, &width); in MakeFontPreview()
413 height = mpRes->font->gx_font_line_height; in MakeFontPreview()
424 int display_index = project->GetDisplayIndex(mpRes); in MakeFontPreview()
449 brush->gx_brush_font = mpRes->font; in MakeFontPreview()
484 if (!mpRes || !project) in MakePixelmapPreview()
489 if (mpRes->thumbnail) in MakePixelmapPreview()
491 map = mpRes->thumbnail; in MakePixelmapPreview()
495 map = mpRes->GetPixelmap(); in MakePixelmapPreview()
503 int display_index = project->GetDisplayIndex(mpRes); in MakePixelmapPreview()
562 if (mpRes) in RebuildPreview()
564 type = mpRes->type; in RebuildPreview()
650 title.Format(_T("Theme: \"%s\""), mpRes->name); in PaintThemeHeader()
787 dc->DrawText(mpRes->name, boxrect, DT_LEFT|DT_VCENTER|DT_SINGLELINE); in PaintGroupHeader()
851 dc->DrawText(mpRes->name, boxrect, DT_LEFT | DT_VCENTER | DT_SINGLELINE); in PaintFolderHeader()
948 dc->DrawText(mpRes->name, boxrect, nDrawFormat); in PaintColorItem()
1036 dc->DrawText(mpRes->name, boxrect, DT_LEFT | DT_TOP | DT_SINGLELINE | DT_VCENTER); in PaintFontItem()
1063 _itot(mpRes->font_height, pix_size, 10); in PaintFontItem()
1069 dc->DrawText(mpRes->name, boxrect, DT_LEFT | DT_TOP | DT_SINGLELINE | DT_VCENTER); in PaintFontItem()
1074 int storage = (mpRes->storage_size + 1023) >> 10; in PaintFontItem()
1201 GX_PIXELMAP* map = mpRes->GetPixelmap(); in PaintPixelmapItem()
1211 dc->DrawText(mpRes->name, &boxrect, DT_LEFT | DT_SINGLELINE | DT_VCENTER); in PaintPixelmapItem()
1216 int storage = (mpRes->storage_size + 1023) >> 10; in PaintPixelmapItem()
1260 if (project && mpRes) in PaintStringGroupColumnHeader()
1262 int display = project->GetDisplayIndex(mpRes); in PaintStringGroupColumnHeader()
1384 dc->DrawText(mpRes->name, &boxrect, DT_LEFT | DT_SINGLELINE | DT_VCENTER); in PaintAddNewItem()
1398 if (mpRes->folder_id == THEME_HEADER) in Paint()
1408 switch(mpRes->folder_id) in Paint()
1433 if ((mpRes->folder_id == DEFAULT_PIXELMAP_FOLDER) || in Paint()
1434 (mpRes->folder_id == CUSTOM_PIXELMAP_FOLDER)) in Paint()
1490 if (mpRes) in GetHeight()
1492 type = mpRes->type; in GetHeight()
1497 if (mpRes->folder_id == THEME_HEADER) in GetHeight()
1528 if ((mpRes->folder_id == DEFAULT_PIXELMAP_FOLDER) || in GetHeight()
1529 (mpRes->folder_id == CUSTOM_PIXELMAP_FOLDER)) in GetHeight()
1580 if (mpRes) in GetWidth()
1582 type = mpRes->type; in GetWidth()
1592 width += dc->GetTextExtent(mpRes->name).cx; in GetWidth()
1598 width += dc->GetTextExtent(mpRes->name).cx + (COLOR_TEXT_SPACE << 1); in GetWidth()
1617 width = dc->GetTextExtent(mpRes->name).cx; in GetWidth()
1640 width += dc->GetTextExtent(mpRes->name).cx; in GetWidth()
1680 if (mpRes->resource_id == CUSTOM_COLOR_FOLDER)
1721 if (_tcscmp(child->mpRes->name, winner->mpRes->name) < 0) in SortFirst()
1752 if (_tcscmp(child->mpRes->name, current->mpRes->name) > 0) in SortNext()
1760 if (_tcscmp(child->mpRes->name, winner->mpRes->name) < 0) in SortNext()
1815 switch (first->mpRes->folder_id) in NavigateFirst()
1845 if (mpRes->folder_id == CUSTOM_PIXELMAP_FOLDER) in NavigateLast()
1865 switch (last->mpRes->folder_id) in NavigateLast()
1905 switch (parent->mpRes->folder_id) in NavigateNext()
1956 switch (parent->mpRes->folder_id) in NavigateParent()
2011 if (!mpRes) in CheckClickCommand()
2016 if ((mpRes->type == RES_TYPE_HEADER) && in CheckClickCommand()
2017 (mpRes->folder_id == THEME_HEADER)) in CheckClickCommand()
2028 else if (mpRes->type == RES_TYPE_GROUP && in CheckClickCommand()
2029 mpRes->folder_id == STRING_GROUP) in CheckClickCommand()
2055 if (mpRes) in SetColorValue()
2057 mpRes->colorval = val; in SetColorValue()
2099 if (mpRes == NULL || project == NULL) in GetRGBColor()
2103 if (mpRes->type != RES_TYPE_COLOR) in GetRGBColor()
2110 display_index = project->GetDisplayIndex(mpRes); in GetRGBColor()
2123 if ((ULONG) mpRes->colorval >= (ULONG) palsize) in GetRGBColor()
2129 mpRes->colorval = 0; in GetRGBColor()
2132 if (palette && ((int) mpRes->colorval >= 0 && (int) mpRes->colorval < palsize)) in GetRGBColor()
2134 color = palette[mpRes->colorval]; in GetRGBColor()
2139 color = mpRes->colorval; in GetRGBColor()
2152 if (mpRes) in GetResType()
2154 return mpRes->type; in GetResType()
2181 if (mpRes) in GetName()
2183 return mpRes->name; in GetName()
2198 if (mpRes) in GetDescription()
2200 …cription.Format(L"Pix: %d, Name: %s, Size: %d kilobyte", mpRes->font_height, mpRes->name, (mpRes->… in GetDescription()
2205 if(mpRes) in GetDescription()
2207 GX_PIXELMAP *map = mpRes->GetPixelmap(); in GetDescription()
2210 … by %d, Name: %s, Size: %d kilobyte", map->gx_pixelmap_width, map->gx_pixelmap_height, mpRes->name, in GetDescription()
2211 (mpRes->storage_size + 1023) >> 10); in GetDescription()