FallSimulator/lib/Button.h
Андрей fbba67d8bc
Add files via upload
Edited main.cpp, Edited help and Added screenshots to help.
2019-12-13 14:59:48 +03:00

30 lines
652 B
C

#pragma once
//This library containing function and structure for buttons
struct Button {
RECT coords;
const char* text;
HDC picture;
};
void drawButton(Button but);
//function for drawing button
void drawButton(Button but)
{
//drawing button
txRectangle(but.coords.left,
but.coords.top,
but.coords.right,
but.coords.bottom);
//drawing text
txDrawText (but.coords.left,
but.coords.top,
but.coords.right,
but.coords.bottom,
but.text,
DT_CENTER | DT_VCENTER);
}