为CEikEdwin绘制标准边框(转)
时间:2010-10-27 来源:冰岛
{
// ...
// Set border type
iEditor->SetBorder(TGulBorder::ESingleDotted);
// ...
}
void CAppView::Draw(const TRect&aRect) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Clear the screengc.Clear(aRect);
// Get the border
TGulBorder border = iEditor->Border();
// Draw the border so that it surrounds iEditor
TRect editorRect = iEditor->Rect();
border.Draw(gc, border.OuterRect(editorRect));
}
- 后记
CEikEdwin控件周围会有标准边框出现 转自:forum.nokia.com
备注:从devdiv转过来的,重新格式化一下,备份与提供到网上能收集到。
相关阅读 更多 +