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

C / C++ / MFC

 
GeneralRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
Bill Brocklebank20-Jan-07 15:57
Bill Brocklebank20-Jan-07 15:57 
QuestionRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
David Crow22-Jan-07 3:20
David Crow22-Jan-07 3:20 
AnswerRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
John R. Shaw28-Jan-07 7:47
John R. Shaw28-Jan-07 7:47 
QuestionTransparent checkbox text? Pin
madmax000119-Jan-07 5:47
madmax000119-Jan-07 5:47 
AnswerRe: Transparent checkbox text? Pin
Mark Salsbery19-Jan-07 6:53
Mark Salsbery19-Jan-07 6:53 
GeneralRe: Transparent checkbox text? Pin
madmax000120-Jan-07 9:10
madmax000120-Jan-07 9:10 
GeneralRe: Transparent checkbox text? Pin
Mark Salsbery20-Jan-07 10:26
Mark Salsbery20-Jan-07 10:26 
AnswerRe: Transparent checkbox text? Pin
Ralf Lohmueller20-Jan-07 16:38
Ralf Lohmueller20-Jan-07 16:38 
Did you try it with ON_WM_CTLCOLOR_REFLECT ?

for my purposes, it worked...
<br />
class CTransparentCheckbox : public CButton<br />
{<br />
public:<br />
	CTransparentCheckbox();<br />
	//{{AFX_VIRTUAL(CTransparentCheckbox)<br />
	//}}AFX_VIRTUAL<br />
<br />
	virtual ~CTransparentCheckbox();<br />
protected:<br />
	//{{AFX_MSG(CButtonEx)<br />
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);<br />
	//}}AFX_MSG<br />
	DECLARE_MESSAGE_MAP()<br />
};<br />
<br />
//////////////////////////////////////////////////////<br />
// CTransparentCheckbox<br />
<br />
CTransparentCheckbox::CTransparentCheckbox()<br />
{<br />
}<br />
CTransparentCheckbox::~CTransparentCheckbox()<br />
{<br />
}<br />
BEGIN_MESSAGE_MAP(CTransparentCheckbox, CButton)<br />
	//{{AFX_MSG_MAP(CTransparentCheckbox)<br />
	ON_WM_CTLCOLOR_REFLECT()<br />
	//}}AFX_MSG_MAP<br />
END_MESSAGE_MAP()<br />
<br />
// Handler for WM_CTLCOLOR reflected message (see message map)<br />
HBRUSH CTransparentCheckbox::CtlColor(CDC* pDC, UINT nCtlColor) <br />
{		<br />
	ASSERT(nCtlColor == CTLCOLOR_STATIC);<br />
	// Set transparent drawing mode<br />
	pDC->SetBkMode(TRANSPARENT);<br />
	return (HBRUSH)GetStockObject(NULL_BRUSH);<br />
}


greetings,
ralf.
GeneralRe: Transparent checkbox text? Pin
madmax000122-Jan-07 8:27
madmax000122-Jan-07 8:27 
QuestionNetUserGetInfo returns 1008 (GetLastError) Pin
gbabu1719-Jan-07 5:41
gbabu1719-Jan-07 5:41 
QuestionRe: NetUserGetInfo returns 1008 (GetLastError) Pin
David Crow19-Jan-07 6:13
David Crow19-Jan-07 6:13 
AnswerRe: NetUserGetInfo returns 1008 (GetLastError) Pin
gbabu1719-Jan-07 7:36
gbabu1719-Jan-07 7:36 
QuestionRe: NetUserGetInfo returns 1008 (GetLastError) Pin
David Crow19-Jan-07 7:41
David Crow19-Jan-07 7:41 
AnswerRe: NetUserGetInfo returns 1008 (GetLastError) Pin
gbabu1719-Jan-07 19:54
gbabu1719-Jan-07 19:54 
QuestionInitializeCriticalSection throws ... something ? Pin
Mr.Brainley19-Jan-07 5:31
Mr.Brainley19-Jan-07 5:31 
AnswerRe: InitializeCriticalSection throws ... something ? Pin
David Crow19-Jan-07 5:59
David Crow19-Jan-07 5:59 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
Mr.Brainley19-Jan-07 6:28
Mr.Brainley19-Jan-07 6:28 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
David Crow19-Jan-07 6:49
David Crow19-Jan-07 6:49 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
led mike19-Jan-07 7:08
led mike19-Jan-07 7:08 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
David Crow19-Jan-07 7:32
David Crow19-Jan-07 7:32 
AnswerRe: InitializeCriticalSection throws ... something ? Pin
Mark Salsbery19-Jan-07 7:16
Mark Salsbery19-Jan-07 7:16 
Questionsend a short message from an application to a mobile phone Pin
nahitan19-Jan-07 5:22
nahitan19-Jan-07 5:22 
AnswerRe: send a short message from an application to a mobile phone Pin
David Crow19-Jan-07 5:51
David Crow19-Jan-07 5:51 
AnswerRe: send a short message from an application to a mobile phone Pin
Kiran Pinjala19-Jan-07 22:17
Kiran Pinjala19-Jan-07 22:17 
Questiongmtime() crash Pin
SteveRubio19-Jan-07 5:14
SteveRubio19-Jan-07 5:14 

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.