Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Peugeot Polygon Concept: ecco il futuro delle utilitarie
Peugeot Polygon Concept: ecco il futuro delle utilitarie
Polygon è la concept car di Peugeot che mostra il futuro delle soluzioni del segmento B: tra design compatti e innovativi affiancati da dimensioni compatte uno scherzo dalla manovrabilità incredibile per le manovre a bassa velocità
Reno16 Pro: il compatto di OPPO punta su fotocamera da 200MP e il nuovo Bubble! La recensione
Reno16 Pro: il compatto di OPPO punta su fotocamera da 200MP e il nuovo Bubble! La recensione
OPPO ha portato in Italia, dal 1° luglio 2026, Reno16 Pro: display AMOLED da 6,32 pollici a 144Hz, tripla fotocamera con sensore principale da 200 megapixel, chip Dimensity 8550 Super e batteria da 6000mAh, al prezzo di lancio di 899 euro. Lo abbiamo provato per due settimane insieme al nuovo accessorio Bubble, per capire se la formula compatta della serie regge ancora di fronte a un listino da 1099 euro
 Hisense 55U7SE: tuttofare e accessibile, il MiniLED per film, sport e gioco
Hisense 55U7SE: tuttofare e accessibile, il MiniLED per film, sport e gioco
MiniLED di fascia media con local dimming a 192 zone, 144 Hz nativi e audio firmato Devialet. La prova strumentale riscontra colori affidabili e gaming reattivo, per un prodotto molto accessibile e convincente. Ma la soundbar aggiuntiva è quasi d'obbligo
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 12-02-2004, 08:25   #1
okay
Senior Member
 
Iscritto dal: Feb 2002
Messaggi: 906
Windowed c++ direct3d vc6

Ho questo problema:

Premendo il tasto F1 da windows normale vado in fullscreen ma se ripremo F1 mi ritorna la finestra senza bordi ne la barra con l'icona?????
Sembra che questa linea di codice non abbia effetto:

SetWindowLong( hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_SYSMENU | WS_BORDER | WS_CAPTION | WS_VISIBLE | WS_MINIMIZEBOX );








Questa è la routine........chiaramente prima resetto i parametri
m_pD3DDevice->Reset( &d3dpp )
.....e poi

ToggleFullScreen();


