// set up fonts and colours (This is nomally done in MSWCreateControl)
InheritAttributes();
- SetFont(GetDefaultAttributes().font);
+ if (!m_hasFont)
+ SetFont(GetDefaultAttributes().font);
// set the size of the text window - can do it only now, because we
// couldn't call DoGetBestSize() before as font wasn't set
sizeText.y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy);
}
- //DoMoveWindow(pos.x, pos.y,
- // sizeText.x + sizeBtn.x + MARGIN_BETWEEN, sizeText.y);
SetBestSize(size);
(void)::ShowWindow(GetBuddyHwnd(), SW_SHOW);