Icon on Button not display in XP.
-
Hi all, I am setIcon on button,its working fine on vista or windows 7 but on xp the icon on button not displayed only text is displayed.
HICON addIcon = (HICON)LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_ICON_HELP),IMAGE_ICON, 24, 24, LR_DEFAULTCOLOR);
m\_btn.SetIcon(addIcon);
how can I display the icon on button in xp. thanks in advance.
-
Hi all, I am setIcon on button,its working fine on vista or windows 7 but on xp the icon on button not displayed only text is displayed.
HICON addIcon = (HICON)LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_ICON_HELP),IMAGE_ICON, 24, 24, LR_DEFAULTCOLOR);
m\_btn.SetIcon(addIcon);
how can I display the icon on button in xp. thanks in advance.
-
You can't. Although the documentation suggests otherwise, it does not work in Windows XP.
Use the best guess
-
Hi all, I am setIcon on button,its working fine on vista or windows 7 but on xp the icon on button not displayed only text is displayed.
HICON addIcon = (HICON)LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_ICON_HELP),IMAGE_ICON, 24, 24, LR_DEFAULTCOLOR);
m\_btn.SetIcon(addIcon);
how can I display the icon on button in xp. thanks in advance.
Can you change the icon to bitmap and try CBitmapButton class to load it on the button?
You talk about Being HUMAN. I have it in my name AnsHUMAN