| Declaration: int AddButton(unsigned long handle, char button_text[], int x, int y, int width, int height); Description Adds a button to the window. The button is a usual button of the standard Windows dialog boxes. When you click the button, the event is generated that can be captured with the WaitWindowEvent function, and the corresponding operation is carried out. If the specified button already exists in the window (already added by AddButton with the same parameters), the new button will not be added and the existing button will be used. Parameters:    button_text - the text written on the button    x, y         - the coordinates of the upper left corner within the window    width        - the button width    height       - the button height Returned value The button identifier. It is used by the WaitWindowEvent function to determine, which button was clicked (there multiple buttons in the window). Example AddButton(handle, "Start", 50, 50, 70, 24); |