Listing 1
#include <win32gui/frame.hpp>
#include <win32gui/controls.hpp>
using namespace win32::gui;
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow) {
// how to create the "Hello" and "Wold" labels (centered)
DWORD style = WS_VISIBLE | WS_CHILD | SS_CENTER;
wnd<frame> main = create_wnd<frame>(
"My Simple GUI", wnd<>::no_parent(), create_info().rect(200,200,420,270) );
main.add_child<label>( "Hello", create_info().rect(10,10,90,30) .style(style))
.add_child<label>( "World", create_info().rect(110,10,200,30).style(style));
main->wait( wait_for::destroy );
}