Jump to content


Photo

Window Style Extension (w/ Dll Source)


  • Please log in to reply
26 replies to this topic

#1 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 18 April 2007 - 11:20 PM

Window Style Extension
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.

  • 1
Posted ImagePosted Image

#2 GML-PUNK

GML-PUNK

    DC Productions

  • New Member
  • 460 posts

Posted 18 April 2007 - 11:29 PM

Very cool, this will be helpful, for me and I am sure others too
  • 0
PROJECTS | |

#3 Coffee

Coffee

    Light and Sweet

  • GMC Member
  • 2351 posts
  • Version:GM:Studio

Posted 19 April 2007 - 12:40 AM

Um, I haven't tried it yet, but, there isn't any example, just the GEX file.
  • 0

vmh.png Come Play Hungry Hungry Frogs!


#4 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 19 April 2007 - 12:44 AM

Oh, my apologies. I've fixed it and re-uploaded the .zip file. It now includes the .gmk example.
  • 0
Posted ImagePosted Image

#5 softhunterdevil

softhunterdevil

    LazyBoy

  • GMC Member
  • 276 posts

Posted 19 April 2007 - 03:22 PM

I was really searching for such a window handling dll.(I tried AutoIt for this purpose.) Post some function names in your first post. Checking it out soon.

Edited by softhunterdevil, 19 April 2007 - 03:23 PM.

  • 0
<a href="http://www.redbubble...eactdevelopers" target="_blank"><img src="http://www.redbubble...rb_profile.gif" border="0" class="linked-sig-image" /></a><a href="http://www.redbubble...eactdevelopers" target="_blank"><img src="http://www.redbubble...ers_banner.jpg" border="0" class="linked-sig-image" /></a>

#6 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 19 April 2007 - 04:34 PM

Eh? I couldn't manipulate the window... Nothing happened when I pressed the buttons. Yes, the buttons do work!
  • 0

#7 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 19 April 2007 - 08:01 PM

It works fine for me... but you and other people have reported that it does not work. Does it give any sort of error message? Did you try any of the other functions? What are your computer's specs?
  • 0
Posted ImagePosted Image

#8 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 20 April 2007 - 03:40 AM

doesnt work for me either, no error message, in terms of system specs um not sure what to say for it, havent found a function that works from it. Thanks for the source code ive been wondering howto do that sorta stuff great to learn from, my attempts have turned out rather humorous.
offtopic- what compiler do you use, i have DevC++ and either im doing it wrong or it doesnt support something, either or both are possible, pm with answer
  • 0
Returning after a break from gamemaker.
Gamemaker experience: 6,7 both paid. 8 soon to be pro
Programming knowledge: (May be missing a few currently)
C, C#, C++, java, HTML, CSS, Javascript, PHP, ASP.NET, SQL, Visual Basic, Perl, assembly, batch

Temporary sig while I figure out if I have anything worthwhile to put.

#9 antidote

antidote

    GMC Member

  • New Member
  • 117 posts

Posted 20 April 2007 - 05:28 AM

hmmm it works flawlessly for me why don't i ever seem to have problems getting these things to work? weird
  • 0

#10 gm man

gm man

    GMC Member

  • New Member
  • 98 posts
  • Version:Unknown

Posted 20 April 2007 - 06:15 AM

I tried all of the buttons and none of them did anything... Their wasn't any error message ether.
  • 0

#11 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 20 April 2007 - 12:43 PM

It doesn't do anything for me too. It returns the handle for the window, but when I press the buttons it just doesn't react. No error messages.
  • 0

#12 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 20 April 2007 - 10:15 PM

yeah same here
  • 0

Chris Matthews, Co-Leader of Digital X

#13 szepi1991

szepi1991

    GMC Member

  • New Member
  • 177 posts

Posted 20 April 2007 - 10:17 PM

can it maximize the window?
  • 0

#14 T-Bird

T-Bird

    GMC Member

  • New Member
  • 1326 posts

Posted 20 April 2007 - 10:50 PM

I might have to DL this just for the focus check. Its annoying that GM lets you freeze when it looses focus but not do a custom pause or anything.
  • 0

#15 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 21 April 2007 - 10:39 PM

offtopic- what compiler do you use,...

<{POST_SNAPBACK}>

