CWindow::SetIcon

  • Thread starter Thread starter Egbert Nierop \(MVP for IIS\)
  • Start date Start date
E

Egbert Nierop \(MVP for IIS\)

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?
 
Egbert Nierop (MVP for IIS) said:
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
 
Igor Tandetnik said:
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.
 
Back
Top