Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: question on Bitmaps Pin
James Gupta7-Feb-06 1:42
professionalJames Gupta7-Feb-06 1:42 
QuestionProblems using #import "msxml.dll" with Visual C++ 2005 Pin
Poul Haahr Klemmensen7-Feb-06 0:42
Poul Haahr Klemmensen7-Feb-06 0:42 
AnswerRe: Problems using #import "msxml.dll" with Visual C++ 2005 Pin
Prakash Nadar7-Feb-06 1:05
Prakash Nadar7-Feb-06 1:05 
GeneralRe: Problems using #import "msxml.dll" with Visual C++ 2005 Pin
Poul Haahr Klemmensen7-Feb-06 1:36
Poul Haahr Klemmensen7-Feb-06 1:36 
QuestionREMOTE MACHINE PORT Pin
shadrach_india7-Feb-06 0:09
shadrach_india7-Feb-06 0:09 
AnswerRe: REMOTE MACHINE PORT Pin
ThatsAlok7-Feb-06 21:35
ThatsAlok7-Feb-06 21:35 
GeneralRe: REMOTE MACHINE PORT Pin
shadrach_india7-Feb-06 22:15
shadrach_india7-Feb-06 22:15 
QuestionCTabCtrl with XP manifest Pin
-Dy6-Feb-06 23:55
-Dy6-Feb-06 23:55 
Hi,

I've got a dialog with a CTabCtrl on it, and my app is using a manifest for XP styles. The CStatic controls on the tab are using the dialogs background colour rather then the tab controls background colour. To try and correct this, I've handled WM_CTLCOLOR as follows:
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	
	if (nCtlColor == CTLCOLOR_STATIC)
	{
		hbr = m_brush;
		pDC->SetBkMode(TRANSPARENT);
	}
	
	return hbr;
}

And m_brush is created in the constructor as follows:
LOGBRUSH    l;
l.lbColor = l.lbHatch = NULL;
l.lbStyle = BS_HOLLOW;
m_brush.CreateBrushIndirect(&l);

The background of the CStatic controls is still grey, not white. The same code works fine when the tab control is in a CFormView. What am I doing wrong?



- Dy
QuestionSOAP Server in Visual C++ Pin
MrChefman6-Feb-06 23:24
MrChefman6-Feb-06 23:24 
QuestionWhat`s this html help for my application Pin
schliz6-Feb-06 23:15
schliz6-Feb-06 23:15 
AnswerRe: What`s this html help for my application Pin
Blake Miller7-Feb-06 6:16
Blake Miller7-Feb-06 6:16 
QuestionLimit to number of edit boxes ? Pin
BeakX6-Feb-06 23:11
BeakX6-Feb-06 23:11 
AnswerRe: Limit to number of edit boxes ? Pin
Rage6-Feb-06 23:24
professionalRage6-Feb-06 23:24 
AnswerRe: Limit to number of edit boxes ? [edited] Pin
toxcct6-Feb-06 23:39
toxcct6-Feb-06 23:39 
GeneralRe: Limit to number of edit boxes ? Pin
Ryan Binns6-Feb-06 23:59
Ryan Binns6-Feb-06 23:59 
GeneralRe: Limit to number of edit boxes ? Pin
toxcct7-Feb-06 0:03
toxcct7-Feb-06 0:03 
QuestionYahoo messenger and Alt+Ctrl+Del Pin
frd_kitty6-Feb-06 23:00
frd_kitty6-Feb-06 23:00 
AnswerRe: Yahoo messenger and Alt+Ctrl+Del Pin
James R. Twine7-Feb-06 0:27
James R. Twine7-Feb-06 0:27 
QuestionRe: Yahoo messenger and Alt+Ctrl+Del Pin
David Crow7-Feb-06 2:46
David Crow7-Feb-06 2:46 
QuestionCOM and dll Pin
mirano6-Feb-06 22:40
mirano6-Feb-06 22:40 
QuestionNetwork Connection status monotoring Pin
Tony Kurishunkal6-Feb-06 22:40
Tony Kurishunkal6-Feb-06 22:40 
AnswerRe: Network Connection status monotoring Pin
David Crow7-Feb-06 2:47
David Crow7-Feb-06 2:47 
GeneralRe: Network Connection status monotoring Pin
Tony Kurishunkal7-Feb-06 21:05
Tony Kurishunkal7-Feb-06 21:05 
GeneralRe: Network Connection status monotoring Pin
ThatsAlok7-Feb-06 21:36
ThatsAlok7-Feb-06 21:36 
GeneralRe: Network Connection status monotoring Pin
David Crow8-Feb-06 2:19
David Crow8-Feb-06 2:19 

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.