Click here to Skip to main content
13,145,068 members (58,642 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to make a popup window like this in a SDI application. If I click the toolbar button, a window will show but don't influence the main window's focus
I try setting style to Child and set its parent to MainFrame Window but it only show the part in MainFrame area (a small part in the toolbar).
If I show its as a modeless dialog, the main window lose focus.
I don't know how to do that. Can you help me ? Thanks very much
Posted 3-Jun-10 19:12pm
Updated 3-Jun-10 21:52pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Can anyone give me an answer ? Thanks very much
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You may give a try with "div" element instead of new window. Make the look and feel of the div like "window" using appropriate stysheet.

If you use div then your application will not loose focus which seems your main concern. Hence current UI design will be inside the div now(div will work as a container)

N.B: Sorry guys. It was a fault in my understanding. I am updating it here after Mr. Richard MacCutchan pointed out that this question were related to C and not HTML. I am not deleting it as it would remind me to double check my understanding before I am posting a reply.

I apologise and please ignore my post.
Richard MacCutchan 4-Jun-10 4:24am
This is a C programming question, not HTML.
Arindam Tewary 4-Jun-10 7:26am
Thanks Mr. Richard MacCutchan for pointing it out correctly. I apologise and please ignore my post.
shakti gupta 4-Jun-10 14:18pm
Reason for my vote of 1
ha ha ha gadha kahin ka
Arindam Tewary 4-Jun-10 16:08pm
Mr. Shakti Gupta, please abstain from abusing. The mistake was unintentional. Please try to contribute in the website in a constructive way. I am hurt by your comment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 21 Jun 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100