Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Icon missing in Alt+Tab window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icon missing in Alt+Tab window

 Post Reply Post Reply
Author
Message
dubaoan View Drop Down
Groupie
Groupie


Joined: 01 December 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dubaoan Quote  Post ReplyReply Direct Link To This Post Topic: Icon missing in Alt+Tab window
    Posted: 02 July 2007 at 9:08pm
Whenever a modal dialog box is popped up from a floating pane, application icon is not displayed in the Alt+Tab window.
 
Can anyone help me? Thanks!
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 July 2007 at 1:35am
Hi,
 
You can add
 AfxGetMainWnd()->SetFocus();
before popup modal dialog.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dubaoan View Drop Down
Groupie
Groupie


Joined: 01 December 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dubaoan Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2007 at 10:08pm

It doesn't work.

1. Open a modal dialog.
 
2. Press alt+tab to switch to another application.
 
3. Press alt+tab to switch back.
 
4. Press alt+tab again, the application icon is missing.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2007 at 12:57am
Hello,
 
Now I can't reproduce it.
 
Please try open GUI_VisualStudio sample and modify
 
void CPropertiesPane::OnPanePropertiesCategorized()
{
 AfxGetMainWnd()->SetFocus();
 CAboutDlg f;
 f.DoModal();
}
 
Do you see problem when click Categorized button in PropetyPane?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dubaoan View Drop Down
Groupie
Groupie


Joined: 01 December 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dubaoan Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2007 at 5:54am

Thanks for your reply!!!

In my application, when a modal dialog is active, press 'alt+tab' to switch to another and then swich back.  No window gets focus, while in your suggested case, the about dialog gets the focus. I can't figure it out.
 
Could you help me?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.