Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC7 menu UI
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 20:12pm
dvt123287
Edited 3-Jun-10 22:52pm
Moak11.4K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Can anyone give me an answer ? Thanks very much
  Permalink  
Rate this: bad
good
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.
  Permalink  
v2
Comments
Richard MacCutchan at 4-Jun-10 4:24am
   
This is a C programming question, not HTML.
Arindam Tewary at 4-Jun-10 7:26am
   
Thanks Mr. Richard MacCutchan for pointing it out correctly. I apologise and please ignore my post.
shakti gupta at 4-Jun-10 14:18pm
   
Reason for my vote of 1
ha ha ha gadha kahin ka
Arindam Tewary at 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
0 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 21 Jun 2010
Copyright © CodeProject, 1999-2014
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