Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRemote execution Pin
dSolariuM13-Jul-05 20:24
dSolariuM13-Jul-05 20:24 
GeneralRe: Remote execution Pin
ThatsAlok14-Jul-05 5:17
ThatsAlok14-Jul-05 5:17 
GeneralBuild Automated DLL to be interfaced to VB6.0 Pin
thealca13-Jul-05 19:12
thealca13-Jul-05 19:12 
GeneralRe: Build Automated DLL to be interfaced to VB6.0 Pin
javad_200513-Jul-05 19:17
javad_200513-Jul-05 19:17 
GeneralRe: Build Automated DLL to be interfaced to VB6.0 Pin
thealca18-Jul-05 14:01
thealca18-Jul-05 14:01 
General"Temporary Internet Files" location using WinInet Pin
Chintoo72313-Jul-05 19:10
Chintoo72313-Jul-05 19:10 
GeneralRe: "Temporary Internet Files" location using WinInet Pin
Chintoo72313-Jul-05 19:31
Chintoo72313-Jul-05 19:31 
QuestionTrying to hide task bar but SPI_SETWORKAREA not working? Pin
retro_coder13-Jul-05 18:51
retro_coder13-Jul-05 18:51 
Hi
I am using the following code to set my work area and to hide the task bar.

<br />
::ShowWindow(::FindWindow(_T("Shell_TrayWnd"), NULL));<br />
CRect rectWorkArea = CRect(0, 0, ::GetSystemMetrics(SM_CXSCREEN), ::GetSystemMetrics(SM_CYSCREEN));<br />
SystemParametersInfo(SPI_SETWORKAREA,0,&rectWorkArea,SPIF_SENDCHANGE);<br />


When I set my application to full screen/maximize (or any other application actually), the application will not use the space occupied by the hidden task bar, nor will I be able to resize it to use the area. I can drag it to occupy the space, but I have also noticed the window outline for dragging doesn't get display there either.

When I do a SPIG_GETWORKAREA later, it still shows the old work area that includes the task bar.

The Taskbar app found on code guru also exhibits this behaviour.

Has anyone else had this problem and how did you get around it?

I am using Windows 2000 SP4, but it also happens on Windows XP SP2.

Thanks in advance.
AnswerRe: Trying to hide task bar but SPI_SETWORKAREA not working? (SOLVED) Pin
retro_coder13-Jul-05 19:08
retro_coder13-Jul-05 19:08 
GeneralAt exit Pin
Fernando A. Gomez F.13-Jul-05 17:19
Fernando A. Gomez F.13-Jul-05 17:19 
GeneralRe: At exit Pin
Christian Graus13-Jul-05 18:38
protectorChristian Graus13-Jul-05 18:38 
GeneralRe: At exit Pin
Toby Opferman13-Jul-05 19:37
Toby Opferman13-Jul-05 19:37 
GeneralRe: At exit Pin
Alexander M.,14-Jul-05 2:05
Alexander M.,14-Jul-05 2:05 
GeneralDocking Resizable Dialog box Pin
mlsa13-Jul-05 15:55
mlsa13-Jul-05 15:55 
GeneralRe: Docking Resizable Dialog box Pin
Stlan13-Jul-05 21:39
Stlan13-Jul-05 21:39 
GeneralRe: Docking Resizable Dialog box Pin
mlsa14-Jul-05 9:25
mlsa14-Jul-05 9:25 
GeneralRe: Docking Resizable Dialog box Pin
Stlan14-Jul-05 19:31
Stlan14-Jul-05 19:31 
GeneralDetect Ctrl key pressed Pin
Ravi Bhavnani13-Jul-05 14:00
professionalRavi Bhavnani13-Jul-05 14:00 
GeneralRe: Detect Ctrl key pressed Pin
Christian Graus13-Jul-05 14:11
protectorChristian Graus13-Jul-05 14:11 
GeneralRe: Detect Ctrl key pressed Pin
Blake Miller14-Jul-05 4:39
Blake Miller14-Jul-05 4:39 
GeneralRe: Detect Ctrl key pressed Pin
Jack Puppy13-Jul-05 14:33
Jack Puppy13-Jul-05 14:33 
GeneralRe: Detect Ctrl key pressed Pin
Aamir Butt13-Jul-05 20:15
Aamir Butt13-Jul-05 20:15 
GeneralThanks, all! Pin
Ravi Bhavnani14-Jul-05 6:20
professionalRavi Bhavnani14-Jul-05 6:20 
GeneralWorker thread question Pin
Tom Wright13-Jul-05 12:26
Tom Wright13-Jul-05 12:26 
GeneralRe: Worker thread question Pin
Blake Miller13-Jul-05 13:00
Blake Miller13-Jul-05 13:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.