int by = r + (theView.tm.tmHeight / 2) - 5;
// draw the '+' or '-' box
- SelectObject (theView.bitmap_dc,
- (collapsed ? theView.bm_treeplus : theView.bm_treeminus));
- BitBlt (hdc, x2, by, 11, 11, theView.bitmap_dc, 0, 0, SRCAND);
+ theView.DrawIcon (hdc, x2, by, (collapsed ? theView.bm_treeplus : theView.bm_treeminus));
// draw the category name
TextOut (hdc, x2 + 11 + ICON_MARGIN, r, cat.first.c_str(), cat.first.size());
}
// draw the 'spin' glyph
- SelectObject (theView.bitmap_dc, theView.bm_spin);
spin_x = x2 + 11 + ICON_MARGIN + labellength + ICON_MARGIN;
- BitBlt (hdc, spin_x, by, 11, 11, theView.bitmap_dc, 0, 0, SRCAND);
+ theView.DrawIcon (hdc, spin_x, by, theView.bm_spin);
// draw the caption ('Default', 'Install', etc)
TextOut (hdc, spin_x + SPIN_WIDTH + ICON_MARGIN, r,
{
++current_default;
- packagedb().markUnVisited();
-
return set_action (current_default);
}
else
int
PickCategoryLine::set_action (packagemeta::_actions action)
{
+ theView.GetParent ()->SetBusy ();
current_default = action;
int accum_diff = 0;
for (size_t n = 0; n < bucket.size (); n++)
accum_diff += bucket[n]->set_action (current_default);
+ theView.GetParent ()->ClearBusy ();
return accum_diff;
}