|
-
October 19th, 2003, 10:42 AM
#1
desktop modeless dialog problem
hello, i have done something like that:
BOOL CDialogList::OnInitDialog()
{
CDialog::OnInitDialog();
SetParent(GetDesktopWindow());
}
to create it i do:
CDialogList * pD== new CDialogList();
pD->Create(IDD_DIALOG); //put ur ctrl id
pD->ShowWindow(SW_SHOWNORMAL);
HOWEVER I HAVE A PROBLEM:
when i click on this child dialog, and move the mouse from A to B (keeping the mouse button clicked),
during all the movement from a to b, the dialog stays at A, and then when i release the mouse button it appears suddenly ??!
as well there is problem when i click the title bar, it is always becoming "blue" (active),
any help ...?
-
October 19th, 2003, 10:52 AM
#2
Why SetParent(GetDesktopWindow()); ??
-rick
-
October 19th, 2003, 02:45 PM
#3
hello Rick,
i set the parent to desktop because i want to be able to minimize it in the toolbar of the desktop window,
and i dont want the dialog to be limited in position to the mainFrame window)
and if i dont do that i think there is plenty of displaying problem,
-
October 20th, 2003, 11:10 AM
#4
fix
yep thats because i used the child option for the dialog window style, i set it to Pop up and thats much better.
As well i set the visible style, it may be another reason,
but with those 2 options it seems fine,
xx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|