15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Enable3dControls() - MFC30

Knut Erik Hollund -- knut-erik.hollund@visma.no
Monday, January 06, 1997

Environment: VC++ 2.0, Win 95

Hi 


Using Enable3dControls() in the beginning of my application
(::InitInstance)
But the controls on my CFormViews doens't get the "3d look".
I'm I doing something fundamentally wrong ???

Example..:
CTest2App theApp;

////////////////////////////////////////////////////////////////////////
/////
// CTestApp initialization

BOOL CTestApp::InitInstance()
{
	// Standard initialization
	// If you are not using these features and wish to reduce the size
	//  of your final executable, you should remove from the following
	//  the specific initialization routines you do not need.

	Enable3dControls();



Nikos Konstas -- tapj5@sussex.ac.uk
Monday, January 06, 1997



----------
> From: Knut Erik Hollund 
> To: 'MFC Listserver' 
> Subject: Enable3dControls() - MFC30
> Date: Monday, January 06, 1997 2:29 PM
> 
> Environment: VC++ 2.0, Win 95
> 
> Hi 
> 
> 
> Using Enable3dControls() in the beginning of my application
> (::InitInstance)
> But the controls on my CFormViews doens't get the "3d look".
> I'm I doing something fundamentally wrong ???
> 
> Example..:
> CTest2App theApp;
> 
> ////////////////////////////////////////////////////////////////////////
> /////
> // CTestApp initialization
> 
> BOOL CTestApp::InitInstance()
> {
> 	// Standard initialization
> 	// If you are not using these features and wish to reduce the size
> 	//  of your final executable, you should remove from the following
> 	//  the specific initialization routines you do not need.
> 
> 	Enable3dControls();



	Change  '/subsystem:windows' to  '/subsystem:windows,4.0' under the 
	Link tab in your project settings. If you want the new	style toolbar
	buttons simply add AfxEnableWin40Compatibility() in
	your C???App::InitInstance().

	Nikos.






| Вернуться в корень Архива |