Click here to Skip to main content
12,698,330 members (22,623 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ WTL
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 29-Jan-11 0:40am
Alain Rist 4-Feb-11 2:39am
Which compiler, Win SDK version, WTL version, OS with the problem?
Rate this: bad
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?
shivam13 29-Jan-11 8:53am
icon file is of 32x32.
Rate this: bad
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
Alain Rist 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

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