> > 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
> > call. The WS_POPUP and the ShowWindow(hWnd,SW_SHOWNORMAL) call (I just used
> > WS_VISIBLE). Maybe give that a try?
> Would that really change much? After all, this routine is run once, when the
> window initializes. I always thought the WS_popup was wrong but it was from the
> original Mame Code so I left it in.
Yes WS_POPUP is the correct style to use in Win32, however it doesn't seem to be used in Windows CE (all windows have no borders anyway). Also all of the examples use a style of 0 (no WS_POPUP flag).
Would that really change much? - Possibly - it can do as Windows is a little bit eccentric - that was the only difference I could see between your code and mine.
If it doesn't work, give the SHFullscreen a try, since there's nothing else left. But it's just strange as I seem to having no trouble. Maybe there is menus and stuff in MameCE which changes things. Who knows.