Skip to content

Instantly share code, notes, and snippets.

@march1993

march1993/main.c

Created Feb 26, 2018
Embed
What would you like to do?
Prevent Windows taskbar still being visible when applications are in fullscreen.
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
HWND hwnd = FindWindow("Shell_TrayWnd", NULL);
if (hwnd == NULL) {
fprintf(stderr, "Unable to find the taskbar.\n");
return EXIT_FAILURE;
}
SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment