Hello,
I build a simple application that uses one MFC CEditBox in a AcDialogBar
(created by ArxWizard) .
It is not possible to input a string in the CEditBox if the AcDialogBar is
undocked because the CEditbox always lost the Focus to the Commandline oder
the Acad Mainframe.
If the AcDialogBar id docked the input works fine.
Can you help me ?
Regards
Peter
This code I used to create the Dialogbar:
AfxSetResourceHandle (_hdllInstance) ;
CWhatEver *p =new CWhatEver;
p->Create (acedGetAcadFrame (), CWhatEver::IDD,WS_CHILD | CBRS_BORDER_LEFT |
CBRS_BORDER_RIGHT | CBRS_SIZE_DYNAMIC,AFX_IDW_CONTROLBAR_FIRST + 32 + 1) ;
AfxSetResourceHandle (acedGetAcadResourceInstance ()) ;
p->EnableDocking (CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT) ;
acedGetAcadFrame ()->FloatControlBar (p, CPoint (100, 100), CBRS_ALIGN_TOP)
;
acedGetAcadFrame ()->ShowControlBar (p, TRUE, TRUE) ;