Task Bar in Full Screen Mode Implementation
-
I want implement full screen mode in my small application. I wrote codes as follows:
cx = //width of the screen;
cy = //height of the screen;
SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming
-
I want implement full screen mode in my small application. I wrote codes as follows:
cx = //width of the screen;
cy = //height of the screen;
SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming
Siuming wrote: SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED); Make that :-
SetWindowPos (hwnd, HWND_TOPMOST, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Siuming wrote: SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED); Make that :-
SetWindowPos (hwnd, HWND_TOPMOST, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Very close Nish, but if you want to make the window topmost, you have to drop the SWP_NOZORDER flag --- CPUA 0x5041 Sonork 100.11743 Chicken Little Within you lies the power for good - Use it!
Oops! :-O I wasn't thinking I guess. Basically I copy/pasted his line of code and changed the 2nd argument where he had used NULL :-O Thanks PJ :-)
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Oops! :-O I wasn't thinking I guess. Basically I copy/pasted his line of code and changed the 2nd argument where he had used NULL :-O Thanks PJ :-)
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
I want implement full screen mode in my small application. I wrote codes as follows:
cx = //width of the screen;
cy = //height of the screen;
SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming
-
Hi, I have been trying the same thing,But my window is not shown properly. In my code cx=GetSystemMetrics(SM_CXFULLSCREEN); cy=GetSystemMetrics(SM_CYFULLSCREEN); Regards Neha
Dear, What I've used are:
int cx = GetSystemMetrics (SM_CXSCREEN); int cy = GetSystemMetrics (SM_CYSCREEN); int cyCaption = GetSystemMetrics(SM_CYCAPTION); int cyMenu = GetSystemMetrics(SM_CYMENU); SetWindowPos (hwnd, HWND_TOPMOST, -4, -(cyCaption + cyMenu + 4), screenx + 8, screeny + (cyCaption + cyMenu) + 8, SWP_FRAMECHANGED);