Advertisement

hiding taskbar when switching to fullscreen

Started by January 02, 2001 09:27 AM
0 comments, last by kris vanhoof 24 years, 1 month ago
i''m switching to fullscreen with this code
  

DEVMODE dm;
ZeroMemory(&dm, sizeof(dm));

dm.dmSize	= sizeof(dm);
dm.dmPelsHeight	= cy;
dm.dmPelsWidth	= cx;
dm.dmFields	= DM_PELSHEIGHT | DM_PELSWIDTH;

ChangeDisplaySettings(&dm, CDS_FULLSCREEN);

  
i make my window the size of the entire screen (by using GetSystemMetrics()), and i even call SetForeGroundWindow() when the taskbar is at the bottom (even when it hides itself) there''s no problem, but my taskbar usually is on the left of the screen, if i don''t use the automatic hiding, then everything works however, when i do use the automatic hiding then the taskbar won''t disappear, there''s a small border on the left, and i can open it and all does anyone know of a good way for handling this? (sorry if i didn''t use the right terms to express myself but i''m using a Dutch version of Windows)
BTW: i''m using Windows 98,

my window has style: WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN

This topic is closed to new replies.

Advertisement