Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: DirectShow Video Playback from memory Pinmembersdancer759-Feb-13 6:19 
QuestionBitmap Display from Buffer received by TCP socket Pinmembertoms from newdelhi6-Feb-13 2:21 
QuestionRe: Bitmap Display from Buffer received by TCP socket PinmvpCPallini6-Feb-13 3:20 
AnswerRe: Bitmap Display from Buffer received by TCP socket PinmvpRichard MacCutchan6-Feb-13 4:09 
Questionicon on button not displayed in XP. PingroupVCProgrammer5-Feb-13 22:47 
SuggestionRe: icon on button not displayed in XP. PinmvpRichard MacCutchan6-Feb-13 4:11 
QuestionRe: icon on button not displayed in XP. PinmemberDavidCrow6-Feb-13 6:58 
AnswerRe: icon on button not displayed in XP. PingroupVCProgrammer6-Feb-13 18:36 
i am using this to set icon on button
 
only on xp i found this problem.
 
HICON hIcon = AfxGetApp()->LoadIcon(IDI_ICON1);
	m_btn2.SetIcon(hIcon);
 
HICON icon =NULL;	
 
	HINSTANCE	hInstResource	= NULL;	
 
	hInstResource = AfxFindResourceHandle(MAKEINTRESOURCE(IDI_ICON2), RT_GROUP_ICON);
 
	icon = (HICON) LoadImage(hInstResource,
							MAKEINTRESOURCE(IDI_ICON2),
							IMAGE_ICON,
							16,
							16,
							LR_DEFAULTCOLOR); 
 
	m_btn3.SetIcon(icon);
 
on other os like Vista and Windows 7 the icon on button with button caption display properly,
 
but in case of XP the icon not display only the button caption is visible.
SuggestionRe: icon on button not displayed in XP. PinmemberDavidCrow7-Feb-13 3:35 
GeneralRe: icon on button not displayed in XP. [modified] PingroupVCProgrammer7-Feb-13 19:46 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan8-Feb-13 0:07 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer8-Feb-13 0:52 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan8-Feb-13 1:37 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer8-Feb-13 2:15 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan8-Feb-13 2:21 
JokeRe: icon on button not displayed in XP. PinmemberDavidCrow8-Feb-13 3:38 
JokeRe: icon on button not displayed in XP. PinmvpRichard MacCutchan8-Feb-13 6:16 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer8-Feb-13 21:33 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan8-Feb-13 23:42 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer9-Feb-13 2:00 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan9-Feb-13 2:08 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer9-Feb-13 2:20 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan9-Feb-13 2:30 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer9-Feb-13 2:36 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan9-Feb-13 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150302.1 | Last Updated 4 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid