|
> Pff ! > > I've downloaded the latest source code, and found in Cgapi.cpp that the > SHFullscreen code was missing ...
I don't think it's needed: here's a clip out of the first GAPI example on Microsoft (the nearest thing to docs):
hWnd = CreateWindow(szWindowClass, szTitle, WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } //When the main window is created using CW_USEDEFAULT the height of the menubar (if one // is created is not taken into account). So we resize the window after creating it // if a menubar is present { RECT rc; GetWindowRect(hWnd, &rc); rc.bottom -= MENU_HEIGHT; if (hwndCB) MoveWindow(hWnd, rc.left, rc.top, rc.right, rc.bottom, FALSE); }
As you can see, the only magical thing which happens here is that it makes a window the size of the screen! Not very magical at all. The MENU_HEIGHT=26 looks to be a bit hacky even. I think I'd be happier with this code:
int cx=0,cy=0; // Get desktop size cx=GetSystemMetrics(SM_CXSCREEN); cy=GetSystemMetrics(SM_CYSCREEN);
hWnd=CreateWindow(L"WindowClass","My Win",WS_VISIBLE,0,0,cx,cy,NULL,NULL,wc.hInstance,NULL);
I've tried this on iPaq and Jornada and it works fine - fullscreen display. No need for any SH* stuff. Tekhmaster, have you had any troubles with fullscreen? execom_rt - you said you had fullscreen troubles, which pocket pc model do you have?
|