resolution change taskbar stuck halfway desktop

i'm letting my program automatically changing from 640x480 to 800x600 (when it's valid of course),

but now the taskbar doesnt move to the bottom of the screen, but stays somewhere on the desktop. this is very annoying. i tried to broadcast a WM_DISPLAYCHANGE, but it doesnt work.

i'd be very happy :-), if someone helped me

thanks.
brutebassAsked:
Who is Participating?
 
robert_marquardtCommented:
Try adding CDS_UPDATEREGISTRY to the flags of ChangeDisplaySettings.
The taskbar gets its information on screen resolution from the registry.
0
 
ITugayCommented:
Hi brutebass,

try this:

SystemParametersInfo(SPI_SETDESKWALLPAPER,0,0     ,SPIF_SENDCHANGE);

-----
Igor
0
 
brutebassAuthor Commented:
thanks , it works! :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.