Jump to content


Harvest Moon

Member Since 20 Dec 2006
Offline Last Active Jul 02 2012 09:47 AM

Topics I've Started

Maxwinapi 2 - Groupboxes

31 May 2009 - 07:17 PM

I want to know how to create different controls in a groupbox. I've tried this:

// The groupbox
groupbox = API_Button_Create(win,160,5,475,room_height - 30,WS_VISIBLE|WS_CHILD|BS_GROUPBOX,0);
API_Control_SetText(group_option,"Groupbox");

// Don't care about this
o_width = API_Control_GetWidth(groupbox);
o_height = API_Control_GetHeight(groupbox);

// The control that I want to create inside the groupbox
button = API_Button_Create(groupbox,50,(o_height / 2) - 15,100,30,WS_VISIBLE|WS_CHILD|BS_PUSHBUTTON,0);
API_Control_SetText(button,"Button");

But it doesn't work. I've tried to do this with the LPWinAPI extension, and it works, but I want to do it with MaxWinAPI 2 too. If you know how I'm supposed to do, please tell me! Thanks in advance!

Max Winapi 2 - Extension

07 April 2009 - 12:00 PM

I've made an extension out of h0bbel's wonderful DLL, Max WinAPI 2. I managed to make the extension within about 2/2 and a half hours, thanks to the two tools I made. (The tools added all functions and constants automatically)

Usage/License:

I don't need credits, but you're allowed to give me credits if you want to.

Give credits to h0bbel, because it's he who have made the DLL!

Download:

Zip ~ 405.92 KB (Kilobytes)

7z ~ 313.75 KB (Kilobytes)


The archives contains:
  • Help File (the original)
  • Max WinAPI 2 Example (the original, just changed to the extension)
  • Max WinAPI 2 Extension

Please Note:
You need a archive manager to unpack the 7z-archive. I recommend you to use either WinRAR (not free) or 7zip (free).

Bugs Reports
I'll write all the bugs you find in the extension here.

Please report all the bugs you find in the extension so I can fix them! I would also appreciate if you could report any misspelled functions. I've really tried to trubleshoot the extension several times, but I'm still not sure if everything is correct.

Final words
I would like to thank h0bbel for making the wonderful DLL. I would also like to thank Callum, because he told me about the arguments that is used in the Imagelist functions.

I've realized that the extension seems to be slower than using the actual DLL. I think it has to do with the integrating of the DLL in the game. I just wanted to tell you about it.

I'll maybe add a new Help file and MAYBE a lib. Please help if you're able to do it. I don't understand much of he library maker. I would also like you to help creating the new Help file.

To h0bbel: If you don't like that I make an extension out of your DLL, then please tell me by PM.

*solved* Maxwinapi 2 - Imagelists

06 April 2009 - 03:09 PM

I want to know what I'm supposed to write as arguments in the imagelist-functions. The functions are:

API_ImageList_Create(Real, Real, Real, Real);
API_ImageList_AddBitmap(Real, Real);

I checked what type of arguments it's supposed to be, as you can see above.

So, can someone probably help me? I need this, so I really want help.

Please tell me what I'm supposed to type in each argument. Please describe like this:

EXAMPLE:

API_Window_Create(arg0, arg1, arg2, arg3, arg4, arg5, arg6);

Argument List:
Argument0: Parent Handle
Argument1: X-position
Argument2: Y-position
Argument3: Width
Argument4: Height
Argument5: Style Flags
Argument6: Extended Style Flags

Thanks in advance!

Request: Draw Images In Other Windows

12 February 2009 - 02:22 PM

I want a DLL that allows me to draw images (in different formats, not just BMP) in other windows. I need this because my program have to use it, but at the moment, I can't find a good DLL for it. I want to combine the DLL with MaxWinAPI 2. Also saving screenshots in different formats would be nice!

I want these functions in the DLL:

  • Saving/Loading images in different formats
  • Take screenshots (the whole screen or just a part of it, GM's function is not good)
  • Draw images in different windows
  • Check width, height, x-, y-position of the image
  • Get the x- and y-position of the mouse in other windows (like window_mouse_get_x()/window_mouse_get_y(), but for other window handles)

**is It Possible To Draw Images In Other Windows?

11 February 2009 - 11:58 PM

The title says it all! Is it possible? I mean, if I create a new window with MaxWinAPI, can I draw an image in that window? I really need a function like that for my program. All help is appreciated!