1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
void EditBox::Create(int Xpos, int Ypos, int Xsize, int Ysize, HWND parent, int ident)
{
hwnd = CreateWindow("Edit", NULL, WS_VISIBLE | WS_CHILD | WS_BORDER | WS_TABSTOP, Xpos, Ypos, Xsize, Ysize, parent, (HMENU)ident, NULL, NULL);
}
void GroupBox::Create(std::string text, int Xpos, int Ypos, int Xsize, int Ysize, HWND parent, int ident)
{
hwnd = CreateWindowEx(0, "Button", text.c_str(), WS_CHILD | WS_VISIBLE | BS_GROUPBOX, Xpos, Ypos, Xsize, Ysize, parent, (HMENU)ident, NULL, NULL);
}
void Button::Create(std::string text, int Xpos, int Ypos, int Xsize, int Ysize, HWND parent, int ident, bool def)
{
DWORD style = WS_CHILD | WS_VISIBLE | WS_TABSTOP;
if (def) style |= BS_DEFPUSHBUTTON;
hwnd = CreateWindowEx(0, "Button", text.c_str(), style , Xpos, Ypos, Xsize, Ysize, parent, (HMENU)ident, NULL, NULL);
}
|