FallSimulator/lib/Button.h
Андрей 43f88f8054
Add files via upload
Edited main.cpp and Added libraries.
2019-12-09 15:37:40 +03:00

29 lines
621 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);
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);
}