![]() |
|
#1
|
|||
|
|||
CDialog Floating Child and CEditI'm using VS2008 CPP to develop a simple MFC Dialog Based application.
First I create a dialog, to be used as child, in the resource editor (IDD_THE_FLOATER). I give the dialog the style:Child setting and place two controls on it: Combo and Edit. Next I create a class for the dialog and add it as a data member to the main dialog window (float_dialog). Now I attempt to make the floating dialog appear inside of the main dialog window. On initialization I do the following: float_dialog.Create(MAKEINTRESOURCE(IDD_THE_FLOATE R), this); float_dialog.ShowWindow(SW_SHOWNORMAL); The floating dialog appears and can be dragged around inside the main dialog app. The combo box works well but the edit box will not respond to mouse clicks. The I-Beam cursor appears when the mouse is moved over the CEdit control and I can force the focus programmatically but am unable to set focus to CEdit using the mouse. If I change the floating dialog to a Control:True type the CEdit works as it should (can mouse control it) but I lose the dialog border and the ability to drag it around. Does anyone know why this is happening? And if so, is there a way to get CEdit to behave properly given this setup? ![]() |
|||
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing Params from Parent to Child (MFC) | AmiGame | MS Visual C++ / MFC Forum | 1 | 16-Oct-2007 02:43 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The