Regarding Modeless dialog
-
Hai frens.. . I have created a modeless dialog. . .I am creating the modeless dialog with their parent as desktop, in order to send dialog behind the parent window once the parent is clicked. Now i have a prblm that once the modeless dialog is closed the parent is not getting activated. . Only if i click on it its getting active.Could any one help me to over come this prblm. . Tanx bye
-
Hai frens.. . I have created a modeless dialog. . .I am creating the modeless dialog with their parent as desktop, in order to send dialog behind the parent window once the parent is clicked. Now i have a prblm that once the modeless dialog is closed the parent is not getting activated. . Only if i click on it its getting active.Could any one help me to over come this prblm. . Tanx bye
Hi, you can use the function SetForegroundWindow() using the window address to make it active Sujan
-
Hi, you can use the function SetForegroundWindow() using the window address to make it active Sujan
I tried using that fnction its not working. . . my application is an form based SDI. I tried to bring parent to fore ground on the close of child. but its not working. Do any boby have some other solution. Tanx bye
-
I tried using that fnction its not working. . . my application is an form based SDI. I tried to bring parent to fore ground on the close of child. but its not working. Do any boby have some other solution. Tanx bye
here is a code snippet I found on this site a few weeks ago. I think the title of the article is something like "Dialog box tips & tricks". I haven't tried it yet, but I thought it may come in handy, so I put it in my Code Librarian:
//Attach foreground window thread //to our thread AttachThreadInput( GetWindowThreadProcessId( ::GetForegroundWindow(),NULL), GetCurrentThreadId(),TRUE); //Do our stuff here ;-) SetForegroundWindow(); SetFocus(); //Just playing safe //Detach the attached thread AttachThreadInput( GetWindowThreadProcessId( ::GetForegroundWindow(),NULL), GetCurrentThreadId(),FALSE);
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store bdiamond :zzz: