New GUI Userlib

Blitz3D Forums/Blitz3D Userlibs/New GUI Userlib

asdfasdf(Posted 2005) [#1]
I'm trying to make a new GUI userlib for my games. Does anybody know c++? I need to get the window handle and the window instance to work. It also needs to return the mem address but that is required to create the button. Do you know how to do that?
GUI.cpp:

GUI.h

AssemblyInfo.cpp:

Stadfx.cpp:

Stadfx.h:

Thanks


jfk EO-11110(Posted 2005) [#2]
Isn't there a Api Call to get the HWND, GetHWND or something? Must be in user32.dll or so...

To be honest, I wouldn't make a GUI Lib in C++ for Game that is written in Blitz3D. I'd rather enjoy the freedom of style in Blitz3D and create may own GUI from scratch, or use an existing GUI that is not using the Win Api. Also with portability in mind.

But it's your business.


Picklesworth(Posted 2005) [#3]
I think BlitzSys and the Win32 constants list allow for you to create a fine Windows gui using almost all Blitz-end code. I could easily be totally wrong though...

Anyways:
Global hWnd = SystemProperty("AppHWND")

http://www.mentalis.org/agnet/apiguide.shtml
There are many window finding functions in User32.dll, which are listed with examples in the Window Handle group of that guide.


Sarge(Posted 2005) [#4]
Yea, you use WinApi to code the Gui dont do it in c++


Rook Zimbabwe(Posted 2005) [#5]
If you really need a window Lib... look in the toolbox...