Click here to Skip to main content
12,452,344 members (59,079 online)

C / C++ / MFC

 
GeneralRe: DirectShow Video Playback from memory Pin
sdancer759-Feb-13 5:19
membersdancer759-Feb-13 5:19 
QuestionBitmap Display from Buffer received by TCP socket Pin
toms from newdelhi6-Feb-13 1:21
membertoms from newdelhi6-Feb-13 1:21 
QuestionRe: Bitmap Display from Buffer received by TCP socket Pin
CPallini6-Feb-13 2:20
mvpCPallini6-Feb-13 2:20 
AnswerRe: Bitmap Display from Buffer received by TCP socket Pin
Richard MacCutchan6-Feb-13 3:09
mvpRichard MacCutchan6-Feb-13 3:09 
Questionicon on button not displayed in XP. Pin
VCProgrammer5-Feb-13 21:47
groupVCProgrammer5-Feb-13 21:47 
SuggestionRe: icon on button not displayed in XP. Pin
Richard MacCutchan6-Feb-13 3:11
mvpRichard MacCutchan6-Feb-13 3:11 
QuestionRe: icon on button not displayed in XP. Pin
DavidCrow6-Feb-13 5:58
memberDavidCrow6-Feb-13 5:58 
AnswerRe: icon on button not displayed in XP. Pin
VCProgrammer6-Feb-13 17:36
groupVCProgrammer6-Feb-13 17: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. Pin
DavidCrow7-Feb-13 2:35
memberDavidCrow7-Feb-13 2:35 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer7-Feb-13 18:46
groupVCProgrammer7-Feb-13 18:46 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan7-Feb-13 23:07
mvpRichard MacCutchan7-Feb-13 23:07 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer7-Feb-13 23:52
groupVCProgrammer7-Feb-13 23:52 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan8-Feb-13 0:37
mvpRichard MacCutchan8-Feb-13 0:37 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer8-Feb-13 1:15
groupVCProgrammer8-Feb-13 1:15 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan8-Feb-13 1:21
mvpRichard MacCutchan8-Feb-13 1:21 
JokeRe: icon on button not displayed in XP. Pin
DavidCrow8-Feb-13 2:38
memberDavidCrow8-Feb-13 2:38 
JokeRe: icon on button not displayed in XP. Pin
Richard MacCutchan8-Feb-13 5:16
mvpRichard MacCutchan8-Feb-13 5:16 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer8-Feb-13 20:33
groupVCProgrammer8-Feb-13 20:33 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan8-Feb-13 22:42
mvpRichard MacCutchan8-Feb-13 22:42 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer9-Feb-13 1:00
groupVCProgrammer9-Feb-13 1:00 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan9-Feb-13 1:08
mvpRichard MacCutchan9-Feb-13 1:08 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer9-Feb-13 1:20
groupVCProgrammer9-Feb-13 1:20 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan9-Feb-13 1:30
mvpRichard MacCutchan9-Feb-13 1:30 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer9-Feb-13 1:36
groupVCProgrammer9-Feb-13 1:36 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan9-Feb-13 2:05
mvpRichard MacCutchan9-Feb-13 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.160826.1 | Last Updated 29 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid