Click here to Skip to main content
15,914,016 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionC# BHO question Pin
elefas19-Jul-06 3:15
elefas19-Jul-06 3:15 
QuestionProperty page loading to FireFox Browser. Pin
shivditya19-Jul-06 3:04
shivditya19-Jul-06 3:04 
QuestionIE - simulating ENTER key Pin
rana7418-Jul-06 21:55
rana7418-Jul-06 21:55 
Questiona way around constructor arguments Pin
nikhil_ag198518-Jul-06 21:05
nikhil_ag198518-Jul-06 21:05 
Questionhash_map file in VC6 Pin
misha_grewal18-Jul-06 20:24
misha_grewal18-Jul-06 20:24 
AnswerRe: hash_map file in VC6 Pin
Stuart Dootson18-Jul-06 21:58
professionalStuart Dootson18-Jul-06 21:58 
AnswerRe: hash_map file in VC6 Pin
Stephen Hewitt19-Jul-06 0:26
Stephen Hewitt19-Jul-06 0:26 
Questionwhy are WM_CTLCOLORSTATIC and COLOR_BTNFACE not playing along? Pin
alianyn18-Jul-06 3:39
alianyn18-Jul-06 3:39 
Hi,
I have a WTL app in which i have a property page based on CPropertyPageImpl.
On that page i have a Static Text Control which is basically sample of the text selected and thus labeled IDC_SAMPLE.
no i mapped WM_CTLCOLORSTATIC using MSG_WM_CTLCOLORSTATIC(OnCtlColorStatic)in a BEGIN_MSG_MAP_EX. and my implementation is a s follows :

LRESULT CItemAppearanceOptsImpl::OnCtlColorStatic(HDC hDC, HWND hWnd)<br />
{<br />
	long lWndID = ::GetWindowLong(hWnd, GWL_ID);<br />
	if (lWndID == IDC_SAMPLE)<br />
	{<br />
		::SetBkMode(hDC, TRANSPARENT);<br />
		::SetTextColor(hDC, m_cfb->GetBarItemColor());<br />
		::SetBkColor(hDC, ::GetSysColor(COLOR_BTNFACE));<br />
		if (m_returnBrush) m_returnBrush.DeleteObject();<br />
		m_returnBrush.CreateSysColorBrush(COLOR_BTNHIGHLIGHT);<br />
		SetMsgHandled(TRUE);<br />
		return (LRESULT)m_returnBrush.m_hBrush;<br />
	} <br />
	else<br />
	{<br />
		SetMsgHandled(FALSE);<br />
		if (m_returnBrush) m_returnBrush.DeleteObject();<br />
		m_returnBrush.CreateSysColorBrush(COLOR_BTNFACE);<br />
		return (LRESULT)m_returnBrush.m_hBrush;<br />
	}<br />
}<br />

m_returnBrush is a CBrush defined in the header and set at OnInitDialog to COLOR_BTNFACE.

now if i change the single line
m_returnBrush.CreateSysColorBrush(COLOR_BTNHIGHLIGHT);
to m_returnBrush.CreateSysColorBrush(COLOR_BTNFACE);
no change in color occurs - i.e meaning that it doesn`t work.
any ideas why? using COLOR_BTNHIGHLIGHT gives it a different look than the rest of the Page and I want a uniform UI.

thanks in advance.
QuestionHow to check if the Flash player installed Pin
hell_admin13-Jul-06 20:58
hell_admin13-Jul-06 20:58 
AnswerRe: How to check if the Flash player installed Pin
sudeesh26-Jul-06 2:58
sudeesh26-Jul-06 2:58 
GeneralRe: How to check if the Flash player installed Pin
hell_admin26-Jul-06 3:14
hell_admin26-Jul-06 3:14 
QuestionCompiler error Pin
HarishDixit13-Jul-06 5:04
HarishDixit13-Jul-06 5:04 
AnswerRe: Compiler error Pin
Jörgen Sigvardsson16-Jul-06 21:59
Jörgen Sigvardsson16-Jul-06 21:59 
QuestionIXMLDOMDocument how to use Pin
shivditya13-Jul-06 2:35
shivditya13-Jul-06 2:35 
AnswerRe: IXMLDOMDocument how to use Pin
Steve S13-Jul-06 4:29
Steve S13-Jul-06 4:29 
QuestionWhy my ocx could not display in word? Pin
mrlhb12-Jul-06 3:39
mrlhb12-Jul-06 3:39 
AnswerRe: Why my ocx could not display in word? Pin
mrlhb15-Jul-06 16:46
mrlhb15-Jul-06 16:46 
QuestionAsp Pages on differnert resolution Pin
ayazsb12-Jul-06 1:40
ayazsb12-Jul-06 1:40 
AnswerRe: Asp Pages on differnert resolution Pin
Malli_S16-Jul-06 19:42
Malli_S16-Jul-06 19:42 
QuestionVC++ does not consider WTLs presence Pin
shivditya11-Jul-06 1:31
shivditya11-Jul-06 1:31 
AnswerRe: VC++ does not consider WTLs presence Pin
Monty211-Jul-06 2:13
Monty211-Jul-06 2:13 
AnswerRe: VC++ does not consider WTLs presence Pin
Steve Echols11-Jul-06 18:57
Steve Echols11-Jul-06 18:57 
GeneralRe: VC++ does not consider WTLs presence Pin
shivditya11-Jul-06 22:47
shivditya11-Jul-06 22:47 
QuestionThis problem is yet not solved ? Pin
shivditya11-Jul-06 23:50
shivditya11-Jul-06 23:50 
AnswerRe: This problem is yet not solved ? Pin
Steve S12-Jul-06 2:59
Steve S12-Jul-06 2:59 

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.