32-bit depth Icons become invisible while connecting second display and choosing "Control Panel\Display\Change Display Settings\Multiple displays: extend these displays" setting.
I draw icons in my MFC\C++\ATL Windows application using
::DrawIconEx( hDC, x, y, hIcon,W,H,NULL,NULL, DI_NORMAL) API function.
Handle of ICON in memory is passed from outside.
Handle of DeviceContext I take from DirectDraw surface ( we draw complex scene using DirectX 9.0 DirectDraw ).
The icon is drawn alright while it has less than 32-bit depth.
I use defaults when create primary/back surfaces. Probably I need to configure some "bit depth" fields for it...
Any ideas? Thanks in advance!
Tatyana
What I have tried:
My custom 4-8-16-24 bit icons are OK.
I've tested on Win10 and encountered with the same problem .