Browse Source

show icon for description window on alt-tab

scott brogden 7 years ago
parent
commit
c42a97e917
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ToolTipEx.cpp

+ 3 - 0
ToolTipEx.cpp

@@ -85,6 +85,9 @@ BOOL CToolTipEx::Create(CWnd *pParentWnd)
         return FALSE;
     }	
 
+	HICON b = (HICON)LoadImage(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MAINFRAME), IMAGE_ICON, 64, 64, LR_SHARED);
+	SetIcon(b, TRUE);
+
 	//CString szClassName2 = AfxRegisterWndClass(CS_CLASSDC | CS_SAVEBITS, LoadCursor(NULL, IDC_ARROW));
 	//BOOL b = m_imageViewer.Create(_T(""), szClassName2, WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL, CRect(0, 0, 0, 0), this, 3);
 	m_imageViewer.Create(this);