Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling focus of child window

Status
Not open for further replies.

Skute

Programmer
Jul 21, 2003
272
GB
Hi,

ive got a dialog box with a tab control on it.

when i change tabs, i load a dialog box with no frame onto the tab, when i change again i delete that dialog and load another one in its place.

the trouble is, when i load these dialogs, they take the focus away from the main window, ie, if im typing into an edit box, the main toolbar will be grey. how can i stop these child dialogs from taking the focus like that?

if i give the child dialogs a title bar i can drag them outside of my main window. what am i doing wrong?

this isnt MFC.
 
Try not loading and deleting them. Load them all at startup and then just hide/show them when appropriate.

>> this isnt MFC.

Should not matter.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top