473,387 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CWindow::SetIcon

Hi,

I have a valid handle to an icon, but when I use SetIcon, either MFC or ATL,
the icon is not displayed.

The window is a dialog and the same happens to a propertysheet window.

How can I solve this?

Jan 20 '06 #1
2 1229
"Egbert Nierop (MVP for IIS)" <eg***********@nospam.invalid> wrote in
message news:Oi**************@TK2MSFTNGP09.phx.gbl
I have a valid handle to an icon, but when I use SetIcon, either MFC
or ATL, the icon is not displayed.

The window is a dialog and the same happens to a propertysheet window.


Dialogs are usually created without WS_SYSMENU style. Use
CWindow::ModifyStyle to add it.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Jan 20 '06 #2

"Igor Tandetnik" <it********@mvps.org> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
"Egbert Nierop (MVP for IIS)" <eg***********@nospam.invalid> wrote in
message news:Oi**************@TK2MSFTNGP09.phx.gbl
I have a valid handle to an icon, but when I use SetIcon, either MFC
or ATL, the icon is not displayed.

The window is a dialog and the same happens to a propertysheet window.


Dialogs are usually created without WS_SYSMENU style. Use
CWindow::ModifyStyle to add it.


Thanks!

Sorry that I was not clear enough.
The icon is an ICON resource item, within a propertysheet window that is
within a dialog.

Jan 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Rajko | last post by:
I found possible bug with set icon. I'm not sure but I don't think this is supposed to work like this. Program uses large instead of small icons. Please tell me is it known bug or maybe I missed...
2
by: Egbert Nierop \(MVP for IIS\) | last post by:
Igor sorry for not being clear in my original question. I have a valid handle to an icon control (type = ICON) for a propertysheet, but when I use SetIcon, either MFC or ATL, the icon is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.