by Roach
Version 1.0
Information
This is a small extension that can get and change the properties of windows. I included many constants, but the extension allows to use more than is given, by using the value instead of the constant. The example shows some, but not all of the functions of this extension. If you are confused about what a certain function does, they are all documented in the help file with a small description. I do not go too in depth in the help file... because I really just hate writing help files. If you want to write a better help file for this, go for it and send it to me. I'll put your name in it, and release a new version with your help file in it.
The C++ DLL source is included. You can find it in the help file.
Functions
window_find_fromclass(class) - returns a window handle using the window's class
window_find_fromtitle(title) - returns a window handle using the window's title
window_find_fromclasstitle(class,title) - returns a window handle using both the window class and title
window_find_frompoint(x,y) - returns the window handle of the window located at position x, y
window_closebutton_get(hwnd) - returns if the close button of the given window is disabled or enabled
window_closebutton_set(hwnd, style) - sets the close button of the given window disabled or enabled
window_set_state(hwnd,state) - sets the state of a given window
window_get_state(hwnd,type) - returns the current state of the given window
window_get_active() - returns the handle of the current active window
window_get_focus() - returns the handle of the window which currently has focus
window_get_foreground() - returns the handle of the current foreground window
window_get_parent(hwnd) - returns the parent window handle of a given child
window_set_active(hwnd) - sets the given window as the current active window
window_set_focus(hwnd) - sets the given window as the current window with the focus
window_set_foreground(hwnd) - sets the given window as the foreground window
window_set_parent(hwnd,parent) - sets the child window as a child of a parent window
window_exists(hwnd) - returns if the given window exists
window_adjust(hwnd,x,y,w,h,repaint) - adjusts the given window
window_style_add(hwnd, style) - adds a style to the given window
window_style_del(hwnd, style) - removes a style from the given window
Download
Download Here: http://technosoftnet...xt/winstyle.zip
~26 KB, ZIP with .gex file inside.
Peace,
Roach
Edited by Roach, 19 April 2007 - 05:58 PM.