I'm using Microsoft Visual Studio 2005 Professional Edition.

On another note, I'm still trying to figure out why it doesn't work for some people. Please from now on, post your computer information if posting a bug.
  • 0
Posted ImagePosted Image

#16 szepi1991

szepi1991

    GMC Member

  • New Member
  • 177 posts

Posted 21 April 2007 - 11:24 PM

please answer my question
  • 0

#17 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 21 April 2007 - 11:25 PM

Yes, it can. Download it before asking what it can do. It's a window state.
  • 0
Posted ImagePosted Image

#18 Ansgar

Ansgar

    OM Studios

  • New Member
  • 333 posts

Posted 22 April 2007 - 05:52 AM

I'm another one whom it doesn't work for (pressing any of the keys in the example does nothing).

My Computer:
Windows XP Home Edition, Service Pack 2
1024 mb RAM
CPU 2.4 GHz
etc. etc. (what kind of computer information would you like to see?)
  • 0

#19 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 23 April 2007 - 01:23 PM

Roach, have you tried in GM6? Or maybe another compiler (solved it for h0bbel).
  • 0

#20 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 24 April 2007 - 06:41 PM

Comp info-
Windows XP sevice pack 2
forgot cpu but more than 2 gigahertz
512,256 rams
ATI RADEON 9250 graphics card
What other info about it would u like i had asked what u wanted in terms of specs in my post
  • 0
Returning after a break from gamemaker.
Gamemaker experience: 6,7 both paid. 8 soon to be pro
Programming knowledge: (May be missing a few currently)
C, C#, C++, java, HTML, CSS, Javascript, PHP, ASP.NET, SQL, Visual Basic, Perl, assembly, batch

Temporary sig while I figure out if I have anything worthwhile to put.

#21 muslim power

muslim power

    GMC Member

  • New Member
  • 540 posts

Posted 24 April 2007 - 06:47 PM

Well done
  • 0

#22 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 04 July 2007 - 10:27 PM

It doesn't do anything on my cpu. Let me check it on another....
  • 0

#23 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 06 July 2007 - 02:39 AM

Sorry, Roach, but it does nothing for me, either.

Specs:
Gateway MX6121
Intel Celeron M Processor
1.5GHz
504 MB RAM

As for graphics card, I'm not really sure, but I think this is it:

Mobile Intel 915GMS Express Chipset

-IMP :D <_<
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#24 Tthecreator

Tthecreator

    GMC Member

  • GMC Member
  • 241 posts
  • Version:GM:Studio

Posted 18 June 2013 - 03:07 PM

this download isn't working....it doesn't exisnst

REUPLOAD IT please :)

btw...does this works for studio couz i was searching for a replacement for the remove of the don't draw a window border or the don't draw buttons.


  • 1

progresses of my games:

IMPF maincoms: 5%, just making it for my friends as an reaction test since we are a tf2 team using some minigames and trowing some networking in. not shore why i'm telling this but i could make it public for anyone on request

Breaktrough engine: 1%, making an engine that is reliable, moddable(as in external data), using as many features from myself as possible. Unfortunetly i had a drawback due to corrupted files.

site: http://www.digithomas.nl (dutch)

 

#25 Forester

Forester

    The One And Only Enragement Cat

  • GMC Member
  • 412 posts
  • Version:GM:Studio

Posted 02 August 2013 - 12:39 PM

this download isn't working....it doesn't exisnst

REUPLOAD IT please :)

btw...does this works for studio couz i was searching for a replacement for the remove of the don't draw a window border or the don't draw buttons.

Yep, same here! :confused:


  • 0

gg guys - wp

Forester.jpg
soundcloud - twitter - facebook - ask.fm - advc


#26 Hugo_Peters

Hugo_Peters

    herp derp

  • GMC Member
  • 493 posts
  • Version:GM:Studio

Posted 06 August 2013 - 12:28 PM

I'm almost 100% sure this doesn't work with Studio.


  • 0

Posted Image


#27 perry26

perry26

    GMC Member

  • GMC Member
  • 45 posts
  • Version:GM:Studio

Posted 06 August 2013 - 03:45 PM

This looks like a great eztention....

 

I'll try it.


  • 0

If I make any mistakes in my english, please tell me