Click here to Skip to main content
16,009,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: input parameter debug Pin
George_George15-Jul-08 22:26
George_George15-Jul-08 22:26 
GeneralRe: input parameter debug Pin
Matthew Faithfull16-Jul-08 6:46
Matthew Faithfull16-Jul-08 6:46 
GeneralRe: input parameter debug Pin
George_George16-Jul-08 19:46
George_George16-Jul-08 19:46 
AnswerRe: input parameter debug Pin
Mark Salsbery14-Jul-08 6:11
Mark Salsbery14-Jul-08 6:11 
GeneralRe: input parameter debug Pin
George_George14-Jul-08 16:16
George_George14-Jul-08 16:16 
GeneralRe: input parameter debug Pin
Mark Salsbery15-Jul-08 5:25
Mark Salsbery15-Jul-08 5:25 
GeneralRe: input parameter debug Pin
George_George15-Jul-08 22:32
George_George15-Jul-08 22:32 
QuestionLet the CHILD window's bakcground be transparent [modified] Pin
followait13-Jul-08 22:40
followait13-Jul-08 22:40 
I've a crazy idea, use SetWindowRgn, let the visible part be the rgn. Laugh | :laugh:

======================================

[update]
I tried as below, the background of the list ctrl is still while, why the code that changes the background brush doesn't take effect?

int CThumbListCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CListCtrlHiddenSB::OnCreate(lpCreateStruct) == -1)
		return -1;

	DWORD dw = SetClassLong(GetSafeHwnd(), GCL_HBRBACKGROUND, (LONG)GetStockObject(BLACK_BRUSH));
	SetExtendedStyle(LVS_EX_HIDELABELS | LVS_EX_BORDERSELECT);

	return 0;
}



=========================================================

Here is the method I tried, but not successful:
(some error check codes are removed)
BOOL CMyWnd::PreCreateWindow(CREATESTRUCT& cs)
{
	CWnd::PreCreateWindow(cs);
	WNDCLASS wndclass;   
	BOOL b = ::GetClassInfo(AfxGetInstanceHandle(),cs.lpszClass,&wndclass);   
	wndclass.lpszClassName=L"classThumbListCtrl";
	wndclass.hbrBackground=(HBRUSH)GetStockObject(HOLLOW_BRUSH);
	VERIFY(AfxRegisterClass(&wndclass));   
	cs.lpszClass=wndclass.lpszClassName; 
	return TRUE;
}


Any way to correct it? Or is there a better way?

Thanks.

system

modified on Monday, July 14, 2008 10:59 AM

AnswerRe: Let the window's bakcground be transparent Pin
sudhir_Kumar14-Jul-08 0:17
sudhir_Kumar14-Jul-08 0:17 
GeneralRe: Let the window's bakcground be transparent Pin
followait14-Jul-08 1:41
followait14-Jul-08 1:41 
AnswerRe: Let the CHILD window's bakcground be transparent Pin
Mark Salsbery14-Jul-08 6:14
Mark Salsbery14-Jul-08 6:14 
QuestionBatch file problem Pin
Nandu_77b13-Jul-08 22:39
Nandu_77b13-Jul-08 22:39 
AnswerRe: Batch file problem Pin
Varghese Paul M13-Jul-08 23:21
Varghese Paul M13-Jul-08 23:21 
GeneralRe: Batch file problem Pin
Nandu_77b13-Jul-08 23:46
Nandu_77b13-Jul-08 23:46 
Questiontry catch question Pin
Dennis L13-Jul-08 22:30
Dennis L13-Jul-08 22:30 
AnswerRe: try catch question Pin
Atropus13-Jul-08 23:06
Atropus13-Jul-08 23:06 
AnswerRe: try catch question Pin
Matthew Faithfull14-Jul-08 0:25
Matthew Faithfull14-Jul-08 0:25 
GeneralRe: try catch question Pin
Stephen Hewitt14-Jul-08 14:52
Stephen Hewitt14-Jul-08 14:52 
GeneralRe: try catch question Pin
Matthew Faithfull15-Jul-08 0:33
Matthew Faithfull15-Jul-08 0:33 
QuestionHow to disable visual style to the whole project Pin
Atropus13-Jul-08 22:11
Atropus13-Jul-08 22:11 
AnswerRe: How to disable visual style to the whole project Pin
BadKarma13-Jul-08 23:06
BadKarma13-Jul-08 23:06 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:15
Atropus13-Jul-08 23:15 
AnswerRe: How to disable visual style to the whole project Pin
Naveen13-Jul-08 23:08
Naveen13-Jul-08 23:08 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:23
Atropus13-Jul-08 23:23 
GeneralRe: How to disable visual style to the whole project Pin
Naveen13-Jul-08 23:29
Naveen13-Jul-08 23:29 

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.