Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem calling a function in RecordView's constructor Pin
__yash__27-Aug-07 3:29
professional__yash__27-Aug-07 3:29 
AnswerRe: Problem calling a function in RecordView's constructor Pin
David Crow27-Aug-07 3:38
David Crow27-Aug-07 3:38 
GeneralRe: Problem calling a function in RecordView's constructor Pin
__yash__27-Aug-07 3:44
professional__yash__27-Aug-07 3:44 
AnswerRe: Problem calling a function in RecordView's constructor Pin
KarstenK27-Aug-07 4:08
mveKarstenK27-Aug-07 4:08 
GeneralRe: Problem calling a function in RecordView's constructor Pin
__yash__27-Aug-07 4:40
professional__yash__27-Aug-07 4:40 
QuestionCDC::DrawDragRect Pin
bob1697227-Aug-07 3:25
bob1697227-Aug-07 3:25 
QuestionRe: CDC::DrawDragRect Pin
Mark Salsbery27-Aug-07 7:36
Mark Salsbery27-Aug-07 7:36 
AnswerRe: CDC::DrawDragRect Pin
bob1697227-Aug-07 10:45
bob1697227-Aug-07 10:45 
GeneralRe: CDC::DrawDragRect Pin
Mark Salsbery27-Aug-07 11:07
Mark Salsbery27-Aug-07 11:07 
QuestionHow to add GDI+ to a Project? Pin
TheShihan27-Aug-07 2:25
TheShihan27-Aug-07 2:25 
AnswerRe: How to add GDI+ to a Project? Pin
bob1697227-Aug-07 3:37
bob1697227-Aug-07 3:37 
GeneralRe: How to add GDI+ to a Project? Pin
TheShihan27-Aug-07 4:09
TheShihan27-Aug-07 4:09 
Questionadding menu item to right click context menu Pin
Dhiraj kumar Saini27-Aug-07 2:01
Dhiraj kumar Saini27-Aug-07 2:01 
AnswerRe: adding menu item to right click context menu Pin
Naveen27-Aug-07 2:32
Naveen27-Aug-07 2:32 
QuestionDetecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 1:09
professional__yash__27-Aug-07 1:09 
Answeruse CTime or clock_t Pin
chandu00427-Aug-07 1:41
chandu00427-Aug-07 1:41 
GeneralRe: use CTime or clock_t Pin
__yash__27-Aug-07 1:51
professional__yash__27-Aug-07 1:51 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Cedric Moonen27-Aug-07 2:09
Cedric Moonen27-Aug-07 2:09 
GeneralRe: Detecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 4:46
professional__yash__27-Aug-07 4:46 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Naveen27-Aug-07 2:51
Naveen27-Aug-07 2:51 
Question2 Different idl files 2 different outputs Pin
sawerr27-Aug-07 0:44
sawerr27-Aug-07 0:44 
AnswerRe: 2 Different idl files 2 different outputs Pin
KarstenK27-Aug-07 2:20
mveKarstenK27-Aug-07 2:20 
GeneralRe: 2 Different idl files 2 different outputs Pin
sawerr27-Aug-07 3:00
sawerr27-Aug-07 3:00 
GeneralRe: 2 Different idl files 2 different outputs Pin
KarstenK27-Aug-07 3:15
mveKarstenK27-Aug-07 3:15 
Questionbackground of picture static control Pin
vasu_sri26-Aug-07 23:41
vasu_sri26-Aug-07 23:41 
iam using static picture control on the dialog box. actually my bitmap has alpha and red background color. this bitmap attached to static picture control. then problem is in Windows XP supporting alpha channel but in Windows 2000 it showing
same back ground color .

what i want is how can i hide the background color of the static picture control?

one more thing i wrote like this


<br />
<br />
HBRUSH CFileSelectionDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)<br />
{<br />
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
<br />
	// TODO:  Change any attributes of the DC here<br />
	if(pWnd->GetDlgCtrlID()==IDC_STATIC_IMG)<br />
		pDC->SetBkMode(TRANSPARENT); <br />
<br />
	// TODO:  Return a different brush if the default is not desired<br />
	return hbr;<br />
}<br />
<br />


here IDC_STATIC_IMG is a member variable of static picture control.


Regards,
Srinivas

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.