how to set window icon with the icon got from other program?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
i have got a icon from other program ,now i have the HICON of the icon,but if i use LoadIcon whose parameter need icon ID,do you have a good idea?
In
OnInitDialog()
:m_hIcon = ExtractIcon(AfxGetInstanceHandle(), path_to_file_containing_icon_here, 0);
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen