[QUESTION] REMOVE "x" BUTTON

05/24/2015 00:47 InControl2#1
Hii

I HAVE A QUESTION, HOW I REMOVE THE "x" BUTTON OF Invertory, Loading, Login, etc..

HERE A PICTURE

[Only registered and activated users can see links. Click Here To Register...]

THANKS :3



sorry for my bad english :(
05/24/2015 12:27 YchiYchi#2
Hello,

In file WndNeuz.cpp (folder _Interface)


Code:
void CWndTitleBar::OnInitialUpdate()
Here:
Code:
			m_awndButton[ WTBID_CLOSE - 10000 ].Create( _T( "x" ), 0, CRect( m_nButtonMax * 16, 1 , m_nButtonMax * 16 + 16, 20), this, WTBID_CLOSE ), m_nButtonMax++;
			m_awndButton[ WTBID_CLOSE - 10000 ].SetTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "ButtWndExit.tga" ), TRUE );
			m_awndButton[ WTBID_CLOSE - 10000 ].FitTextureSize();
Ychi.
05/24/2015 12:30 Mike Oxmaul#3
Quote:
Originally Posted by YchiYchi View Post
Hello,

In file WndNeuz.cpp (folder _Interface)


Code:
void CWndTitleBar::OnInitialUpdate()
Here:
Code:
			m_awndButton[ WTBID_CLOSE - 10000 ].Create( _T( "x" ), 0, CRect( m_nButtonMax * 16, 1 , m_nButtonMax * 16 + 16, 20), this, WTBID_CLOSE ), m_nButtonMax++;
			m_awndButton[ WTBID_CLOSE - 10000 ].SetTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "ButtWndExit.tga" ), TRUE );
			m_awndButton[ WTBID_CLOSE - 10000 ].FitTextureSize();
Ychi.

Better solution would be

constructor of the window

Code:
m_bNoCloseButton = TRUE;