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

C / C++ / MFC

 
QuestionOwnerDraw ToolBar in Dialog Box Pin
Muhammad Azam7-Feb-06 1:02
Muhammad Azam7-Feb-06 1:02 
AnswerRe: OwnerDraw ToolBar in Dialog Box Pin
Owner drawn7-Feb-06 1:13
Owner drawn7-Feb-06 1:13 
Questionaccess permision Pin
sundar_mca7-Feb-06 0:58
sundar_mca7-Feb-06 0:58 
QuestionRe: access permision Pin
David Crow7-Feb-06 2:41
David Crow7-Feb-06 2:41 
Questiontemplete error Pin
Russell'7-Feb-06 0:57
Russell'7-Feb-06 0:57 
AnswerRe: templete error Pin
Stephen Hewitt7-Feb-06 1:21
Stephen Hewitt7-Feb-06 1:21 
GeneralRe: templete error Pin
Russell'7-Feb-06 1:54
Russell'7-Feb-06 1:54 
AnswerRe: templete error Pin
toxcct7-Feb-06 1:45
toxcct7-Feb-06 1:45 
QuestionRe: templete error Pin
David Crow7-Feb-06 2:43
David Crow7-Feb-06 2:43 
AnswerRe: templete error Pin
Russell'7-Feb-06 2:59
Russell'7-Feb-06 2:59 
AnswerRe: templete error Pin
Stephen Hewitt7-Feb-06 3:40
Stephen Hewitt7-Feb-06 3:40 
GeneralRe: templete error Pin
toxcct7-Feb-06 3:52
toxcct7-Feb-06 3:52 
Questionquestion on Bitmaps Pin
Rayalu7-Feb-06 0:54
Rayalu7-Feb-06 0:54 
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 

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.