Print Page | Close Window

How Can I use BackGround Pictrue In Vc++

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3435
Printed Date: 09 November 2025 at 7:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How Can I use BackGround Pictrue In Vc++
Posted By: jianxin0805
Subject: How Can I use BackGround Pictrue In Vc++
Date Posted: 22 December 2005 at 5:58am

While use CXTPTabClientWnd I can not use MDI background Picture in vc++.how to do it.Thank you

PS:My english is not good.




Replies:
Posted By: Oleg
Date Posted: 22 December 2005 at 10:41am

Hello,

You can

1. Override its OnFillBackground,

or

override it and set m_bThemedBackColor = FALSE;



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jianxin0805
Date Posted: 22 December 2005 at 11:54pm

I tried that.but i does not work well.the picture does not show normally.

can you show an example.



Posted By: Oleg
Date Posted: 23 December 2005 at 4:17am

Hello,

Attach your try and I will fix it.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jianxin0805
Date Posted: 23 December 2005 at 6:00am

here is my project.i use Xtreme Toolkit pro 9.6.VC++ 2003

thank you very much. https://forum.codejock.com/uploads/jianxin0805/2005-12-23_060013_MyMdiTab.rar - 2005-12-23_060013_MyMdiTab.rar



Posted By: Oleg
Date Posted: 23 December 2005 at 8:07am

Add

in .h

void OnSize(UINT nType, int cx, int cy);

DECLARE_MESSAGE_MAP();

 

in .cpp

BEGIN_MESSAGE_MAP(CMyClientWnd, CXTPTabClientWnd)

ON_WM_SIZE()

END_MESSAGE_MAP()

void CMyClientWnd::OnSize(UINT nType, int cx, int cy)

{

CXTPTabClientWnd::OnSize(nType, cx, cy);

Invalidate(FALSE);

}



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jianxin0805
Date Posted: 23 December 2005 at 9:54am
Thanks a lot



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net