Move a window to foreground!

There are times when this feature is quite an annoyance! You are typing in a password and immediately this window pops up in front of you with the focus set on an edit control, so everybody sees your password as you are not aware that another window has come up. A good example would be […]
Continue reading…

 

Set/Get mouse double click time

To set double click time use SetDoubleClickTime Set time to zero to switch to default time of 500 milliseconds E.g. [sourcecode language=’cpp’]// If call succeeds return value is non zero VERIFY( SetDoubleClickTime( 200 )); // Set double click time to 200 milliseconds[/sourcecode] To get double click time use GetDoubleClickTime Returns double click time in milliseconds […]
Continue reading…

 

SystemParametersInfo

SystemParametersInfo is a powerful function which does and retrieves whole lot of things related to windows general behavior for eg: turning on and off certain features like mouse trails which we normally do via control panel->main.cpl Look up MSDN for more information on SystemParametersInfo. I’ll just show a demo on how to turn on and […]
Continue reading…