Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ WTL
Hi,
I have an application whose icon is appearing in tray and in the title bar but when i press alt+tab the icon of the application is not appearing,there is a blank page icon is coming in place of my icon .
Please help me.
thank you.
Posted 28-Jan-11 23:40pm
Comments
Alain Rist at 4-Feb-11 2:39am
   
Which compiler, Win SDK version, WTL version, OS with the problem?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The title bar and system tray use the 16x16 icon, the alt-tab window uses a 32x32 icon.
Does your icon file contain a 32x32 icon?
  Permalink  
Comments
shivam13 at 29-Jan-11 8:53am
   
icon file is of 32x32.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Comment out this line in the PreCreateWindow of your CFrameWnd derived class
 
//cs.lpszClass = AfxRegisterWndClass(0);
 
Michel Degroux
  Permalink  
Comments
Alain Rist at 4-Feb-11 2:37am
   
There is no CFrameWnd and no PreCreateWindow in WTL :(

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



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 3 Feb 2011
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