Click here to Skip to main content
15,880,796 members
Articles / Desktop Programming / WTL
Article

WinTailor, customize any window on your screen

Rate me:
Please Sign up or sign in to vote.
4.86/5 (17 votes)
3 Nov 20021 min read 70.1K   1.1K   27   7
A little useful tool to change style and position of any window

Sample Image - WinTailor.jpg

The motivation

Some time, when we use software written by others, some dialogs do not look perfect for some reason. For example, when we open an option dialog, some checkboxes look smaller than it should be, so we cannot read the whole text. Such things happen all the time. I needed a tool to resize these controls to understand what they mean. I used to open the exe file as resource using Visual Studio, and modify the dialog resource manually. That's not the perfect solution of course. And yesterday, I encountered another problem: A non-dialog window which has no related resource. And the content of the window is larger than the area of the window, but the window is not resizable, so I cannot read the whole content. I began to realize that I have to write a little tool, for the coming days, and also for the other people. Here comes Wintailor.

Introduction

Wintailor works just like Spy++. You drag a glass to find the target window, and Wintailor read the information of the window for you, then you can modify the styles and position of the window if you like. That's all, very simple.

The Implementation

The project is written using ATL/WTL. So, you need the WTL headers to compile. I used ATL3 and WTL7. But I think it will also work in ATL7 and/or WTL31, although not been tested.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
China China
I'm a chinese programer living in Shanghai, currently working for a software company whose main business is to deliver computer based testing. Software simulation for computer based testing and certifications is my main responsibility in this company. Execpt for software development, I like out-door activities and photography. I am willing to make friends in China and all over the world, so contact me if you have anything in common with meSmile | :)

Comments and Discussions

 
GeneralGreat work! Pin
Don Shrout9-Apr-08 8:17
Don Shrout9-Apr-08 8:17 
QuestionHow to permanently change a dialog Pin
Joel Leavitt30-Nov-05 10:00
Joel Leavitt30-Nov-05 10:00 
Nice job... it's interesting to see how to change the user interface in code.

If you need to make permanent changes - and you have access to MS Visual Studio - simply open the target appliction's executable as a resource file, make whatever changes you desire, then save the exe file.

-- modified at 9:39 Thursday 1st December, 2005

Just found a problem... the technique worked enlarging an edit control in one app, but when I altered Spy++ windows it screwed up the app. Oh well...
GeneralWTL3.1 use Pin
phyler30-Dec-03 1:07
phyler30-Dec-03 1:07 
GeneralAn Awesome program!!!! Pin
fxadler25-Dec-03 23:41
fxadler25-Dec-03 23:41 
GeneralRe: An Awesome program!!!! Pin
Neil Yao29-Dec-03 20:09
Neil Yao29-Dec-03 20:09 
GeneralRe: An Awesome program!!!! Pin
nutty24-Nov-04 12:16
nutty24-Nov-04 12:16 
GeneralGood Pin
Philippe Lhoste3-Dec-02 4:11
Philippe Lhoste3-Dec-02 4:11 

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.