demonstrates the use of wnd_proc method.
#include <xtd/drawing/system_brushes>
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/window_messages>
namespace wnd_proc_example {
class form1 :
public form {
public:
form1() {
client_size({300, 300});
}
protected:
if (app_active) {
} else {
}
}
case WM_ACTIVATEAPP:
invalidate();
break;
}
}
private:
bool app_active = true;
};
}
auto main() -> int {
}
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
drawing::font_family font_family() const noexcept
Gets the xtd::drawing::font_family associated with this xtd::drawing::font.
static xtd::drawing::solid_brush control_text()
Gets a solid_brush that is the color of the control text.
static xtd::drawing::solid_brush menu_highlight()
Gets a solid_brush that is the color of the menu highlight.
static xtd::drawing::solid_brush control()
Gets a solid_brush that is the color of the control.
@ bold
Bold text.
Definition font_style.hpp:21
type_t as(any_object &o)
Casts a type into another type.
Definition __as_any_object.hpp:59
@ m
The M key.
Definition console_key.hpp:112
@ e
The E key.
Definition console_key.hpp:96
@ point
Specifies a printer's point (1/72 inch) as the unit of measure.
Definition graphics_unit.hpp:25
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8