return data type:
creates a button, these buttons can be used as button options (cycles)
it will return the location of where the window object is stored in memory.
a cycle button can be created by simpy putting in a string like this “go #1|go #2|go #3” it will look much like this, the OS will set the button flag automatically and each time this button is clicked the internal value will increment by 1 and go back to 0 when too many clicks have been done.
CreateImgButton is slightly different, this is a button that just shows an icon as a button
x – starting location on the X
y – starting location on the Y
width – width of a button
height – height of a button
title* – a pointer to a const or a string which should be terminated with a NULL, eg “hello world\0”
hwnd – the window handle this button is to be attached to! this will create the button in the windows object list. NOT the windows list!