954,487 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Code to find a specific open window and 'lock' it so can't be resized

I've been looking for an app that could find a specific open window on the desktop and 'lock' it so can't be re-sized or moved (most likely by using the title bar value/property).

Having had no luck, I was wondering if this can be done in c++? I used to code in myriad languages many eons ago and the last time I used c++ was over 10 years ago. At that time I was coding apps from the ground up, but never coded anything that would look at existing windows etc. on the desktop already. If it can be done I was going to look at writing my own app that would search any current open windows on the desktop, find the one required using the value in the title bar, and change the properties on it to make it un-movable or re-sizeable, so in essence locking it in place so it can't be changed by accident.

Not having coded in so long, I was wondering if this is possible in c++ (just downloaded a free c++ compiler/dev app and was going to look into it if it is possible).

Thanks for any input,
-A rusty ole Programmer/Analyst from yesteryear ;-p

mikenowo
Newbie Poster
2 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

Not possible using only C++.
Window management is platform dependent so you will have to use the facilities provided by the operating system.
For Windows, this can be done by using the freely downloadable platform SDK.
For Linux, I don't know. Try a google search on Linux GUI programming or something.

WolfPack
Postaholic
Moderator
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
 

Bleah. Ok, thanks for the info.

mikenowo
Newbie Poster
2 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: