Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is one way better than the other? Pin
Michael Dunn3-Sep-03 9:20
sitebuilderMichael Dunn3-Sep-03 9:20 
AnswerRe: Is one way better than the other? Pin
Michael Dunn3-Sep-03 9:23
sitebuilderMichael Dunn3-Sep-03 9:23 
AnswerRe: Is one way better than the other? Pin
David Crow3-Sep-03 10:59
David Crow3-Sep-03 10:59 
GeneralCListCtrl custom RectTracker Pin
Nicolas Bonamy3-Sep-03 7:32
Nicolas Bonamy3-Sep-03 7:32 
QuestionHow to prevent of access to the local files through Internet Explorer (WebBrowser ActiveX)? Pin
Valera2411763-Sep-03 5:16
Valera2411763-Sep-03 5:16 
AnswerRe: How to prevent of access to the local files through Internet Explorer (WebBrowser ActiveX)? Pin
Brian Shifrin3-Sep-03 6:53
Brian Shifrin3-Sep-03 6:53 
GeneralAnother transparent question Pin
Zizilamoroso3-Sep-03 5:05
Zizilamoroso3-Sep-03 5:05 
GeneralRe: Another transparent question Pin
Valera2411763-Sep-03 5:34
Valera2411763-Sep-03 5:34 
Control with WS_EX_TRANSPARENT has the background of its parent. You probably put static control on i.e tab control which lies on dialog. But the parent of static control is still this dialog. To correct such situation override CDialog::OnCtlColor. Type ON_WM_CTLCOLOR() in MESSAGE_MAP. Then
change the background color of your static control as you wish (i.e set it as those tab control):
HBRUSH CTTSDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if (nCtlColor == CTLCOLOR_STATIC && pWnd->GetDlgCtrlID() != IDC_DEFAULT_CHECK)
{
CWnd *TabCtrl = GetDlgItem(IDC_LANG_TAB);
CWnd *Ctrl = GetDlgItem(pWnd->GetDlgCtrlID());
if (Ctrl)
{
CRect Rect; Ctrl->GetWindowRect(&Rect);
TabCtrl->ScreenToClient(&Rect);
COLORREF Clr = TabCtrl->GetDC()->GetPixel(Rect.left-1, Rect.top-1);
DeleteObject(hbr);
hbr = CreateSolidBrush(Clr);
pDC->SetBkColor(Clr);
}
}
return hbr;
}
GeneralRe: Another transparent question Pin
Brian Shifrin3-Sep-03 7:06
Brian Shifrin3-Sep-03 7:06 
GeneralDiable enter key Pin
NewHSKid3-Sep-03 4:45
NewHSKid3-Sep-03 4:45 
GeneralRe: Diable enter key Pin
Ravi Bhavnani3-Sep-03 5:35
professionalRavi Bhavnani3-Sep-03 5:35 
GeneralRe: Diable enter key Pin
NewHSKid3-Sep-03 5:58
NewHSKid3-Sep-03 5:58 
GeneralRe: Diable enter key Pin
Ravi Bhavnani3-Sep-03 6:01
professionalRavi Bhavnani3-Sep-03 6:01 
GeneralRe: Diable enter key Pin
valikac3-Sep-03 6:00
valikac3-Sep-03 6:00 
QuestionHow to capture ENTER key in single line edit box? Pin
melwyn3-Sep-03 4:40
melwyn3-Sep-03 4:40 
AnswerRe: How to capture ENTER key in single line edit box? Pin
Ravi Bhavnani3-Sep-03 5:37
professionalRavi Bhavnani3-Sep-03 5:37 
GeneralProblem with thread Pin
Majid Shahabfar3-Sep-03 4:14
Majid Shahabfar3-Sep-03 4:14 
GeneralRe: Problem with thread Pin
Iain Clarke, Warrior Programmer3-Sep-03 5:52
Iain Clarke, Warrior Programmer3-Sep-03 5:52 
GeneralRe: Problem with thread Pin
Brad Sokol3-Sep-03 5:56
Brad Sokol3-Sep-03 5:56 
GeneralRe: Problem with thread Pin
Iain Clarke, Warrior Programmer3-Sep-03 6:02
Iain Clarke, Warrior Programmer3-Sep-03 6:02 
GeneralRe: Problem with thread Pin
Scott H. Settlemier3-Sep-03 10:18
Scott H. Settlemier3-Sep-03 10:18 
GeneralWinCVS and Visual Studio 6 Pin
Jerome Conus3-Sep-03 3:57
Jerome Conus3-Sep-03 3:57 
GeneralRe: WinCVS and Visual Studio 6 Pin
Stefan Pedersen3-Sep-03 5:23
Stefan Pedersen3-Sep-03 5:23 
GeneralRe: WinCVS and Visual Studio 6 Pin
Jerome Conus3-Sep-03 19:07
Jerome Conus3-Sep-03 19:07 
GeneralRe: WinCVS and Visual Studio 6 Pin
Stefan Pedersen3-Sep-03 22:58
Stefan Pedersen3-Sep-03 22:58 

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.