[经验分享] 为CEikEdwin绘制标准边框
void CAppView::ConstructL(const TRect& aRect) { // ... // 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转过来的,重新格式化一下,备份与提供到网上能收集到。 |