Duplicating XP appearance dialog

  • Thread starter Thread starter James Lamanna
  • Start date Start date
J

James Lamanna

I'm trying to write code that does the same actions as the Appearance
dialog in the display settings.
Essentially I want to write my own functions to control the system-wide
menu sizing, scrollbar sizing, etc, however I have been unable to find
any documentation on how to do this on a system-wide level like the
Appearance dialog does.

Anyone have any pointers?

Thanks.
 
James Lamanna said:
I'm trying to write code that does the same actions as the Appearance
dialog in the display settings.
Essentially I want to write my own functions to control the system-wide
menu sizing, scrollbar sizing, etc, however I have been unable to find
any documentation on how to do this on a system-wide level like the
Appearance dialog does.


One way to do it is to make the appropriate changes to the registry (where the settings are located), then broadcast
WM_SETTINGCHANGE to all top-level windows. A more automated option is to use the SystemParametersInfo API call.
 
Alec said:
One way to do it is to make the appropriate changes to the registry (where the settings are located), then broadcast
WM_SETTINGCHANGE to all top-level windows. A more automated option is to use the SystemParametersInfo API call.

Thanks!
I knew it was buried in the API somewhere, I just couldn't find it.
Thats exactly what I was looking for.

-- James
 
James Lamanna said:
Thanks!
I knew it was buried in the API somewhere, I just couldn't find it.
Thats exactly what I was looking for.

No problem and if you want to change color schemes, you can either set them directly in the registry then broadcast
WM_SYSCOLORCHANGE to all top-level windows, or use the SetSysColors API call.
 
Back
Top