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

C / C++ / MFC

 
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 
GeneralRe: Another transparent question Pin
Brian Shifrin3-Sep-03 7:06
Brian Shifrin3-Sep-03 7:06 
MSDN:

WS_EX_TRANSPARENT Specifies that a window created with this style is to be transparent. That is, any windows that are beneath the window are not obscured by the window. A window created with this style receives WM_PAINT messages only after all sibling windows beneath it have been updated.

In other words all WS_EX_TRANSPARENT does is changes the way WM_PAINT is sent. To make static transparent You need to override OnCtlColor and set correct dc mode.

HBRUSH CMyFormView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
   if (m_nWhich==ID_MY_STATIC )
   {
      pDC->SetBkMode(TRANSPARENT);
      pDC->SetTextColor(GetSysColor(COLOR_WINDOWTEXT));
   }
}

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 
GeneralRe: WinCVS and Visual Studio 6 Pin
Rasqual Twilight4-Sep-03 2:15
Rasqual Twilight4-Sep-03 2:15 

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.