In the code the window position (0,0) is relative 0,26 physically to the main bar.
SM_CXSCREEN, SM_CYSCREEN would returns the workable space (so something like 320x214). So this code does not provide a full screen.
Anyway the window size does not matter really, because in GAPI mode, it's returning the display memory address from 0,0
Better, you can define a 1x1 window, this should work, and you will reduce memory footprint again .. of course, if you call the SHFullscreen functions.
Also, no need to the GUI manager to clip the taskbars with your window (again, speed would be increased).
> Had a quick look at the MAMECE code > > hWnd = CreateWindow( _T("MAMECE_PLAYWINDOW"), > _T(""), > WS_POPUP, > 0, > 0, > GetSystemMetrics(SM_CXSCREEN), > GetSystemMetrics(SM_CYSCREEN) , > MAMECE3App.m_hwndUI, > NULL, > hInstance, > NULL); > > ShowWindow(hWnd, SW_SHOWNORMAL); > UpdateWindow(hWnd); > > > > As far as I can see there are some things to try before trying the SHFullscreen > call. The WS_POPUP and the ShowWindow(hWnd,SW_SHOWNORMAL) call (I just used > WS_VISIBLE). Maybe give that a try? >
|