HRESULT CGame::ToggleFullScreen()
{
HRESULT hr;

m_bReady = false;

if( m_Fscreen )
{
// Set windowed mode style

SetWindowLong( hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_SYSMENU | WS_BORDER | WS_CAPTION | WS_VISIBLE | WS_MINIMIZEBOX );

d3dpp.Windowed = true;

m_Fscreen=false;
}
else
{
// Set fullscreen mode style
SetWindowLong( hWnd, GWL_STYLE, WS_POPUP | WS_SYSMENU | WS_VISIBLE );

d3dpp.Windowed = false;

m_Fscreen=true;
}

//LogInfo("<li>m_Fscreen dopo %d.", m_Fscreen);


// Setup the new presentation parameters
d3dpp.hDeviceWindow = hWnd;
if( m_Fscreen == true )
{
d3dpp.BackBufferWidth = m_rcWindowClient.right - m_rcWindowClient.left;
d3dpp.BackBufferHeight = m_rcWindowClient.bottom - m_rcWindowClient.top;
d3dpp.BackBufferFormat = m_d3dfmtFullscreen;

d3ddm.Format : d3ddm.Format;

}
else
{

d3dpp.BackBufferWidth = m_dwCreationWidth;
d3dpp.BackBufferHeight = m_dwCreationHeight;
d3dpp.BackBufferFormat = m_dmDesktop.Format;

}

if( FAILED( hr = Resize3DEnvironment() ) )
{
return hr;
}

// If in windowed mode, adjust the window size.
if( m_Fscreen )
{
SetWindowPos( hWnd, HWND_NOTOPMOST,
m_rcWindowBounds.left, m_rcWindowBounds.top,
m_rcWindowBounds.right - m_rcWindowBounds.left,
m_rcWindowBounds.bottom - m_rcWindowBounds.top,
SWP_SHOWWINDOW );
okay è offline   Rispondi citando il messaggio o parte di esso
Old 12-02-2004, 08:46   #2
cionci
Senior Member
 
L'Avatar di cionci
 
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
Prova ad aggiungere:

SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_APPWINDOW | WS_EX_WINDOWEDGE);
cionci è offline   Rispondi citando il messaggio o parte di esso
Old 12-02-2004, 09:01   #3
cionci
Senior Member
 
L'Avatar di cionci
 
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
Dai un'occhiata a ChangeDisplaySettings
cionci è offline   Rispondi citando il messaggio o parte di esso
Old 12-02-2004, 09:57   #4
okay
Senior Member
 
Iscritto dal: Feb 2002
Messaggi: 906
creo in tutti ie due i modi, ma non risolvo:

MODO 1:

WNDCLASS wc = { 0, WinProc, 0, 0, hInst,
LoadIcon( hInst, MAKEINTRESOURCE( IDI_ICON ) ),
LoadCursor( NULL, IDC_ARROW ),
(HBRUSH)GetStockObject( BLACK_BRUSH ),
NULL, strAppname
};

if (!RegisterClass(&wc))
return 0;


if (g_bFullscreen==true)
{


// Create a fullscreen window, one that doesn't have anything in it
hWnd = CreateWindow(//NULL,
strAppname,
strAppname,
WS_POPUP | WS_SYSMENU | WS_VISIBLE,
0, 0 ,
mWidth, mHeight,
NULL,
NULL,
hInst,
NULL);


m_dwWindowStyle0 = WS_POPUP | WS_SYSMENU | WS_VISIBLE;
// Set the window's initial width and height
RECT rc;
SetRect( &rc, 0, 0, mWidth, mHeight );
AdjustWindowRect( &rc, m_dwWindowStyle0, false );



// Save the window's properties incase we have to switch modes
m_dwWindowStyle0 = GetWindowLong( hWnd, GWL_STYLE );
GetWindowRect( hWnd, &m_rcWindowBounds0 );
GetClientRect( hWnd, &m_rcWindowClient0 );




}
else
{



m_dwWindowStyle0 = WS_OVERLAPPEDWINDOW | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME |
WS_MINIMIZEBOX | WS_VISIBLE;

// Set the window's initial width and height
RECT rc;
SetRect( &rc, 0, 0, m_dwCreationWidth0, m_dwCreationHeight0 );
AdjustWindowRect( &rc, m_dwWindowStyle0, false );

// Create a fullscreen window, one that doesn't have anything in it
hWnd = CreateWindow(//NULL,
strAppname,
strAppname,

m_dwWindowStyle0,
//0, 0 ,
CW_USEDEFAULT, CW_USEDEFAULT,
//mWidth, mHeight,
(rc.right - rc.left), (rc.bottom - rc.top),
NULL,
NULL,
hInst,
NULL);



// Save the window's properties incase we have to switch modes
m_dwWindowStyle0 = GetWindowLong( hWnd, GWL_STYLE );


GetWindowRect( hWnd, &m_rcWindowBounds0 );
GetClientRect( hWnd, &m_rcWindowClient0 );


--------------------------------------

MODO 2

Aggiungo EX

WNDCLASSEX wc;

// Setup and register the window class
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WinProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = GetModuleHandle(NULL);
// wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE( IDI_ICON));
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
wc.lpszMenuName = NULL;
wc.lpszClassName = strAppname;
// wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
wc.hIconSm = LoadIcon(hInst, MAKEINTRESOURCE( IDI_ICON));

e abilito NULL dove al modo 1 vedi sisabiliato dal commento

ma nulla di nulla
mentre nel listato che ho funziona............

pocco giuda
okay è offline   Rispondi citando il messaggio o parte di esso
Old 12-02-2004, 11:30   #5
cionci
Senior Member
 
L'Avatar di cionci
 
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
Sui tutoriale NeHE usano ChangeDisplaySettings
cionci è offline   Rispondi citando il messaggio o parte di esso
Old 12-02-2004, 12:39   #6
okay
Senior Member
 
Iscritto dal: Feb 2002
Messaggi: 906
Si lo so............appunto riguarda opengl
mentre io non uso le opengl
okay è offline   Rispondi citando il messaggio o parte di esso
Old 12-02-2004, 13:16   #7
cionci
Senior Member
 
L'Avatar di cionci
 
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
ChangeDisplaySettings è delle GDI... Non di OpenGL...
cionci è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Peugeot Polygon Concept: ecco il futuro delle utilitarie Peugeot Polygon Concept: ecco il futuro delle ut...
Reno16 Pro: il compatto di OPPO punta su fotocamera da 200MP e il nuovo Bubble! La recensione Reno16 Pro: il compatto di OPPO punta su fotocam...
 Hisense 55U7SE: tuttofare e accessibile, il MiniLED per film, sport e gioco Hisense 55U7SE: tuttofare e accessibile, il Min...
Kindle Scribe Colorsoft: riduce le cornici e diventa a colori, ma il prezzo è alto Kindle Scribe Colorsoft: riduce le cornici e div...
L'IA cambia tutte le regole della sicurezza tra vulnerabilità e sorveglianza. Intervista al CEO di Proofpoint L'IA cambia tutte le regole della sicurezza tra ...
Roomba Plus 516 Combo in offerta a 479€:...
ASUS ROG Strix G16 con RTX 5070 Ti super...
Google ammette il problema: la corsa all...
MOVA LiDAX Ultra 800 è un robot tagliaer...
iPhone 17 256GB oggi torna a soli 849€ s...
Dyson V8 Cyclone (aspira) scontata di 15...
Edge AI: NVIDIA Jetson raggiungerà...
La missione robotica LINK per salvare il...
Potrebbe essere stato lanciato l'ultimo ...
PamStealer, il malware per Mac che prima...
NAVEE EXO S Pro, il robot esoscheletro p...
Samsung Galaxy A57 5G a 399€ con 256 GB:...
Volevano collegare delle aragoste vive a...
La crisi dei PC è peggiore del pr...
Alibaba pronta a vietare Claude Code ai ...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 07:38.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v