Hi,
Ihr müßt mir helfen! Ich werd noch zum Elch... :eek:
Ich hab mir eine Klasse von CEdit abgeleitet. folgendes kam hin zu:
void CEditModulInfo::OnSetfocus()
{
CWnd* lpoParent = NULL;
lpoParent = GetParent();
if(lpoParent)
{
if(!m_bAcceptFocus)
{
lpoParent->SetFocus();
}
}
}
void CEditModulInfo::SetAcceptFocus(bool bNewStatus)
{
m_bAcceptFocus = bNewStatus;
}
Alles funzt wunderbar, bis - ja bis ich bei dem EditFeld den Rand deaktiviere und eine statische Kante aktiviere. Ab da nimmt das Feld jeden Focus an, egal ob m_bAcceptFocus wahr oder falsch...
Kann mir bitte jemand helfen?
Thnx...
<FONT COLOR="#a62a2a" SIZE="1">[ 13. Dezember 2001 13:09: Beitrag 1 mal editiert, zuletzt von Hexagon ]</font>